Class Reference for E1039 Core & Analysis Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PHG4SteppingAction Class Referenceabstract

#include </dev/shm/kenichi/update-github-e1039-doc/e1039-core/simulation/g4main/PHG4SteppingAction.h>

+ Inheritance diagram for PHG4SteppingAction:
+ Collaboration diagram for PHG4SteppingAction:

Public Member Functions

 PHG4SteppingAction (const int i=0)
 
virtual ~PHG4SteppingAction ()
 
virtual bool UserSteppingAction (const G4Step *step, bool was_used)=0
 stepping action. This defines processing of a single step in a given volume More...
 
virtual void Verbosity (const int i)
 
int Verbosity () const
 
virtual int Init ()
 
virtual double GetScintLightYield (const G4Step *step)
 get scintillation photon count. It require a custom set SCINTILLATIONYIELD property to work More...
 
virtual double GetVisibleEnergyDeposition (const G4Step *step)
 get amount of energy that can make scintillation light, in Unit of GeV. More...
 
virtual void StoreLocalCoordinate (PHG4Hit *hit, const G4Step *step, const bool do_prepoint, const bool do_postpoint)
 Extract local coordinate of the hit and save to PHG4Hit. More...
 
virtual void SetInterfacePointers (PHCompositeNode *)
 
virtual void Print (const std::string &what) const
 
void SetOpt (const std::string &name, const int i)
 
bool IntOptExist (const std::string &name)
 
int GetIntOpt (const std::string &name)
 
std::string GetName () const
 

Protected Attributes

int verbosity
 
std::string name
 

Detailed Description

Definition at line 12 of file PHG4SteppingAction.h.

Constructor & Destructor Documentation

PHG4SteppingAction::PHG4SteppingAction ( const int  i = 0)
inline

Definition at line 16 of file PHG4SteppingAction.h.

virtual PHG4SteppingAction::~PHG4SteppingAction ( )
inlinevirtual

Definition at line 21 of file PHG4SteppingAction.h.

Member Function Documentation

int PHG4SteppingAction::GetIntOpt ( const std::string &  name)

Definition at line 167 of file PHG4SteppingAction.cc.

double PHG4SteppingAction::GetScintLightYield ( const G4Step *  step)
virtual

get scintillation photon count. It require a custom set SCINTILLATIONYIELD property to work

Definition at line 31 of file PHG4SteppingAction.cc.

double PHG4SteppingAction::GetVisibleEnergyDeposition ( const G4Step *  step)
virtual

get amount of energy that can make scintillation light, in Unit of GeV.

Definition at line 95 of file PHG4SteppingAction.cc.

Referenced by PHG4BNLTargetCoilSteppingAction::UserSteppingAction(), PHG4CylinderSteppingAction::UserSteppingAction(), PHG4TargetCoilSteppingAction::UserSteppingAction(), PHG4PolyconSteppingAction::UserSteppingAction(), PHG4TargetCoilV2SteppingAction::UserSteppingAction(), and PHG4EMCalSteppingAction::UserSteppingAction().

+ Here is the caller graph for this function:

virtual int PHG4SteppingAction::Init ( )
inlinevirtual

Definition at line 35 of file PHG4SteppingAction.h.

bool PHG4SteppingAction::IntOptExist ( const std::string &  name)

Definition at line 157 of file PHG4SteppingAction.cc.

virtual void PHG4SteppingAction::Print ( const std::string &  what) const
inlinevirtual

Definition at line 48 of file PHG4SteppingAction.h.

Referenced by PHG4BNLTargetCoilSubsystem::Print(), PHG4TargetCoilV2Subsystem::Print(), PHG4TargetCoilSubsystem::Print(), PHG4PolyconSubsystem::Print(), and PHG4CylinderSubsystem::Print().

+ Here is the caller graph for this function:

void PHG4SteppingAction::SetOpt ( const std::string &  name,
const int  i 
)
inline

Definition at line 50 of file PHG4SteppingAction.h.

References name.

void PHG4SteppingAction::StoreLocalCoordinate ( PHG4Hit hit,
const G4Step *  step,
const bool  do_prepoint,
const bool  do_postpoint 
)
virtual

Extract local coordinate of the hit and save to PHG4Hit.

Definition at line 119 of file PHG4SteppingAction.cc.

References PHG4Hit::set_local_x(), PHG4Hit::set_local_y(), and PHG4Hit::set_local_z().

+ Here is the call graph for this function:

virtual bool PHG4SteppingAction::UserSteppingAction ( const G4Step *  step,
bool  was_used 
)
pure virtual

stepping action. This defines processing of a single step in a given volume

returns true if hits associated to this step was processed by this detector

Parameters
steppointer to the geant 4 step class
was_used,:true if the hit was already used by a previously registered subsystem

Implemented in PHG4EMCalSteppingAction, PHG4BNLTargetCoilSteppingAction, PHG4CylinderSteppingAction, PHG4PolyconSteppingAction, PHG4TargetCoilSteppingAction, PHG4TargetCoilV2SteppingAction, PHG4ConeSteppingAction, PHG4BlockSteppingAction, PHG4CollimatorSteppingAction, PHG4SquareTubeSteppingAction, SQG4DipoleMagnetSteppingAction, and PHG4TruthSteppingAction.

virtual void PHG4SteppingAction::Verbosity ( const int  i)
inlinevirtual

Definition at line 32 of file PHG4SteppingAction.h.

References verbosity.

int PHG4SteppingAction::Verbosity ( ) const
inline

Definition at line 33 of file PHG4SteppingAction.h.

References verbosity.

Referenced by PHG4EMCalSteppingAction::SetInterfacePointers().

+ Here is the caller graph for this function:

Member Data Documentation

std::string PHG4SteppingAction::name
protected
int PHG4SteppingAction::verbosity
protected

Definition at line 55 of file PHG4SteppingAction.h.

Referenced by Verbosity().


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