From 63abc73ad240569f483cf85a8d290307bf76f68b Mon Sep 17 00:00:00 2001 From: coppedis Date: Thu, 4 May 2006 07:21:23 +0000 Subject: [PATCH] Minor changes for acceptance studies --- ZDC/AliZDCv2.cxx | 7 ++++--- ZDC/AliZDCv2.h | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ZDC/AliZDCv2.cxx b/ZDC/AliZDCv2.cxx index 39afff1b3a5..c847d0fb178 100644 --- a/ZDC/AliZDCv2.cxx +++ b/ZDC/AliZDCv2.cxx @@ -1331,10 +1331,11 @@ void AliZDCv2::StepManager() AddHit(gAlice->GetMCApp()->GetCurrentTrackNumber(), vol, hits); if(fNoShower==1){ - fpDetected += 1; + if(vol[0]==1) fnDetected += 1; + else if(vol[0]==2) fpDetected += 1; + printf("\n # of nucleons in ZN = %d",fnDetected); + printf("\n # of nucleons in ZP = %d\n\n",fpDetected); gMC->StopTrack(); - if(vol[0]==1) printf("\n # of detected neutrons = %d\n\n",fpDetected); - if(vol[0]==2) printf("\n # of detected protons = %d\n\n",fpDetected); return; } } diff --git a/ZDC/AliZDCv2.h b/ZDC/AliZDCv2.h index 0e7a8f6ba49..b0eada2ff21 100644 --- a/ZDC/AliZDCv2.h +++ b/ZDC/AliZDCv2.h @@ -64,9 +64,9 @@ protected: Float_t fZEMLength; // ZEM length // Parameters for tracking studies - Int_t fpLostIT, fpLostD1, fpLostTDI, fpDetected; // For proton acceptance + Int_t fpLostIT, fpLostD1, fpLostTDI, fpDetected, fnDetected; // For spectators acceptance - ClassDef(AliZDCv2,3) // Zero Degree Calorimeter version 1 + ClassDef(AliZDCv2,4) // Zero Degree Calorimeter version 1 }; #endif -- 2.39.3