/[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.9 by mocchiut, Tue Sep 5 13:21:10 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;        
   TChain *SI = 0;        
   RI = new TChain("RunInfo");    
   SI = new TChain("SoftInfo");            
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);
     SI->Add(name);  
110    };    };
111    //    //
112    RI->SetBranchAddress("RunInfo", GetPointerToRI());    Tout->SetBranchAddress("RunInfo", GetPointerToRI());
113    Tout = RI;    printf("Run          : set branch address RunInfo\n");
114    SI->SetBranchAddress("SoftInfo", GetPointerToSI());    Tout->SetBranchAddress("SoftInfo", GetPointerToSI());
115    Tout->AddFriend("SoftInfo");    printf("Software     : set branch address SoftInfo\n");
116    //    //
117    return Tout;                      return Tout;                  
118    //    //
# Line 200  Int_t ItoRunInfo::Update(UInt_t run, TSt Line 195  Int_t ItoRunInfo::Update(UInt_t run, TSt
195    isreadonly = false;    isreadonly = false;
196    idRun = run;    idRun = run;
197    //    //
198    Bool_t debug = true;    Bool_t debug = false;
199    //    //
200    Bool_t ismydir = false;    Bool_t ismydir = false;
201    //    //

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

  ViewVC Help
Powered by ViewVC 1.1.23