SteppingAction Class Reference

#include <SteppingAction.hh>

Inheritance diagram for SteppingAction:

Inheritance graph
[legend]
Collaboration diagram for SteppingAction:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SteppingAction (DetectorConstruction *)
 ~SteppingAction ()
void UserSteppingAction (const G4Step *)

Private Attributes

DetectorConstructionm_detector


Detailed Description

Definition at line 15 of file SteppingAction.hh.


Constructor & Destructor Documentation

SteppingAction::SteppingAction ( DetectorConstruction det  ) 

Definition at line 13 of file SteppingAction.cc.

00014 :m_detector(det)
00015 { }

SteppingAction::~SteppingAction (  ) 

Definition at line 19 of file SteppingAction.cc.

00020 { }


Member Function Documentation

void SteppingAction::UserSteppingAction ( const G4Step *  step  ) 

Definition at line 24 of file SteppingAction.cc.

00025 {
00026  // in which volume is the step ?
00027  G4VPhysicalVolume* volume 
00028  = step->GetPreStepPoint()->GetTouchableHandle()->GetVolume();
00029 
00030  // energy deposit in this step 
00031  G4double edep = step->GetTotalEnergyDeposit();
00032 
00033  // is astronaute ?
00034  if (volume == m_detector->GetAstronaut()) {
00035    G4cout << "--> edep in astronaut : " << edep/keV << " keV" << G4endl; 
00036  }
00037 }


Member Data Documentation

Definition at line 24 of file SteppingAction.hh.

Referenced by UserSteppingAction().


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

Generated on Fri Nov 21 10:20:21 2008 for jour3a by  doxygen 1.5.7.1