Skip to content

Commit ca2c0fb

Browse files
committed
Hits from charged tracks only
1 parent 78555d8 commit ca2c0fb

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Detectors/Upgrades/ALICE3/FD/simulation/src/Detector.cxx

+1-7
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,7 @@ void Detector::InitializeO2Detector()
127127
bool Detector::ProcessHits(FairVolume* vol)
128128
{
129129
// This method is called from the MC stepping
130-
// Track only charged particles and photons
131-
bool isPhotonTrack = false;
132-
int particlePdg = fMC->TrackPid();
133-
if (particlePdg == 22) { // If particle is standard PDG photon
134-
isPhotonTrack = true;
135-
}
136-
if (!(isPhotonTrack || fMC->TrackCharge())) {
130+
if (!(fMC->TrackCharge())) {
137131
return kFALSE;
138132
}
139133

0 commit comments

Comments
 (0)