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

#include <H02SteppingAction.hh>

Inheritance diagram for H02SteppingAction:
Collaboration diagram for H02SteppingAction:

Public Member Functions

 H02SteppingAction ()
 
virtual ~H02SteppingAction ()
 
virtual void UserSteppingAction (const G4Step *astep)
 
- Public Member Functions inherited from G4UserSteppingAction
 G4UserSteppingAction ()
 
virtual ~G4UserSteppingAction ()
 
virtual void SetSteppingManagerPointer (G4SteppingManager *pValue)
 

Additional Inherited Members

- Protected Attributes inherited from G4UserSteppingAction
G4SteppingManagerfpSteppingManager
 

Detailed Description

Definition at line 36 of file H02SteppingAction.hh.

Constructor & Destructor Documentation

H02SteppingAction::H02SteppingAction ( )

Definition at line 42 of file H02SteppingAction.cc.

43 {
44 }
H02SteppingAction::~H02SteppingAction ( )
virtual

Definition at line 48 of file H02SteppingAction.cc.

49 {
50 }

Member Function Documentation

void H02SteppingAction::UserSteppingAction ( const G4Step astep)
virtual

Reimplemented from G4UserSteppingAction.

Definition at line 53 of file H02SteppingAction.cc.

54 {
55  G4Track* atrack= astep-> GetTrack();
56 
57  if(atrack-> GetTrackStatus() != fAlive) return;
58  if(atrack-> GetParentID() == 0) return;
59 
60  G4ParticleDefinition* particleType= atrack-> GetDefinition();
61  if((particleType == G4MuonPlus::MuonPlusDefinition())
62  || (particleType == G4MuonMinus::MuonMinusDefinition())) return;
63 
64  G4StepPoint* prestep= astep-> GetPreStepPoint();
65  G4VPhysicalVolume* pv= prestep-> GetPhysicalVolume();
66  G4String pvname= pv-> GetName();
67  if(pvname=="BARREL_CAL_PV" || pvname=="ENDCAP_CAL_PV" ) {
68  atrack-> SetTrackStatus(fKillTrackAndSecondaries);
69  }
70 }
static G4MuonPlus * MuonPlusDefinition()
Definition: G4MuonPlus.cc:94
tuple atrack
Definition: test1.py:9
static G4MuonMinus * MuonMinusDefinition()
Definition: G4MuonMinus.cc:95

Here is the call graph for this function:


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