We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78555d8 commit ca2c0fbCopy full SHA for ca2c0fb
Detectors/Upgrades/ALICE3/FD/simulation/src/Detector.cxx
@@ -127,13 +127,7 @@ void Detector::InitializeO2Detector()
127
bool Detector::ProcessHits(FairVolume* vol)
128
{
129
// 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())) {
+ if (!(fMC->TrackCharge())) {
137
return kFALSE;
138
}
139
0 commit comments