Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4SteppingAction Class Referenceabstract

#include <coresoftware/blob/master/simulation/g4simulation/g4main/PHG4SteppingAction.h>

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

Public Member Functions

 PHG4SteppingAction (const std::string &name, 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
 
virtual void Verbosity (const int i)
 
virtual int Verbosity () const
 
virtual int Init ()
 
virtual int InitWithNode (PHCompositeNode *)
 
virtual double GetScintLightYield (const G4Step *step)
 get scintillation photon count. It require a custom set SCINTILLATIONYIELD property to work
 
virtual double GetVisibleEnergyDeposition (const G4Step *step)
 get amount of energy that can make scintillation light, in Unit of GeV.
 
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.
 
virtual void SetInterfacePointers (PHCompositeNode *)
 
virtual void Print (const std::string &) const
 
std::string GetName () const
 
void SetName (const std::string &name)
 
virtual void SetLightCorrection (const double inner_radius, const double inner_corr, const double outer_radius, const double outer_corr)
 
virtual double GetLightCorrection (const double r) const
 
virtual double GetLightCorrection (const double xpos, const double ypos) const
 
virtual bool ValidCorrection () const
 
virtual void SetHitNodeName (const std::string &, const std::string &)
 Set the G4HIT node names from Subsystem rather than constructing your own.
 

Private Attributes

int m_Verbosity
 
double m_LightBalanceInnerRadius
 
double m_LightBalanceInnerCorr
 
double m_LightBalanceOuterRadius
 
double m_LightBalanceOuterCorr
 
std::string m_Name
 
std::set< std::string > m_ScintLightYieldMissingMaterialSet
 

Detailed Description

Definition at line 13 of file PHG4SteppingAction.h.

View newest version in sPHENIX GitHub at line 13 of file PHG4SteppingAction.h

Constructor & Destructor Documentation

PHG4SteppingAction::PHG4SteppingAction ( const std::string &  name,
const int  i = 0 
)

Definition at line 34 of file PHG4SteppingAction.cc.

View newest version in sPHENIX GitHub at line 34 of file PHG4SteppingAction.cc

virtual PHG4SteppingAction::~PHG4SteppingAction ( )
inlinevirtual

Definition at line 17 of file PHG4SteppingAction.h.

View newest version in sPHENIX GitHub at line 17 of file PHG4SteppingAction.h

Member Function Documentation

double PHG4SteppingAction::GetLightCorrection ( const double  xpos,
const double  ypos 
) const
virtual

Definition at line 171 of file PHG4SteppingAction.cc.

View newest version in sPHENIX GitHub at line 171 of file PHG4SteppingAction.cc

References GetLightCorrection(), and physmon_track_finding_ttbar::r.

+ Here is the call graph for this function:

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

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

Definition at line 45 of file PHG4SteppingAction.cc.

View newest version in sPHENIX GitHub at line 45 of file PHG4SteppingAction.cc

References GetVisibleEnergyDeposition(), Acts::UnitConstants::GeV, it, and m_ScintLightYieldMissingMaterialSet.

+ Here is the call graph for this function:

double PHG4SteppingAction::GetVisibleEnergyDeposition ( const G4Step *  step)
virtual
virtual int PHG4SteppingAction::Init ( )
inlinevirtual

Definition at line 31 of file PHG4SteppingAction.h.

View newest version in sPHENIX GitHub at line 31 of file PHG4SteppingAction.h

Referenced by PHG4PSTOFSubsystem::InitRunSubsystem().

+ Here is the caller graph for this function:

virtual int PHG4SteppingAction::InitWithNode ( PHCompositeNode )
inlinevirtual

Reimplemented in PHG4SpacalSteppingAction, PHG4IHCalSteppingAction, PHG4OHCalSteppingAction, PHG4InnerHcalSteppingAction, and PHG4OuterHcalSteppingAction.

Definition at line 32 of file PHG4SteppingAction.h.

View newest version in sPHENIX GitHub at line 32 of file PHG4SteppingAction.h

Referenced by PHG4OuterHcalSubsystem::InitRunSubsystem(), PHG4OHCalSubsystem::InitRunSubsystem(), PHG4IHCalSubsystem::InitRunSubsystem(), and PHG4InnerHcalSubsystem::InitRunSubsystem().

+ Here is the caller graph for this function:

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

Definition at line 43 of file PHG4SteppingAction.h.

View newest version in sPHENIX GitHub at line 43 of file PHG4SteppingAction.h

Referenced by PHG4InnerHcalSubsystem::Print(), PHG4IHCalSubsystem::Print(), PHG4Prototype3InnerHcalSubsystem::Print(), PHG4TpcSubsystem::Print(), PHG4Prototype2InnerHcalSubsystem::Print(), PHG4CylinderSubsystem::Print(), and PHG4BbcSubsystem::Print().

+ Here is the caller graph for this function:

virtual void PHG4SteppingAction::SetHitNodeName ( const std::string &  ,
const std::string &   
)
inlinevirtual
virtual void PHG4SteppingAction::SetInterfacePointers ( PHCompositeNode )
inlinevirtual

Reimplemented in PHG4SpacalSteppingAction, PHG4SpacalPrototypeSteppingAction, PHG4SpacalPrototype4SteppingAction, PHG4ZDCSteppingAction, PHG4IHCalSteppingAction, PHG4OHCalSteppingAction, PHG4MicromegasSteppingAction, PHG4InnerHcalSteppingAction, PHG4OuterHcalSteppingAction, PHG4CylinderSteppingAction, PHG4HcalPrototypeSteppingAction, PHG4TpcEndCapSteppingAction, BeamLineMagnetSteppingAction, PHG4BbcSteppingAction, PHG4BlockSteppingAction, PHG4HcalSteppingAction, PHG4InttSteppingAction, PHG4TpcSteppingAction, PHG4CEmcTestBeamSteppingAction, PHG4EnvelopeSteppingAction, PHG4PSTOFSteppingAction, PHG4EPDSteppingAction, PHG4MvtxSteppingAction, G4Example03SteppingAction, G4Example02SteppingAction, PHG4Prototype2InnerHcalSteppingAction, PHG4Prototype2OuterHcalSteppingAction, PHG4Prototype3InnerHcalSteppingAction, PHG4ConeSteppingAction, PHG4SectorSteppingAction, PHG4EICMvtxSteppingAction, and G4Example01SteppingAction.

Definition at line 42 of file PHG4SteppingAction.h.

View newest version in sPHENIX GitHub at line 42 of file PHG4SteppingAction.h

Referenced by PHG4EPDSubsystem::process_event(), PHG4ZDCSubsystem::process_event(), PHG4OHCalSubsystem::process_event(), PHG4OuterHcalSubsystem::process_event(), PHG4InnerHcalSubsystem::process_event(), PHG4IHCalSubsystem::process_event(), PHG4SpacalPrototype4Subsystem::process_event(), PHG4Prototype3InnerHcalSubsystem::process_event(), PHG4TpcSubsystem::process_event(), PHG4Prototype2InnerHcalSubsystem::process_event(), PHG4Prototype2OuterHcalSubsystem::process_event(), BeamLineMagnetSubsystem::process_event(), PHG4SpacalPrototypeSubsystem::process_event(), PHG4CylinderSubsystem::process_event(), PHG4ConeSubsystem::process_event(), PHG4BlockSubsystem::process_event(), PHG4SectorSubsystem::process_event(), PHG4MvtxSubsystem::process_event(), PHG4EICMvtxSubsystem::process_event(), PHG4InttSubsystem::process_event(), PHG4TpcEndCapSubsystem::process_event(), G4Example02Subsystem::process_event(), G4Example01Subsystem::process_event(), PHG4MicromegasSubsystem::process_event(), G4Example03Subsystem::process_event(), PHG4BbcSubsystem::process_event(), and PHG4PSTOFSubsystem::process_event().

+ Here is the caller graph for this function:

void PHG4SteppingAction::SetLightCorrection ( const double  inner_radius,
const double  inner_corr,
const double  outer_radius,
const double  outer_corr 
)
virtual
void PHG4SteppingAction::SetName ( const std::string &  name)
inline

Definition at line 45 of file PHG4SteppingAction.h.

View newest version in sPHENIX GitHub at line 45 of file PHG4SteppingAction.h

References m_Name, and perf_headwind::name.

Referenced by PHG4TpcSteppingAction::PHG4TpcSteppingAction().

+ Here is the caller graph for this function:

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 129 of file PHG4SteppingAction.cc.

View newest version in sPHENIX GitHub at line 129 of file PHG4SteppingAction.cc

References assert, Acts::UnitConstants::cm, PHG4Hit::set_local_x(), PHG4Hit::set_local_y(), and PHG4Hit::set_local_z().

Referenced by PHG4EICMvtxSteppingAction::UserSteppingAction(), PHG4MvtxSteppingAction::UserSteppingAction(), PHG4InttSteppingAction::UserSteppingAction(), PHG4SpacalPrototype4SteppingAction::UserSteppingAction(), PHG4SpacalPrototypeSteppingAction::UserSteppingAction(), and PHG4SpacalSteppingAction::UserSteppingAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool PHG4SteppingAction::ValidCorrection ( ) const
virtual

Definition at line 192 of file PHG4SteppingAction.cc.

View newest version in sPHENIX GitHub at line 192 of file PHG4SteppingAction.cc

References m_LightBalanceInnerCorr, m_LightBalanceInnerRadius, m_LightBalanceOuterCorr, and m_LightBalanceOuterRadius.

Referenced by GetLightCorrection(), and PHG4HcalSteppingAction::UserSteppingAction().

+ Here is the caller graph for this function:

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

Definition at line 29 of file PHG4SteppingAction.h.

View newest version in sPHENIX GitHub at line 29 of file PHG4SteppingAction.h

References i, and m_Verbosity.

Referenced by PHG4SpacalPrototype4Subsystem::InitRunSubsystem(), PHG4EICMvtxSubsystem::InitRunSubsystem(), PHG4MvtxSubsystem::InitRunSubsystem(), and PHG4InttSubsystem::InitRunSubsystem().

+ Here is the caller graph for this function:

virtual int PHG4SteppingAction::Verbosity ( ) const
inlinevirtual

Definition at line 30 of file PHG4SteppingAction.h.

View newest version in sPHENIX GitHub at line 30 of file PHG4SteppingAction.h

References m_Verbosity.

Referenced by PHG4InnerHcalSteppingAction::InitWithNode(), PHG4OuterHcalSteppingAction::InitWithNode(), PHG4OHCalSteppingAction::InitWithNode(), PHG4IHCalSteppingAction::InitWithNode(), PHG4EICMvtxSteppingAction::SetInterfacePointers(), PHG4CEmcTestBeamSteppingAction::SetInterfacePointers(), PHG4MvtxSteppingAction::SetInterfacePointers(), PHG4EPDSteppingAction::SetInterfacePointers(), PHG4Prototype2InnerHcalSteppingAction::SetInterfacePointers(), PHG4Prototype2OuterHcalSteppingAction::SetInterfacePointers(), PHG4Prototype3InnerHcalSteppingAction::SetInterfacePointers(), PHG4InttSteppingAction::SetInterfacePointers(), PHG4HcalSteppingAction::SetInterfacePointers(), PHG4TpcSteppingAction::SetInterfacePointers(), PHG4BbcSteppingAction::SetInterfacePointers(), BeamLineMagnetSteppingAction::SetInterfacePointers(), PHG4HcalPrototypeSteppingAction::SetInterfacePointers(), PHG4OuterHcalSteppingAction::SetInterfacePointers(), PHG4InnerHcalSteppingAction::SetInterfacePointers(), PHG4MicromegasSteppingAction::SetInterfacePointers(), PHG4OHCalSteppingAction::SetInterfacePointers(), PHG4IHCalSteppingAction::SetInterfacePointers(), PHG4ZDCSteppingAction::SetInterfacePointers(), PHG4SpacalPrototype4SteppingAction::SetInterfacePointers(), PHG4SpacalPrototypeSteppingAction::SetInterfacePointers(), PHG4SpacalSteppingAction::SetInterfacePointers(), PHG4EICMvtxSteppingAction::UserSteppingAction(), PHG4MvtxSteppingAction::UserSteppingAction(), PHG4TpcSteppingAction::UserSteppingAction(), PHG4InttSteppingAction::UserSteppingAction(), PHG4ZDCSteppingAction::UserSteppingAction(), PHG4SpacalPrototype4SteppingAction::UserSteppingAction(), PHG4SpacalPrototypeSteppingAction::UserSteppingAction(), and PHG4SpacalSteppingAction::UserSteppingAction().

+ Here is the caller graph for this function:

Member Data Documentation

double PHG4SteppingAction::m_LightBalanceInnerCorr
private

Definition at line 57 of file PHG4SteppingAction.h.

View newest version in sPHENIX GitHub at line 57 of file PHG4SteppingAction.h

Referenced by GetLightCorrection(), SetLightCorrection(), and ValidCorrection().

double PHG4SteppingAction::m_LightBalanceInnerRadius
private

Definition at line 56 of file PHG4SteppingAction.h.

View newest version in sPHENIX GitHub at line 56 of file PHG4SteppingAction.h

Referenced by GetLightCorrection(), SetLightCorrection(), and ValidCorrection().

double PHG4SteppingAction::m_LightBalanceOuterCorr
private

Definition at line 59 of file PHG4SteppingAction.h.

View newest version in sPHENIX GitHub at line 59 of file PHG4SteppingAction.h

Referenced by GetLightCorrection(), SetLightCorrection(), and ValidCorrection().

double PHG4SteppingAction::m_LightBalanceOuterRadius
private

Definition at line 58 of file PHG4SteppingAction.h.

View newest version in sPHENIX GitHub at line 58 of file PHG4SteppingAction.h

Referenced by GetLightCorrection(), SetLightCorrection(), and ValidCorrection().

std::string PHG4SteppingAction::m_Name
private

Definition at line 60 of file PHG4SteppingAction.h.

View newest version in sPHENIX GitHub at line 60 of file PHG4SteppingAction.h

Referenced by GetName(), and SetName().

std::set<std::string> PHG4SteppingAction::m_ScintLightYieldMissingMaterialSet
private

Definition at line 61 of file PHG4SteppingAction.h.

View newest version in sPHENIX GitHub at line 61 of file PHG4SteppingAction.h

Referenced by GetScintLightYield().

int PHG4SteppingAction::m_Verbosity
private

Definition at line 55 of file PHG4SteppingAction.h.

View newest version in sPHENIX GitHub at line 55 of file PHG4SteppingAction.h

Referenced by GetVisibleEnergyDeposition(), and Verbosity().


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