MakeClass() vs. MakeSelector()

Hi,

i have two questions:

1- Could you please clarify what is the difference between

tree->MakeClass(“TEST”)
and
tree->MakeSelector(“TEST”)

2-Also i need to know what is this error means:

*** Interpreter error recovered ***
Error in TSelector::GetSelector: The file TEST.C does not define a class named TEST.
(Long64_t)(-1)

thanks,

Mai

Hi,

MakeClass() will generate a simple reading interface, that can fail for more complex trees.

MakeSelector() is more complete. I’d recommend to use that.

When you then process your selector it must contain the class that MakeSelector has generated; apparently that’s not the case for your TEST.C file.

Cheers, Axel.