Class RMGIsotopeFilterScheme

Inheritance Relationships

Base Type

Class Documentation

class RMGIsotopeFilterScheme : public RMGVOutputScheme

Public Functions

RMGIsotopeFilterScheme()
virtual bool ShouldDiscardEvent(const G4Event*) override

Decide whether to discard the current event.

This function is called at the end of each event. It can be used to filter out events that do not meet specified criteria.

Returns:

True if the event should be discarded, false otherwise.

virtual std::optional<bool> StackingActionNewStage(int stage) override

Hook for transitioning to a new stacking stage.

Output schemes can use this method to determine whether waiting tracks should be cleared as the stacking process advances to a new stage.

stage is the new stacking stage index.

Returns:

An optional boolean decision; if empty, no action is taken.

virtual std::optional<G4ClassificationOfNewTrack> StackingActionClassify(const G4Track*, int stage) override

Hook for classifying new tracks during the stacking phase.

This method allows the output scheme to classify tracks in the stacking action, e.g. to discard or temporarily hold them.

aTrack is the pointer to the G4Track being classified. stage is the current stage index in the stacking process.

Returns:

An optional classification value; if empty, no classification is applied.

virtual void TrackingActionPre(const G4Track*) override

Hook called before tracking a new particle.

Output schemes may use this to record any track-specific information required for output.

inline void AddIsotope(int a, int z)