Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #117 from LDMX-Software/nonfiducial-filter
Browse files Browse the repository at this point in the history
added method for tagging recoil electrons for nonfiducial filter
  • Loading branch information
tvami authored Apr 18, 2024
2 parents 191f2ec + 06bf0c7 commit b3b1bc1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions include/SimCore/UserTrackInformation.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,23 @@ class UserTrackInformation : public G4VUserTrackInformation {
isBremCandidate_ = isBremCandidate;
}

/**
* Check whether this track is a recoil electron.
*
* @return true if this track is a recoil electron, false otherwise.
*/
bool isRecoilElectron() const { return isRecoilElectron_; }

/**
* Tag this track as a recoil electron by the biasing filters.
*
* @param[in] isRecoilElectron flag indicating whether this track is
* a recoil electron or not.
*/
void tagRecoilElectron(bool isRecoilElectron = true) {
isRecoilElectron_ = isRecoilElectron;
}

/**
* Check whether this track is a photon that has undergone a
* photo-nuclear reaction.
Expand Down Expand Up @@ -131,6 +148,9 @@ class UserTrackInformation : public G4VUserTrackInformation {
/// Flag indicating whether this track is a brem candidate
bool isBremCandidate_{false};

/// Flag indicating whether this track is a recoil electron
bool isRecoilElectron_{false};

/**
* Flag indicating whether this track has undergone a photo-nuclear
* reaction.
Expand Down

0 comments on commit b3b1bc1

Please sign in to comment.