Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
RE04SteppingAction Class Reference

#include <RE04SteppingAction.hh>

Inheritance diagram for RE04SteppingAction:
G4UserSteppingAction

Public Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from G4UserSteppingAction
G4SteppingManagerfpSteppingManager
 

Detailed Description

User stepping action class

Definition at line 42 of file RE04SteppingAction.hh.

Constructor & Destructor Documentation

RE04SteppingAction::RE04SteppingAction ( )

Definition at line 39 of file RE04SteppingAction.cc.

RE04SteppingAction::~RE04SteppingAction ( )
virtual

Definition at line 44 of file RE04SteppingAction.cc.

45 {;}

Member Function Documentation

void RE04SteppingAction::UserSteppingAction ( const G4Step aStep)
virtual

Reimplemented from G4UserSteppingAction.

Definition at line 48 of file RE04SteppingAction.cc.

References G4cout, G4endl, G4Track::GetMaterial(), G4Material::GetName(), G4StepPoint::GetPosition(), G4Step::GetPostStepPoint(), G4Step::GetPreStepPoint(), and G4Step::GetTrack().

49 {
50  const G4Track* trk = aStep->GetTrack();
51  G4cout << "PreStep " << aStep->GetPreStepPoint()->GetPosition()
52  << " -- PostStep " << aStep->GetPostStepPoint()->GetPosition()
53  << " >>> Material " << trk->GetMaterial()->GetName() << G4endl;
54 }
const G4String & GetName() const
Definition: G4Material.hh:176
G4StepPoint * GetPreStepPoint() const
G4GLOB_DLL std::ostream G4cout
const G4ThreeVector & GetPosition() const
G4Material * GetMaterial() const
G4StepPoint * GetPostStepPoint() const
#define G4endl
Definition: G4ios.hh:61
G4Track * GetTrack() const

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