Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AJPfleger committed Sep 30, 2024
1 parent 913f0fd commit e1f177e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Examples/Algorithms/Geant4/src/MaterialSteppingAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void ActsExamples::MaterialSteppingAction::UserSteppingAction(
G4Track* g4Track = step->GetTrack();
std::size_t trackID = g4Track->GetTrackID();
auto& materialTracks = eventStore().materialTracks;
if (materialTracks.contains(trackID - 1)) {
if (!materialTracks.contains(trackID - 1)) {
Acts::RecordedMaterialTrack rmTrack;
const auto& g4Vertex = g4Track->GetVertexPosition();
Acts::Vector3 vertex(g4Vertex[0], g4Vertex[1], g4Vertex[2]);
Expand Down

0 comments on commit e1f177e

Please sign in to comment.