LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "MCTruthEventAction_service.h"
Public Member Functions | |
MCTruthEventActionService (fhicl::ParameterSet const &) | |
~MCTruthEventActionService () | |
void | setInputCollections (std::vector< art::Handle< std::vector< simb::MCTruth >>> const &mclists) |
std::string const & | myName () const |
virtual void | initialize () |
Private Member Functions | |
void | generatePrimaries (G4Event *anEvent) override |
Private Attributes | |
std::vector< art::Handle< std::vector< simb::MCTruth > > > const * | fMCLists |
MCTruthCollection input lists. More... | |
std::map< G4int, G4int > | fUnknownPDG |
map of unknown PDG codes to instances More... | |
std::map< G4int, G4int > | fNon1StatusPDG |
PDG codes skipped because not status 1. More... | |
std::map< G4int, G4int > | fProcessedPDG |
PDG codes processed. More... | |
Static Private Attributes | |
static G4ParticleTable * | fParticleTable = nullptr |
Geant4's table of particle definitions. More... | |
Definition at line 40 of file MCTruthEventAction_service.h.
larg4::MCTruthEventActionService::MCTruthEventActionService | ( | fhicl::ParameterSet const & | p | ) |
Definition at line 42 of file MCTruthEventAction.cc.
larg4::MCTruthEventActionService::~MCTruthEventActionService | ( | ) |
Definition at line 46 of file MCTruthEventAction.cc.
References fNon1StatusPDG, fProcessedPDG, fUnknownPDG, and n.
|
overrideprivatevirtual |
Reimplemented from artg4tk::PrimaryGeneratorActionBase.
Definition at line 88 of file MCTruthEventAction.cc.
References fMCLists, fNon1StatusPDG, fParticleTable, fProcessedPDG, fUnknownPDG, art::Ptr< T >::get(), simb::MCTruth::GetParticle(), MF_LOG_DEBUG, MF_LOG_INFO, simb::MCParticle::Momentum(), simb::MCTruth::NParticles(), simb::MCParticle::PdgCode(), simb::MCParticle::Polarization(), g4b::PrimaryParticleInformation::SetMCTruth(), simb::MCParticle::StatusCode(), simb::MCParticle::T(), simb::MCParticle::TrackId(), simb::MCParticle::Vx(), simb::MCParticle::Vy(), simb::MCParticle::Vz(), x, y, Z, and z.
|
inlinevirtualinherited |
Reimplemented in artg4tk::myParticleGunActionService, and artg4tk::HepevtInputActionService.
Definition at line 36 of file ActionBase.hh.
|
inlineinherited |
|
inline |
Definition at line 45 of file MCTruthEventAction_service.h.
|
private |
MCTruthCollection input lists.
Definition at line 58 of file MCTruthEventAction_service.h.
Referenced by generatePrimaries().
|
private |
PDG codes skipped because not status 1.
Definition at line 60 of file MCTruthEventAction_service.h.
Referenced by generatePrimaries(), and ~MCTruthEventActionService().
|
staticprivate |
Geant4's table of particle definitions.
Definition at line 56 of file MCTruthEventAction_service.h.
Referenced by generatePrimaries().
|
private |
PDG codes processed.
Definition at line 61 of file MCTruthEventAction_service.h.
Referenced by generatePrimaries(), and ~MCTruthEventActionService().
|
private |
map of unknown PDG codes to instances
Definition at line 59 of file MCTruthEventAction_service.h.
Referenced by generatePrimaries(), and ~MCTruthEventActionService().