diff --git a/include/SimCore/UserTrackInformation.h b/include/SimCore/UserTrackInformation.h index cbf8882..89c33a6 100644 --- a/include/SimCore/UserTrackInformation.h +++ b/include/SimCore/UserTrackInformation.h @@ -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. @@ -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.