--- PamelaLevel2/src/PamLevel2.cpp 2007/09/12 09:25:22 1.46 +++ PamelaLevel2/src/PamLevel2.cpp 2007/10/29 09:13:06 1.51 @@ -145,6 +145,7 @@ dbc = 0; prevshift = 0; + maxshift = 10; //EMILIANO run_tree = NULL; run_tree_clone = NULL; @@ -962,10 +963,12 @@ if ( nphit_p != nphit_i ){ totp_score += nphit_p; toti_score += nphit_i; + tp_score+=nphit_p; + ti_score+=nphit_i; }; - if ( nphit_p > nphit_i) tp_score++; - else if( nphit_p < nphit_i) ti_score++; - else ;//niente + // if ( nphit_p > nphit_i) tp_score+=nphit_p; + // else if( nphit_p < nphit_i) ti_score+=nphit_i; + // else ;//niente }; }; // cout << "TOF "<SetPScore(totp_score); + ((PamTrack*)(ttsorted[i]))->SetIScore(toti_score); + ((PamTrack*)(ttimage[i]))->SetPScore(totp_score); ((PamTrack*)(ttimage[i]))->SetIScore(toti_score); }; @@ -1967,7 +1976,7 @@ // // check if we have already called once GetEntry, if not call it // - cout << "Bool_t PamLevel2::UpdateRunInfo(TChain *run, Long64_t iev) --- NON FUNZIONA BENISSIMO.... "<RUNHEADER_TIME; // BARBATRUCCO @@ -2178,12 +2187,15 @@ obt <= GetRunInfo()->RUNTRAILER_OBT) ) || GetRunInfo()->NEVENTS==0 - || !(irunentry < GetRunInfo()->NEVENTS-1-prevshift) +// || !(irunentry < GetRunInfo()->NEVENTS-1-prevshift) // ERRORE!!! fa saltare i run con 1 evento + || !(irunentry <= GetRunInfo()->NEVENTS-1-prevshift) ) && irun < run_tree->GetEntries() ){ - - + // - - - - - - - - - - - - - + // irunentry = position of current entry, relative to the run + // prevshift = shift needed to synchronize l0 and l2 data (nested events) + // - - - - - - - - - - - - - // ----------------------------------------- // store dead and live-time of previous run @@ -3284,7 +3296,7 @@ //=================================== if(!dbc || (dbc && !dbc->IsConnected())){ cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"<Close(); + + }; - if(!dbc || (dbc && !dbc->IsConnected())){ - cout << " TTree* PamLevel2::GetYodaTree( ) -- no DB connected... hai fatto qualche cazzata "<IsConnected())){ +// cout << " TTree* PamLevel2::GetYodaTree( ) -- no DB connected... hai fatto qualche cazzata "<0){ cout << " PKTNUM L2 --- "<< pktn << " --- L0 --- "<< GetEventHeader()->GetPscuHeader()->GetCounter()<