#include "ExampleGeneralAction_service.hh"
artg4tk::ExampleGeneralActionService::ExampleGeneralActionService |
( |
fhicl::ParameterSet const & |
p | ) |
|
|
explicit |
void artg4tk::ExampleGeneralActionService::beginOfRunAction |
( |
const G4Run * |
currentRun | ) |
|
|
overridevirtual |
Reimplemented from artg4tk::RunActionBase.
Definition at line 49 of file ExampleGeneralAction.cc.
51 G4cout <<
"### Run " << currRun->GetRunID() <<
" start." << G4endl;
53 artg4tk::ArtG4RunManager::GetRunManager()->SetRandomNumberStore(
true);
virtual void artg4tk::RunActionBase::endOfRunAction |
( |
const G4Run * |
| ) |
|
|
inlinevirtualinherited |
virtual void artg4tk::ActionBase::initialize |
( |
| ) |
|
|
inlinevirtualinherited |
std::string const& artg4tk::ActionBase::myName |
( |
| ) |
const |
|
inlineinherited |
std::string const& artg4tk::ActionBase::myName |
( |
| ) |
const |
|
inlineinherited |
std::string const& artg4tk::ActionBase::myName |
( |
| ) |
const |
|
inlineinherited |
virtual void artg4tk::TrackingActionBase::postUserTrackingAction |
( |
const G4Track * |
| ) |
|
|
inlinevirtualinherited |
void artg4tk::ExampleGeneralActionService::preUserTrackingAction |
( |
const G4Track * |
currTrack | ) |
|
|
overridevirtual |
Reimplemented from artg4tk::TrackingActionBase.
Definition at line 32 of file ExampleGeneralAction.cc.
36 G4TrackingManager* trackingMan = G4EventManager::GetEventManager()->GetTrackingManager();
39 if (currTrack->GetParentID() == 0) {
40 trackingMan->SetStoreTrajectory(
true);
43 trackingMan->SetStoreTrajectory(
false);
void artg4tk::ExampleGeneralActionService::userSteppingAction |
( |
const G4Step * |
theStep | ) |
|
|
overridevirtual |
Reimplemented from artg4tk::SteppingActionBase.
Definition at line 59 of file ExampleGeneralAction.cc.
65 G4Track* theTrack = currStep->GetTrack();
69 if (theTrack->GetTrackStatus() != fAlive) {
74 if (theTrack->GetParentID() != 0) {
79 G4ParticleDefinition* particleType = theTrack->GetDefinition();
80 if ((particleType == G4MuonPlus::MuonPlusDefinition()) ||
81 (particleType == G4MuonMinus::MuonMinusDefinition())) {
87 G4StepPoint* thePrePoint = currStep->GetPreStepPoint();
88 G4VPhysicalVolume* thePrePV = thePrePoint->GetPhysicalVolume();
89 G4String thePrePVname = thePrePV->GetName();
90 if (thePrePVname(0, 4) ==
"calo") {
96 G4StepPoint* thePostPoint = currStep->GetPostStepPoint();
97 G4VPhysicalVolume* thePostPV = thePostPoint->GetPhysicalVolume();
98 G4String thePostPVname = thePostPV->GetName();
99 if (thePostPVname(0, 4) !=
"calo") {
111 theTrack->SetTrackStatus(fSuspend);
The documentation for this class was generated from the following files: