/[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.11 by mocchiut, Tue Oct 24 07:28:37 2006 UTC
# Line 102  TChain *ItoRunInfo::LoadRunInfoTree(TLis Line 102  TChain *ItoRunInfo::LoadRunInfoTree(TLis
102    TChain *Tout=0;    TChain *Tout=0;
103    //    //
104    TChain *RI = 0;          TChain *RI = 0;      
105    TChain *SI = 0;          RI = new TChain("Run");      
   RI = new TChain("RunInfo");    
   SI = new TChain("SoftInfo");            
106    // loop over files and create chains      // loop over files and create chains  
107    TIter next(fl);    TIter next(fl);
108    TSystemFile *questo = 0;    TSystemFile *questo = 0;
109    while ( (questo = (TSystemFile*) next()) ) {    while ( (questo = (TSystemFile*) next()) ) {
110      TString name =  questo->GetName();      TString name =  questo->GetName();
111      RI->Add(name);      RI->Add(name);
     SI->Add(name);  
112    };    };
113    //    //
114    RI->SetBranchAddress("RunInfo", GetPointerToRI());    RI->SetBranchAddress("Run", GetPointerToRI());
115    Tout = RI;    Tout = RI;
   SI->SetBranchAddress("SoftInfo", GetPointerToSI());  
   Tout->AddFriend("SoftInfo");  
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.11

  ViewVC Help
Powered by ViewVC 1.1.23