I want to chain 4 root files, say
file1.root, file2.root, file3.root, and file4.root, then I want to
produce a code using the MakeClass Functionality.
One possibility is:
At the directory where all these root files are located do:
root TChain ch(“SMT”);
Assuming the root files are of same tree structure, the above lines should
result to the creatioin of myClass.C and myClass.h.
Then I can edit/modify the files according the nature of your
But in the myClass.h, some variable arrays is not long enough.
For example, a array named MCPhoton in the myClass.h, but there are more MCPhoto than 6 in file2.root, file3.root … .
So when run myClass.C, it reports the MCPhoton is not long enough .
What cause the problem?
How to overcome it?