root [0] f=new TFile("dst001.root")
(class TFile*)0x0
root [1] f.ls()
TFile** dst001.root
TFile* dst001.root
KEY: TTree h10;1
I would like to analyse about 150 files together, but I couldn't
find anywhere corresponding example.
I tried to read it in this way
TChain bas("h10");
bas.Add("/home/root/dst001.root");
bas.Add("/home/root/dst002.root");
bas.Add("/home/root/dst003.root");
bas.Add("/home/root/dst004.root");
bas.Add("/home/root/dst005.root");
.....
but I received the error:
Error in <TChain::Add>: Too many chain elements
Error in <TChain::Add>: Too many chain elements
Error in <TChain::Add>: Too many chain elements
...
and created histogram only for partly data.
Everthing is good if I take less root files. But I prefer to have
everything in one macro, so in that case I wanted to divide root
files in chains,because in the TChain.Add description there is
"An element can be the name of another chain or the name of a file
containing a tree".
TChain bas("h10");
TChain bas1("h10");
TChain bas2("h10");
bas1.Add("/home/root/dst001.root");
....
bas2.Add("/home/root/dst070.root");
....
bas.Add("bas1")
bas.Add("bas2")
....
But it doesnt work because root require .root extension
and looks for files, not for chains.
Would you help me to solve this problem?
I've also problem with how to limit histrogram in the direction of
y axis (something like 'max 1 1000' in PAW).
Thank you in advance
Tadeusz Pytlos
-- Tadeusz Pytlos mailto:pytlos@fizwe7.uni.lodz.pl Lodz, Poland