-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using TGraph object as Parameter #472
Comments
Hello Jaesung! (Nice to meet you!) What is the type of TObject you put in the TTree for |
Below is what we are basically doing:
|
Ok I see 🤔 We are actually using You could try to use TClonesArray in the meantime |
I also tested saving TSpline instead, but getting same error. TTree print out is:
, and also seeing
|
Thank you very much @jedori0228 It seems like we need a new way to find out if a leaf is a TObject. |
Hi! In our input MC rootfile, we are saving
TGraph
objects into theTTree
;This object is an event-by-event reweights (i.e., a
TGraph
where x:sigmas, y:reweights) and we use this dial with a Parameter definition as follows:When I run
gundamFitter
, we saw an error message:After tracking down the source of the error, I found that in cpp-generic-toolbox/include/GenericToolbox.Root.h#L1531, the Leaf of this Branch has
l->GetNdata() = 1
andl->GetLenType() = 0
, thus gotbufferSize = 0
. In our on-going analysis, we put this TGraph into a TClonesArray, and there I saw the Leaf gotl->GetNdata() = 0
andl->GetLenType() = 4
, then had no issue. We can keep using TClonesArray, but wonder if using TGraph (or TSpline3) directly without TClonesArray can be also supported, or our configuration needs to be updated.1.9.0
6.30/06
The text was updated successfully, but these errors were encountered: