Vertex generator that reads positions sequentially from an ntuple file. More...
#include <RMGVertexFromFile.hh>


Public Member Functions | |
| RMGVertexFromFile (RMGVertexFromFile const &)=delete | |
| RMGVertexFromFile & | operator= (RMGVertexFromFile const &)=delete |
| RMGVertexFromFile (RMGVertexFromFile &&)=delete | |
| RMGVertexFromFile & | operator= (RMGVertexFromFile &&)=delete |
| bool | GenerateVertex (G4ThreeVector &) override |
| Read the next position row from the file. | |
| void | BeginOfRunAction (const G4Run *) override |
| Open the input file and bind the position columns. | |
| void | EndOfRunAction (const G4Run *) override |
| Close the input file. | |
| void | OpenFile (std::string &name) |
| Set the path of the input ntuple file. | |
Public Member Functions inherited from RMGVVertexGenerator | |
| RMGVVertexGenerator (std::string name) | |
| RMGVVertexGenerator (RMGVVertexGenerator const &)=delete | |
| RMGVVertexGenerator & | operator= (RMGVVertexGenerator const &)=delete |
| RMGVVertexGenerator (RMGVVertexGenerator &&)=delete | |
| RMGVVertexGenerator & | operator= (RMGVVertexGenerator &&)=delete |
| void | SetMaxAttempts (int val) |
| Set the maximum number of attempts for vertex generation. | |
| int | GetMaxAttempts () const |
| Get the maximum number of attempts for vertex generation. | |
Additional Inherited Members | |
Protected Attributes inherited from RMGVVertexGenerator | |
| std::string | fGeneratorName |
| int | fMaxAttempts = 100 |
| const G4ThreeVector | kDummyPrimaryPosition = G4ThreeVector(0, 0, 0) |
| std::unique_ptr< G4UImessenger > | fMessenger |
Vertex generator that reads positions sequentially from an ntuple file.
Each row of the ntuple supplies one (x, y, z) triplet. Used to replay vertices produced by an external sampler (e.g. an MC truth file) into a remage run.
|
overridevirtual |
Open the input file and bind the position columns.
Reimplemented from RMGVVertexGenerator.
|
overridevirtual |
Close the input file.
Reimplemented from RMGVVertexGenerator.
|
overridevirtual |
Read the next position row from the file.
Reimplemented from RMGVVertexGenerator.