--- calo/flight/CaloNuclei/src/CaloNuclei.cpp 2007/04/04 11:04:58 1.2 +++ calo/flight/CaloNuclei/src/CaloNuclei.cpp 2007/04/04 11:31:27 1.3 @@ -26,6 +26,7 @@ void CaloNuclei::Clear(){ // + tr = 0; interplane = 0; preq = 0.; postq = 0.; @@ -43,8 +44,8 @@ // Process(); // - printf("===================================================================\n"); - printf(" OBT: %u PKT: %u ATIME: %u \n",OBT,PKT,atime); + printf("========================================================================\n"); + printf(" OBT: %u PKT: %u ATIME: %u Track %i \n",OBT,PKT,atime,tr); printf(" interplane [number of available dE/dx before interaction]: %i\n",interplane); printf(" ethr [threshold used to determine interplane]:............ %f \n",ethr); printf(" dedx1 [dE/dx from the first calorimeter plane]:........... %f \n",dedx1); @@ -57,7 +58,7 @@ printf(" N [no of used plane]:..................................... %i \n",N); printf(" R [no strip used per plane ]:............................. %i \n",R); printf(" qpremeanN [truncated mean using N planes and R strips]:... %f \n",qpremeanN); - printf("===================================================================\n"); + printf("========================================================================\n"); // }; @@ -68,7 +69,11 @@ void CaloNuclei::Process(){ - // + Process(0); +}; + +void CaloNuclei::Process(Int_t ntr){ + // if ( !L2 ){ printf(" ERROR: cannot find PamLevel2 object, use the correct constructor or check your program!\n"); printf(" ERROR: CaloNuclei variables not filled \n"); @@ -90,12 +95,14 @@ // if ( !newentry ) return; // + tr = ntr; + // // printf(" Processing event at OBT %u PKT %u time %u \n",OBT,PKT,atime); // Clear(); // PamTrack *track = 0; - track = L2->GetTrack(0); + track = L2->GetTrack(ntr); // Int_t view = 0; Int_t plane = 0;