Skip to content

Commit

Permalink
Kill photons as soon they enter into a OpticalTracker
Browse files Browse the repository at this point in the history
  • Loading branch information
atolosadelgado committed Sep 30, 2023
1 parent 1962f7d commit ee49446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DDG4/plugins/Geant4SDActions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ namespace dd4hep {
double hit_deposit = contrib.deposit;
Hit* hit = new Hit(contrib, hit_momentum, hit_deposit);

if (h.trackDef() != G4OpticalPhoton::OpticalPhotonDefinition()) {
if (h.trackDef() == G4OpticalPhoton::OpticalPhotonDefinition()) {
step->GetTrack()->SetTrackStatus(fStopAndKill);
}
hit->cellID = cellID(step);
Expand Down

0 comments on commit ee49446

Please sign in to comment.