45 fScintillationCounter = 0;
60 GetCurrentEvent()->GetEventID();
62 if (eventNumber != fEventNumber) {
63 fEventNumber = eventNumber;
64 fScintillationCounter = 0;
71 GetParticleDefinition()->GetParticleName();
73 if (ParticleName ==
"opticalphoton")
return;
75 const std::vector<const G4Track*>* secondaries =
78 if (secondaries->size()>0) {
79 for(
unsigned int i=0; i<secondaries->size(); ++i) {
80 if (secondaries->at(i)->GetParentID()>0) {
81 if(secondaries->at(i)->GetDynamicParticle()->GetParticleDefinition()
83 if (secondaries->at(i)->GetCreatorProcess()->GetProcessName()
84 ==
"Scintillation")fScintillationCounter++;
85 if (secondaries->at(i)->GetCreatorProcess()->GetProcessName()
86 ==
"Cerenkov")fCerenkovCounter++;
const G4DynamicParticle * GetDynamicParticle() const
virtual void UserSteppingAction(const G4Step *)
const std::vector< const G4Track * > * GetSecondaryInCurrentStep() const
virtual ~OpNoviceSteppingAction()
static G4RunManager * GetRunManager()
Definition of the OpNoviceSteppingAction class.
static G4OpticalPhoton * OpticalPhotonDefinition()
G4Track * GetTrack() const