LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#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.
References fUnknownPDG.
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.
References art::Ptr< T >::get().
Referenced by g4b::G4Helper::G4Run().
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.
References fConvertList.
|
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.
References fConvertList, fParticleTable, fUnknownPDG, LOG_DEBUG, simb::MCParticle::Momentum(), simb::MCParticle::PdgCode(), simb::MCParticle::Polarization(), g4b::PrimaryParticleInformation::SetMCTruth(), simb::MCParticle::StatusCode(), simb::MCParticle::T(), simb::MCParticle::Vx(), simb::MCParticle::Vy(), simb::MCParticle::Vz(), x, y, Z, and z.
void g4b::ConvertMCTruthToG4::Reset | ( | ) |
Get ready to convert a new set of MCTruth objects.
Definition at line 72 of file ConvertMCTruthToG4.cxx.
References fConvertList.
Referenced by g4b::G4Helper::G4Run().
|
private |
List of MCTruth objects to convert for this spill.
Definition at line 62 of file ConvertMCTruthToG4.h.
Referenced by Append(), GeneratePrimaries(), and Reset().
|
staticprivate |
Geant4's table of particle definitions.
Definition at line 61 of file ConvertMCTruthToG4.h.
Referenced by GeneratePrimaries().
|
private |
map of unknown PDG codes to instances
Definition at line 63 of file ConvertMCTruthToG4.h.
Referenced by GeneratePrimaries(), and ~ConvertMCTruthToG4().