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