/[PAMELA software]/PamelaLevel2/src/PamLevel2.cpp
ViewVC logotype

Diff of /PamelaLevel2/src/PamLevel2.cpp

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

revision 1.48 by mocchiut, Wed Sep 12 09:51:57 2007 UTC revision 1.49 by pam-fi, Wed Oct 24 08:41:25 2007 UTC
# Line 1975  Bool_t PamLevel2::UpdateRunInfo(TChain * Line 1975  Bool_t PamLevel2::UpdateRunInfo(TChain *
1975    //    //
1976    // check if we have already called once GetEntry, if not call it    // check if we have already called once GetEntry, if not call it
1977    //    //
1978      cout << "Bool_t PamLevel2::UpdateRunInfo(TChain *run, Long64_t iev) --- NON FUNZIONA BENISSIMO.... "<<endl;      cout << "Bool_t PamLevel2::UpdateRunInfo(TChain *run, Long64_t iev) --- ATTENZIONE --- NON E` MANTENUTA!!!!!!!.... "<<endl;
1979      if(!run){      if(!run){
1980            cout << "Bool_t PamLevel2::UpdateRunInfo(TChain *run, ULong64_t iev) -- ERROR -- missing RunInfo tree "<<endl;            cout << "Bool_t PamLevel2::UpdateRunInfo(TChain *run, ULong64_t iev) -- ERROR -- missing RunInfo tree "<<endl;
1981            return(false);                    return(false);        
# Line 2161  Bool_t PamLevel2::UpdateRunInfo(Long64_t Line 2161  Bool_t PamLevel2::UpdateRunInfo(Long64_t
2161          };                };      
2162    
2163          // -----------------------------------------------------------------------          // -----------------------------------------------------------------------
2164          // if it is simulation, assigh abstime by hand (temporaneo!!!)          // if it is simulation, assign abstime by hand (temporaneo!!!)
2165          // -----------------------------------------------------------------------          // -----------------------------------------------------------------------
2166          if(ISGP){          if(ISGP){
2167              abstime = GetRunInfo()->RUNHEADER_TIME; // BARBATRUCCO              abstime = GetRunInfo()->RUNHEADER_TIME; // BARBATRUCCO
# Line 2186  Bool_t PamLevel2::UpdateRunInfo(Long64_t Line 2186  Bool_t PamLevel2::UpdateRunInfo(Long64_t
2186                        obt <= GetRunInfo()->RUNTRAILER_OBT)                        obt <= GetRunInfo()->RUNTRAILER_OBT)
2187                      )                      )
2188                  || GetRunInfo()->NEVENTS==0                  || GetRunInfo()->NEVENTS==0
2189                  || !(irunentry < GetRunInfo()->NEVENTS-1-prevshift)  //              || !(irunentry < GetRunInfo()->NEVENTS-1-prevshift) // ERRORE!!! fa saltare i run con 1 evento
2190                    || !(irunentry <= GetRunInfo()->NEVENTS-1-prevshift)
2191                  )                  )
2192                  && irun < run_tree->GetEntries() ){                  && irun < run_tree->GetEntries() ){
2193    
2194                // - - - - - - - - - - - - -
2195                // irunentry = position of current entry, relative to the run
2196                // prevshift = shift needed to synchronize l0 and l2 data (nested events)
2197                // - - - - - - - - - - - - -
2198    
2199              // -----------------------------------------              // -----------------------------------------
2200              // store dead and live-time of previous run              // store dead and live-time of previous run

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.49

  ViewVC Help
Powered by ViewVC 1.1.23