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 *, RunAction *)
 ~SteppingAction ()
void UserSteppingAction (const G4Step *)

Private Attributes

DetectorConstructionm_detector
RunActionm_runAction


Detailed Description

Definition at line 16 of file SteppingAction.hh.


Constructor & Destructor Documentation

SteppingAction::SteppingAction ( DetectorConstruction det,
RunAction run 
)

Definition at line 14 of file SteppingAction.cc.

00015 :m_detector(det),m_runAction(run)
00016 { }

SteppingAction::~SteppingAction (  ) 

Definition at line 20 of file SteppingAction.cc.

00021 { }


Member Function Documentation

void SteppingAction::UserSteppingAction ( const G4Step *  step  ) 

Definition at line 25 of file SteppingAction.cc.

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


Member Data Documentation

Definition at line 25 of file SteppingAction.hh.

Referenced by UserSteppingAction().

Definition at line 26 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:26 2008 for jour3b by  doxygen 1.5.7.1