Geant4  10.02.p03
OpNoviceStackingAction Class Reference

#include <OpNoviceStackingAction.hh>

Inheritance diagram for OpNoviceStackingAction:
Collaboration diagram for OpNoviceStackingAction:

Public Member Functions

 OpNoviceStackingAction ()
 
virtual ~OpNoviceStackingAction ()
 
virtual G4ClassificationOfNewTrack ClassifyNewTrack (const G4Track *aTrack)
 
virtual void NewStage ()
 
virtual void PrepareNewEvent ()
 
- Public Member Functions inherited from G4UserStackingAction
 G4UserStackingAction ()
 
virtual ~G4UserStackingAction ()
 
void SetStackManager (G4StackManager *value)
 

Private Attributes

G4int fScintillationCounter
 
G4int fCerenkovCounter
 

Additional Inherited Members

- Protected Attributes inherited from G4UserStackingAction
G4StackManagerstackManager
 

Detailed Description

Definition at line 38 of file OpNoviceStackingAction.hh.

Constructor & Destructor Documentation

◆ OpNoviceStackingAction()

OpNoviceStackingAction::OpNoviceStackingAction ( )

◆ ~OpNoviceStackingAction()

OpNoviceStackingAction::~OpNoviceStackingAction ( )
virtual

Definition at line 48 of file OpNoviceStackingAction.cc.

49 {}

Member Function Documentation

◆ ClassifyNewTrack()

G4ClassificationOfNewTrack OpNoviceStackingAction::ClassifyNewTrack ( const G4Track *  aTrack)
virtual

Reimplemented from G4UserStackingAction.

Definition at line 54 of file OpNoviceStackingAction.cc.

55 {
56  if(aTrack->GetDefinition() == G4OpticalPhoton::OpticalPhotonDefinition())
57  { // particle is optical photon
58  if(aTrack->GetParentID()>0)
59  { // particle is secondary
60  if(aTrack->GetCreatorProcess()->GetProcessName() == "Scintillation")
62  if(aTrack->GetCreatorProcess()->GetProcessName() == "Cerenkov")
64  }
65  }
66  return fUrgent;
67 }
static G4OpticalPhoton * OpticalPhotonDefinition()
Here is the call graph for this function:

◆ NewStage()

void OpNoviceStackingAction::NewStage ( )
virtual

Reimplemented from G4UserStackingAction.

Definition at line 71 of file OpNoviceStackingAction.cc.

72 {
73  G4cout << "Number of Scintillation photons produced in this event : "
75  G4cout << "Number of Cerenkov photons produced in this event : "
77 }
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61

◆ PrepareNewEvent()

void OpNoviceStackingAction::PrepareNewEvent ( )
virtual

Reimplemented from G4UserStackingAction.

Definition at line 81 of file OpNoviceStackingAction.cc.

Member Data Documentation

◆ fCerenkovCounter

G4int OpNoviceStackingAction::fCerenkovCounter
private

Definition at line 51 of file OpNoviceStackingAction.hh.

◆ fScintillationCounter

G4int OpNoviceStackingAction::fScintillationCounter
private

Definition at line 50 of file OpNoviceStackingAction.hh.


The documentation for this class was generated from the following files: