16 #ifndef EXAMPLE_MCTRUTHEVENTACTION_SERVICE_HH 17 #define EXAMPLE_MCTRUTHEVENTACTION_SERVICE_HH 23 #include "artg4tk/actionBase/PrimaryGeneratorActionBase.hh" 24 #include "nug4/G4Base/ConvertMCTruthToG4.h" 26 #include "Geant4/G4Event.hh" 27 #include "Geant4/G4ParticleTable.hh" 28 #include "Geant4/G4VPrimaryGenerator.hh" 29 #include "Geant4/G4VUserPrimaryGeneratorAction.hh" 30 #include "Geant4/globals.hh" 54 std::vector<art::Handle<std::vector<simb::MCTruth>>>
const*
~MCTruthEventActionService()
static G4ParticleTable * fParticleTable
Geant4's table of particle definitions.
std::vector< art::Handle< std::vector< simb::MCTruth > > > const * fMCLists
MCTruthCollection input lists.
void setInputCollections(std::vector< art::Handle< std::vector< simb::MCTruth >>> const &mclists)
#define DECLARE_ART_SERVICE(svc, scope)
void generatePrimaries(G4Event *anEvent) override
std::map< G4int, G4int > fProcessedPDG
PDG codes processed.
std::map< G4int, G4int > fNon1StatusPDG
PDG codes skipped because not status 1.
std::map< G4int, G4int > fUnknownPDG
map of unknown PDG codes to instances
MCTruthEventActionService(fhicl::ParameterSet const &)