Skip to content
Snippets Groups Projects
Commit 94b059cc authored by Andre Sailer's avatar Andre Sailer Committed by Marko Petric
Browse files

Geant4SensDetFilters: fix behaviour of ParticleReject and ParticleSelect Filters

parent 5e21c7b7
Branches
Tags
No related merge requests found
......@@ -205,7 +205,7 @@ ParticleRejectFilter::~ParticleRejectFilter() {
/// Filter action. Return true if hits should be processed
bool ParticleRejectFilter::operator()(const G4Step* step) const {
return isSameType(step->GetTrack());
return !isSameType(step->GetTrack());
}
/// Constructor.
......@@ -221,7 +221,7 @@ ParticleSelectFilter::~ParticleSelectFilter() {
/// Filter action. Return true if hits should be processed
bool ParticleSelectFilter::operator()(const G4Step* step) const {
return !isSameType(step->GetTrack());
return isSameType(step->GetTrack());
}
/// Constructor.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment