Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LXeStackingAction Class Reference

#include <LXeStackingAction.hh>

Inheritance diagram for LXeStackingAction:
Collaboration diagram for LXeStackingAction:

Public Member Functions

 LXeStackingAction ()
 
virtual ~LXeStackingAction ()
 
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)
 

Additional Inherited Members

- Protected Attributes inherited from G4UserStackingAction
G4StackManagerstackManager
 

Detailed Description

Definition at line 38 of file LXeStackingAction.hh.

Constructor & Destructor Documentation

LXeStackingAction::LXeStackingAction ( )

Definition at line 46 of file LXeStackingAction.cc.

46 {}
LXeStackingAction::~LXeStackingAction ( )
virtual

Definition at line 50 of file LXeStackingAction.cc.

50 {}

Member Function Documentation

G4ClassificationOfNewTrack LXeStackingAction::ClassifyNewTrack ( const G4Track aTrack)
virtual

Reimplemented from G4UserStackingAction.

Definition at line 55 of file LXeStackingAction.cc.

55  {
56 
57  LXeUserEventInformation* eventInformation=
60 
61  //Count what process generated the optical photons
63  // particle is optical photon
64  if(aTrack->GetParentID()>0){
65  // particle is secondary
66  if(aTrack->GetCreatorProcess()->GetProcessName()=="Scintillation")
67  eventInformation->IncPhotonCount_Scint();
68  else if(aTrack->GetCreatorProcess()->GetProcessName()=="Cerenkov")
69  eventInformation->IncPhotonCount_Ceren();
70  }
71  }
72  else{
73  }
74  return fUrgent;
75 }
G4ParticleDefinition * GetDefinition() const
G4int GetParentID() const
G4VUserEventInformation * GetUserInformation() const
Definition: G4Event.hh:199
const G4VProcess * GetCreatorProcess() const
const G4String & GetProcessName() const
Definition: G4VProcess.hh:408
static G4EventManager * GetEventManager()
static G4OpticalPhoton * OpticalPhotonDefinition()
const G4Event * GetConstCurrentEvent()

Here is the call graph for this function:

void LXeStackingAction::NewStage ( )
virtual

Reimplemented from G4UserStackingAction.

Definition at line 79 of file LXeStackingAction.cc.

79 {}
void LXeStackingAction::PrepareNewEvent ( )
virtual

Reimplemented from G4UserStackingAction.

Definition at line 83 of file LXeStackingAction.cc.

83 {}

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