|
remage
Simulation framework for HPGe-based experiments
|


Public Types | |
| enum class | Confinement { kUnConfined , kVolume , kFromFile , kFromPoint } |
| Enumeration for specifying the primary vertex confinement strategy. More... | |
| enum class | Generator { kG4gun , kGPS , kBxDecay0 , kFromFile , kCosmicMuons , kMUSUNCosmicMuons , kUserDefined , kGeomBench , kUndefined } |
| Enumeration for selecting the primary generator mode. More... | |
Public Member Functions | |
| RMGMasterGenerator (RMGMasterGenerator const &)=delete | |
| RMGMasterGenerator & | operator= (RMGMasterGenerator const &)=delete |
| RMGMasterGenerator (RMGMasterGenerator &&)=delete | |
| RMGMasterGenerator & | operator= (RMGMasterGenerator &&)=delete |
| void | GeneratePrimaries (G4Event *event) override |
| Generate primary vertices for the event. | |
| RMGVGenerator * | GetGenerator () |
| Get the current primary generator. | |
| RMGVVertexGenerator * | GetVertexGenerator () |
| Get the current vertex generator. | |
| Confinement | GetConfinement () const |
| Retrieve the current vertex confinement strategy. | |
| void | SetConfinement (Confinement code) |
| Set the primary vertex confinement strategy. | |
| void | SetConfinementString (std::string code) |
| Set the vertex confinement strategy using a string. | |
| void | SetUserGenerator (RMGVGenerator *gen) |
| Set a user-defined primary generator. | |
| void | SetGenerator (Generator gen) |
| Select one of the built-in primary generator modes. | |
| void | SetGeneratorString (std::string gen) |
| Set the primary generator mode using a string. | |
|
strong |
Enumeration for specifying the primary vertex confinement strategy.
|
strong |
Enumeration for selecting the primary generator mode.
|
override |
Generate primary vertices for the event.
This method delegates the creation of primary vertices to the configured generator. Depending on the selected generator mode (e.g. G4gun, GPS, BxDecay0, CosmicMuons, etc.), it produces one or more primary vertices for the event.
| event | Pointer to the G4Event to which the primary vertices will be added. |
|
inlinenodiscard |
Retrieve the current vertex confinement strategy.
kUnConfined, kVolume, or kFromFile).
|
inline |
Get the current primary generator.
|
inline |
Get the current vertex generator.
| void RMGMasterGenerator::SetConfinement | ( | RMGMasterGenerator::Confinement | code | ) |
Set the primary vertex confinement strategy.
The confinement strategy determines how the primary vertex is generated, for example whether to generate it from a detector volume or to load it from an input file.
| code | The Confinement mode to set. |
| void RMGMasterGenerator::SetConfinementString | ( | std::string | code | ) |
Set the vertex confinement strategy using a string.
The provided string is converted to a Confinement enum value.
| code | The string specifying the confinement mode (e.g., "kUnConfined", "kVolume", "kFromFile"). |
| void RMGMasterGenerator::SetGenerator | ( | RMGMasterGenerator::Generator | gen | ) |
Select one of the built-in primary generator modes.
This method sets the generator mode (e.g., kG4gun, kGPS, kBxDecay0, kCosmicMuons, etc.) to be used when generating primary vertices.
| gen | The generator mode to use. |
| void RMGMasterGenerator::SetGeneratorString | ( | std::string | gen | ) |
Set the primary generator mode using a string.
The method converts the provided string into a Generator enum value.
| gen | The string representing the generator type (e.g., "kG4gun", "kGPS", "kBxDecay0", "kCosmicMuons", "kMUSUNCosmicMuons", etc.). |
| void RMGMasterGenerator::SetUserGenerator | ( | RMGVGenerator * | gen | ) |
Set a user-defined primary generator.
This method allows the registration of a custom generator. The user-defined generator pointer is owned by the manager.
| gen | Pointer to an instance of a custom RMGVGenerator. |