/[PAMELA software]/DarthVader/RunInfo/src/RunInfo.cpp
ViewVC logotype

Diff of /DarthVader/RunInfo/src/RunInfo.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by mocchiut, Tue Oct 24 07:31:50 2006 UTC revision 1.13 by mocchiut, Thu Nov 2 12:32:58 2006 UTC
# Line 89  ItoRunInfo::ItoRunInfo(TFile *processFl) Line 89  ItoRunInfo::ItoRunInfo(TFile *processFl)
89    last_file_entry = 0;    last_file_entry = 0;
90    file_entries = 0;    file_entries = 0;
91    version = new SoftInfo();    version = new SoftInfo();
92      //  glrun = new GL_RUN();
93    norun = 0;    norun = 0;
94    totnorun = 0;    totnorun = 0;
95    runlist = new TArrayI(500);    runlist = new TArrayI(500);
# Line 99  ItoRunInfo::ItoRunInfo(TFile *processFl) Line 100  ItoRunInfo::ItoRunInfo(TFile *processFl)
100    
101  TChain *ItoRunInfo::LoadRunInfoTree(TList *fl){  TChain *ItoRunInfo::LoadRunInfoTree(TList *fl){
102    //    //
103    TChain *Tout=0;    TChain *Tout = new TChain("Run");    
   //  
   TChain *RI = 0;        
   RI = new TChain("Run");        
104    // loop over files and create chains      // loop over files and create chains  
105    TIter next(fl);    TIter next(fl);
106    TSystemFile *questo = 0;    TSystemFile *questo = 0;
107    while ( (questo = (TSystemFile*) next()) ) {    while ( (questo = (TSystemFile*) next()) ) {
108      TString name =  questo->GetName();      TString name =  questo->GetName();
109      RI->Add(name);      Tout->Add(name);
110    };    };
111    //    //
112    RI->SetBranchAddress("RunInfo", GetPointerToRI());    Tout->SetBranchAddress("RunInfo", GetPointerToRI());
113    RI->SetBranchAddress("SoftInfo", GetPointerToSI());    printf("Run          : set branch address RunInfo\n");
114    Tout = RI;    Tout->SetBranchAddress("SoftInfo", GetPointerToSI());
115      printf("Software     : set branch address SoftInfo\n");
116    //    //
117    return Tout;                      return Tout;                  
118    //    //

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.23