/[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.8 by mocchiut, Mon Sep 4 15:43: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;        
   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 145  void ItoRunInfo::CopyFromTo(GL_RUN *glru Line 140  void ItoRunInfo::CopyFromTo(GL_RUN *glru
140    //    //
141    if ( glrun && newrun ){    if ( glrun && newrun ){
142      //      //
143        //    printf("copy \n");
144        //
145      newrun->ID = glrun->ID                         ;      newrun->ID = glrun->ID                         ;
146      newrun->ID_RUN_FRAG = glrun-> ID_RUN_FRAG                ;      newrun->ID_RUN_FRAG = glrun-> ID_RUN_FRAG                ;
147      newrun->ID_ROOT_L0 = glrun->ID_ROOT_L0                 ;      newrun->ID_ROOT_L0 = glrun->ID_ROOT_L0                 ;

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

  ViewVC Help
Powered by ViewVC 1.1.23