remage
Simulation framework for HPGe-based experiments
 
Loading...
Searching...
No Matches
RMGGeometryCheckOutputScheme Class Reference

"Output scheme" for checking the geometry with geantinos. More...

#include <RMGGeometryCheckOutputScheme.hh>

Inheritance diagram for RMGGeometryCheckOutputScheme:
Collaboration diagram for RMGGeometryCheckOutputScheme:

Public Member Functions

void SteppingAction (const G4Step *) override
 Record the physical volume traversed by the geantino in this step.
 
void TrackingActionPre (const G4Track *aTrack) override
 Attach a fresh GeantinoUserTrackInformation to the geantino track.
 
void TrackingActionPost (const G4Track *aTrack) override
 Log the volume sequence traversed by the geantino and flag overlaps.
 
- Public Member Functions inherited from RMGVOutputScheme
virtual void AssignOutputNames (G4AnalysisManager *)
 Initialize ntuple column names for this output scheme.
 
virtual void ClearBeforeEvent ()
 Clear any event-specific data.
 
virtual bool ShouldDiscardEvent (const G4Event *)
 Decide whether to discard the current event.
 
virtual bool StoreAlways () const
 Indicates whether the output scheme always stores event data.
 
virtual void StoreEvent (const G4Event *)
 Store the event data.
 
virtual std::optional< G4ClassificationOfNewTrack > StackingActionClassify (const G4Track *, const int)
 Hook for classifying new tracks during the stacking phase.
 
virtual std::optional< bool > StackingActionNewStage (const int)
 Hook for transitioning to a new stacking stage.
 
virtual void EndOfRunAction (const G4Run *)
 Perform final actions at the end of a run.
 
void SetNtuplePerDetector (bool ntuple_per_det)
 Specify whether to create separate ntuples for each detector.
 
void SetNtupleUseVolumeName (bool use_vol_name)
 Specify whether to use the physical volume name for naming ntuples.
 
void SetEventIDOffset (int offset)
 

Additional Inherited Members

- Static Public Attributes inherited from RMGVOutputScheme
static std::string fUIDKeyFormatString = "det{:03}"
 
- Protected Member Functions inherited from RMGVOutputScheme
virtual std::string GetNtupleName (RMGDetectorMetadata det) const
 
virtual std::string GetNtupleNameFlat () const
 
void CreateNtupleFOrDColumn (G4AnalysisManager *ana_man, int nt, std::string name, bool use_float)
 
void FillNtupleFOrDColumn (G4AnalysisManager *ana_man, int nt, int col, double val, bool use_float)
 
int GetEventIDForStorage (const G4Event *evt) const
 
- Protected Attributes inherited from RMGVOutputScheme
bool fNtuplePerDetector = true
 
bool fNtupleUseVolumeName = false
 
int fEventIDOffset = 0
 

Detailed Description

"Output scheme" for checking the geometry with geantinos.

For this to work, geantinos must be created (with isotropic emission) in the world volume, but outside the main geometry. They have to have an energy larger than the limits in the production cuts.

This is based on an approach described by Jason Detwiler.

Member Function Documentation

◆ SteppingAction()

void RMGGeometryCheckOutputScheme::SteppingAction ( const G4Step * step)
overridevirtual

Record the physical volume traversed by the geantino in this step.

Reimplemented from RMGVOutputScheme.

◆ TrackingActionPost()

void RMGGeometryCheckOutputScheme::TrackingActionPost ( const G4Track * aTrack)
overridevirtual

Log the volume sequence traversed by the geantino and flag overlaps.

Reimplemented from RMGVOutputScheme.

◆ TrackingActionPre()

void RMGGeometryCheckOutputScheme::TrackingActionPre ( const G4Track * aTrack)
overridevirtual

Attach a fresh GeantinoUserTrackInformation to the geantino track.

Reimplemented from RMGVOutputScheme.


The documentation for this class was generated from the following files: