Skip to content

Commit

Permalink
Hits from charged tracks only
Browse files Browse the repository at this point in the history
  • Loading branch information
pkurash committed Feb 10, 2025
1 parent 78555d8 commit ca2c0fb
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Detectors/Upgrades/ALICE3/FD/simulation/src/Detector.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,7 @@ void Detector::InitializeO2Detector()
bool Detector::ProcessHits(FairVolume* vol)
{
// This method is called from the MC stepping
// Track only charged particles and photons
bool isPhotonTrack = false;
int particlePdg = fMC->TrackPid();
if (particlePdg == 22) { // If particle is standard PDG photon
isPhotonTrack = true;
}
if (!(isPhotonTrack || fMC->TrackCharge())) {
if (!(fMC->TrackCharge())) {
return kFALSE;
}

Expand Down

0 comments on commit ca2c0fb

Please sign in to comment.