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); |
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 |
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 |