Hi Silvia,
You can simplify your script as shown below
Rene Brun
{
gROOT->ProcessLine(".L style.C");
gROOT->ProcessLine(".L Util.C");
gROOT->ProcessLine(".x MakeTMBTreeClasses_so.C");
gROOT->ProcessLine(".L TMBTree_bu.C++");
TChain tt("TMBTree");
tt.Add("/work/tampa-clued0/silvia/TmbTree/MCp13.5/david1*");
TMBTree_bu t(&tt);
t.Loop();
}
On Fri, 17
Jan 2003,
Silvia
Tentindo-Repond wrote:
>
>
> //runjob_all.C
>
> {
>
> gROOT->ProcessLine(".L style.C");
> gROOT->ProcessLine(".L Util.C");
> gROOT->ProcessLine(".x MakeTMBTreeClasses_so.C");
> gROOT->ProcessLine(".L TMBTree_bu.C++");
>
> TChain tt("TMBTree");
> const char* fname;
> const char* dname="/work/tampa-clued0/silvia/TmbTree/MCp13.5/";
>
> void *i=gSystem->OpenDirectory(dname);
> while(fname=gSystem->GetDirEntry(i)){
> if(!strstr(fname,".root")) continue;
> if(!strstr(fname,"david1")) continue;
>
> char* ss=new char[strlen(dname)+strlen(fname)+1];
> strcpy(ss,dname);
> strcat(ss,fname);
> tt.Add(ss);
> cout<<ss<< endl;
> }// end while fname
>
>
> gROOT->ProcessLine("TMBTree_bu t(TMBTree)");
> gROOT->ProcessLine("t.Loop()");
>
> }
>
> Hello Rooters,
>
> here I'm trying to read out more than one (tmb_tree) root file.
>
>
> I know that the argument of the TChain method must be the tree name, that
> for the tmb tree files is not Global anymore, it becomes TMBTree.
> I then put the tree TMBTree as the argument for the class TMBTree_bu (my
> analysis). I cannot see what is wrong, may be you see it right away.
>
>
> Cheers
> Silvia
>
>
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:08 MET