artemis-dev / artemis

A RooT Extension with Modular processors for Instant Switching
2 stars 6 forks source link

cannot access class type of reference target of TRef after loading root file #11

Open shkawase opened 9 years ago

shkawase commented 9 years ago
// fRef is a TRef and a member of "some_branch" 
tree->Draw("some_branch.fRef.Dump()")

this causes error messages as follows:

Error in <TTreeFormula::DefinedVariable>: Failed to access class type of reference target (fRef)
Error in <TTreeFormula::Compile>: Bad numerical expression : "some_branch.fRef.Dump()"

This happens if tree is loaded from .root file.