5#ifndef MCTruthBase_MCTruthSteppingAction_H
6#define MCTruthBase_MCTruthSteppingAction_H
14#include "GaudiKernel/ToolHandle.h"
18#include "G4UserEventAction.hh"
19#include "G4UserSteppingAction.hh"
35 public G4UserSteppingAction,
48 IMessageSvc* msgSvc, MSG::Level level);
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
std::map< std::string, std::string > VolumeCollectionMap_t
Map of volume name to output TrackRecordCollection name.
bool m_isInitialized
Used to delay initialization until the event loop, after geo is ready.
void setupRecEnvelopes()
Setup the list of RecordingEnvelope helpers.
std::vector< RecordingEnvelope > m_recordingEnvelopes
List of RecordingEnvelope helpers to invoke.
MCTruthSteppingAction(const VolumeCollectionMap_t &collMap, IMessageSvc *msgSvc, MSG::Level level)
Construct the action with specified volumes and output collections.
VolumeCollectionMap_t m_volumeCollectionMap
Map of volume name to output collection name.
virtual void BeginOfEventAction(const G4Event *) override final
Called at the start of each G4 event.
virtual void UserSteppingAction(const G4Step *) override final
Process one particle step.