46 fScintillationCounter = 0;
61 GetCurrentEvent()->GetEventID();
63 if (eventNumber != fEventNumber) {
64 G4cout <<
" Number of Scintillation Photons in previous event: "
65 << fScintillationCounter <<
G4endl;
66 G4cout <<
" Number of Cerenkov Photons in previous event: "
67 << fCerenkovCounter <<
G4endl;
68 fEventNumber = eventNumber;
69 fScintillationCounter = 0;
76 GetParticleDefinition()->GetParticleName();
78 if (ParticleName ==
"opticalphoton")
return;
80 const std::vector<const G4Track*>* secondaries =
83 if (secondaries->size()>0) {
84 for(
unsigned int i=0; i<secondaries->size(); ++i) {
85 if (secondaries->at(i)->GetParentID()>0) {
86 if(secondaries->at(i)->GetDynamicParticle()->GetParticleDefinition()
88 if (secondaries->at(i)->GetCreatorProcess()->GetProcessName()
89 ==
"Scintillation")fScintillationCounter++;
90 if (secondaries->at(i)->GetCreatorProcess()->GetProcessName()
91 ==
"Cerenkov")fCerenkovCounter++;
const G4DynamicParticle * GetDynamicParticle() const
virtual void UserSteppingAction(const G4Step *)
G4GLOB_DLL std::ostream G4cout
const std::vector< const G4Track * > * GetSecondaryInCurrentStep() const
virtual ~OpNoviceSteppingAction()
static G4RunManager * GetRunManager()
Definition of the OpNoviceSteppingAction class.
static G4OpticalPhoton * OpticalPhotonDefinition()
G4Track * GetTrack() const