#include <MCTruthUserAction.h>
Definition at line 36 of file MCTruthUserAction.h.
◆ MCTruthUserAction()
| G4UA::iGeant4::MCTruthUserAction::MCTruthUserAction |
( |
const Config & | config | ) |
|
Definition at line 38 of file MCTruthUserAction.cxx.
41 {
42
44 {
45 G4cout << "create MCTruthUserAction" << G4endl;
46 }
47
48 if (
m_config.truthRecordSvc.retrieve().isFailure()){
50 description << G4String(
"MCTruthUserAction: ") +
"Could not retrieve " <<
m_config.truthRecordSvc;
51 G4Exception(
"G4UA::iGeant4::MCTruthUserAction",
"NoTruthSvc", FatalException,
description);
52 return;
53 }
54
55
56
58 }
ISF::ITruthSvc * m_truthRecordSvcQuick
used for faster access
std::string description
glabal timer - how long have I taken so far?
◆ PostUserTrackingAction()
| void G4UA::iGeant4::MCTruthUserAction::PostUserTrackingAction |
( |
const G4Track * | | ) |
|
|
overridevirtual |
Definition at line 79 of file MCTruthUserAction.cxx.
79 {
80 G4EventManager::GetEventManager()->GetTrackingManager()->SetStoreTrajectory(false);
81 }
◆ PreUserTrackingAction()
| void G4UA::iGeant4::MCTruthUserAction::PreUserTrackingAction |
( |
const G4Track * | inTrack | ) |
|
|
overridevirtual |
Definition at line 60 of file MCTruthUserAction.cxx.
60 {
61
62 TrackHelper trackHelper(inTrack);
63
64 if (trackHelper.IsPrimary() ||
65 (trackHelper.IsRegisteredSecondary()&&
m_config.ilevel>1) ||
66 (trackHelper.IsSecondary()&&
m_config.ilevel>2)) {
67
68 auto trkMgr = G4EventManager::GetEventManager()->GetTrackingManager();
70 trkMgr->SetStoreTrajectory(true);
71 trkMgr->SetTrajectory(temp);
72
73
74
75 }
76
77 }
◆ m_config
| Config G4UA::iGeant4::MCTruthUserAction::m_config |
|
private |
◆ m_truthRecordSvcQuick
| ISF::ITruthSvc* G4UA::iGeant4::MCTruthUserAction::m_truthRecordSvcQuick |
|
private |
The documentation for this class was generated from the following files: