#include <ConvertMCTruthToG4.h>
Public Member Functions | |
ConvertMCTruthToG4 () | |
Standard constructor and destructor. More... | |
virtual | ~ConvertMCTruthToG4 () |
void | Reset () |
Get ready to convert a new set of MCTruth objects. More... | |
void | Append (art::Ptr< simb::MCTruth > &mct) |
void | Append (const simb::MCTruth *mct) |
virtual void | GeneratePrimaries (G4Event *) |
Private Attributes | |
std::vector< const simb::MCTruth * > | fConvertList |
List of MCTruth objects to convert for this spill. More... | |
std::map< G4int, G4int > | fUnknownPDG |
map of unknown PDG codes to instances More... | |
Static Private Attributes | |
static G4ParticleTable * | fParticleTable = 0 |
Geant4's table of particle definitions. More... | |
Definition at line 36 of file ConvertMCTruthToG4.h.
g4b::ConvertMCTruthToG4::ConvertMCTruthToG4 | ( | ) |
Standard constructor and destructor.
Definition at line 39 of file ConvertMCTruthToG4.cxx.
|
virtual |
Definition at line 44 of file ConvertMCTruthToG4.cxx.
void g4b::ConvertMCTruthToG4::Append | ( | art::Ptr< simb::MCTruth > & | mct | ) |
Add a new MCTruth object to the list of primary particles to be appended to the Geant4 event.
Definition at line 78 of file ConvertMCTruthToG4.cxx.
void g4b::ConvertMCTruthToG4::Append | ( | const simb::MCTruth * | mct | ) |
Add a new MCTruth object to the list of primary particles to be appended to the Geant4 event.
Definition at line 84 of file ConvertMCTruthToG4.cxx.
|
virtual |
Required of any class that inherits from G4VUserPrimaryGeneratorAction; append primary particles to a G4Event object. This method is invoked by Geant4, and is not directly called by the user application.
Definition at line 90 of file ConvertMCTruthToG4.cxx.
void g4b::ConvertMCTruthToG4::Reset | ( | void | ) |
Get ready to convert a new set of MCTruth objects.
Definition at line 72 of file ConvertMCTruthToG4.cxx.
|
private |
List of MCTruth objects to convert for this spill.
Definition at line 62 of file ConvertMCTruthToG4.h.
|
staticprivate |
Geant4's table of particle definitions.
Definition at line 61 of file ConvertMCTruthToG4.h.
|
private |
map of unknown PDG codes to instances
Definition at line 63 of file ConvertMCTruthToG4.h.