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

#include <coresoftware/blob/master/simulation/g4simulation/g4detectors/PHG4InnerHcalSteppingAction.h>

+ Inheritance diagram for PHG4InnerHcalSteppingAction:
+ Collaboration diagram for PHG4InnerHcalSteppingAction:

Public Member Functions

 PHG4InnerHcalSteppingAction (PHG4InnerHcalDetector *, const PHParameters *parameters)
 constructor
 
 ~PHG4InnerHcalSteppingAction () override
 destructor
 
bool UserSteppingAction (const G4Step *, bool) override
 stepping action
 
int InitWithNode (PHCompositeNode *topNode) override
 
void SetInterfacePointers (PHCompositeNode *) override
 reimplemented from base class
 
void CreateNodeTree (PHCompositeNode *topNode)
 
- Public Member Functions inherited from PHG4SteppingAction
 PHG4SteppingAction (const std::string &name, const int i=0)
 
virtual ~PHG4SteppingAction ()
 
virtual void Verbosity (const int i)
 
virtual 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
 
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 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 Member Functions

bool NoHitSteppingAction (const G4Step *aStep)
 

Private Attributes

PHG4InnerHcalDetectorm_Detector = nullptr
 pointer to the detector
 
TH2 * m_MapCorrHist = nullptr
 efficiency maps from Mephi
 
PHG4HitContainerm_Hits = nullptr
 pointer to hit container
 
PHG4HitContainerm_AbsorberHits = nullptr
 
PHG4Hitm_Hit = nullptr
 
const PHParametersm_Params = nullptr
 
PHG4HitContainerm_SaveHitContainer = nullptr
 
PHG4Showerm_SaveShower = nullptr
 
G4VPhysicalVolumem_SaveVolPre = nullptr
 
G4VPhysicalVolumem_SaveVolPost = nullptr
 
int m_SaveTrackId = -1
 
int m_SavePreStepStatus = -1
 
int m_SavePostStepStatus = -1
 
int m_IsActive = -1
 
int m_IsBlackHole = -1
 
int m_LightScintModelFlag = -1
 
bool m_doG4Hit = true
 
double m_tmin = -20.
 
double m_tmax = 60.
 
double m_dt = 100.
 
TowerInfoContainerm_CaloInfoContainer = nullptr
 

Detailed Description

Definition at line 19 of file PHG4InnerHcalSteppingAction.h.

View newest version in sPHENIX GitHub at line 19 of file PHG4InnerHcalSteppingAction.h

Constructor & Destructor Documentation

PHG4InnerHcalSteppingAction::PHG4InnerHcalSteppingAction ( PHG4InnerHcalDetector detector,
const PHParameters parameters 
)

constructor

Definition at line 65 of file PHG4InnerHcalSteppingAction.cc.

View newest version in sPHENIX GitHub at line 65 of file PHG4InnerHcalSteppingAction.cc

References Acts::UnitConstants::cm, PHParameters::get_double_param(), m_Params, and PHG4SteppingAction::SetLightCorrection().

+ Here is the call graph for this function:

PHG4InnerHcalSteppingAction::~PHG4InnerHcalSteppingAction ( )
override

destructor

Definition at line 83 of file PHG4InnerHcalSteppingAction.cc.

View newest version in sPHENIX GitHub at line 83 of file PHG4InnerHcalSteppingAction.cc

References m_Hit, and m_MapCorrHist.

Member Function Documentation

void PHG4InnerHcalSteppingAction::CreateNodeTree ( PHCompositeNode topNode)

Definition at line 552 of file PHG4InnerHcalSteppingAction.cc.

View newest version in sPHENIX GitHub at line 552 of file PHG4InnerHcalSteppingAction.cc

References PHCompositeNode::addNode(), PHNodeIterator::findFirst(), m_CaloInfoContainer, m_Detector, PHCompositeNode::PHCompositeNode(), and PHG4InnerHcalDetector::SuperDetector().

Referenced by InitWithNode().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int PHG4InnerHcalSteppingAction::InitWithNode ( PHCompositeNode topNode)
overridevirtual

Reimplemented from PHG4SteppingAction.

Definition at line 95 of file PHG4InnerHcalSteppingAction.cc.

View newest version in sPHENIX GitHub at line 95 of file PHG4InnerHcalSteppingAction.cc

References Fun4AllReturnCodes::ABORTRUN, CreateNodeTree(), Acts::UnitConstants::e, Acts::Concepts::exists, file, PHParameters::get_string_param(), CDBInterface::getUrl(), CDBInterface::instance(), m_doG4Hit, m_LightScintModelFlag, m_MapCorrHist, m_Params, PHWHERE, PHCompositeNode::print(), summary::url, and PHG4SteppingAction::Verbosity().

+ Here is the call graph for this function:

bool PHG4InnerHcalSteppingAction::NoHitSteppingAction ( const G4Step *  aStep)
private

Definition at line 141 of file PHG4InnerHcalSteppingAction.cc.

View newest version in sPHENIX GitHub at line 141 of file PHG4InnerHcalSteppingAction.cc

References Acts::UnitConstants::cm, double(), TowerInfoDefs::encode_hcal(), TowerInfo::get_energy(), TowerInfoContainer::get_tower_at_key(), PHG4InnerHcalDetector::GetLayerTowerId(), PHG4SteppingAction::GetLightCorrection(), PHG4SteppingAction::GetVisibleEnergyDeposition(), Acts::UnitConstants::GeV, PHG4InnerHcalDetector::IsInInnerHcal(), m_CaloInfoContainer, m_Detector, m_dt, m_IsActive, m_LightScintModelFlag, m_MapCorrHist, m_tmax, merge_hashes::p, and TowerInfo::set_energy().

Referenced by UserSteppingAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PHG4InnerHcalSteppingAction::SetInterfacePointers ( PHCompositeNode topNode)
overridevirtual

reimplemented from base class

Reimplemented from PHG4SteppingAction.

Definition at line 519 of file PHG4InnerHcalSteppingAction.cc.

View newest version in sPHENIX GitHub at line 519 of file PHG4InnerHcalSteppingAction.cc

References PHG4Detector::GetName(), m_AbsorberHits, m_Detector, m_Hits, PHG4InnerHcalDetector::SuperDetector(), and PHG4SteppingAction::Verbosity().

+ Here is the call graph for this function:

bool PHG4InnerHcalSteppingAction::UserSteppingAction ( const G4Step *  aStep,
bool   
)
overridevirtual

Member Data Documentation

PHG4HitContainer* PHG4InnerHcalSteppingAction::m_AbsorberHits = nullptr
private

Definition at line 48 of file PHG4InnerHcalSteppingAction.h.

View newest version in sPHENIX GitHub at line 48 of file PHG4InnerHcalSteppingAction.h

Referenced by SetInterfacePointers(), and UserSteppingAction().

TowerInfoContainer* PHG4InnerHcalSteppingAction::m_CaloInfoContainer = nullptr
private

Definition at line 68 of file PHG4InnerHcalSteppingAction.h.

View newest version in sPHENIX GitHub at line 68 of file PHG4InnerHcalSteppingAction.h

Referenced by CreateNodeTree(), and NoHitSteppingAction().

PHG4InnerHcalDetector* PHG4InnerHcalSteppingAction::m_Detector = nullptr
private

pointer to the detector

Definition at line 41 of file PHG4InnerHcalSteppingAction.h.

View newest version in sPHENIX GitHub at line 41 of file PHG4InnerHcalSteppingAction.h

Referenced by CreateNodeTree(), NoHitSteppingAction(), SetInterfacePointers(), and UserSteppingAction().

bool PHG4InnerHcalSteppingAction::m_doG4Hit = true
private

Definition at line 64 of file PHG4InnerHcalSteppingAction.h.

View newest version in sPHENIX GitHub at line 64 of file PHG4InnerHcalSteppingAction.h

Referenced by InitWithNode(), and UserSteppingAction().

double PHG4InnerHcalSteppingAction::m_dt = 100.
private

Definition at line 67 of file PHG4InnerHcalSteppingAction.h.

View newest version in sPHENIX GitHub at line 67 of file PHG4InnerHcalSteppingAction.h

Referenced by NoHitSteppingAction().

PHG4Hit* PHG4InnerHcalSteppingAction::m_Hit = nullptr
private

Definition at line 49 of file PHG4InnerHcalSteppingAction.h.

View newest version in sPHENIX GitHub at line 49 of file PHG4InnerHcalSteppingAction.h

Referenced by UserSteppingAction(), and ~PHG4InnerHcalSteppingAction().

PHG4HitContainer* PHG4InnerHcalSteppingAction::m_Hits = nullptr
private

pointer to hit container

Definition at line 47 of file PHG4InnerHcalSteppingAction.h.

View newest version in sPHENIX GitHub at line 47 of file PHG4InnerHcalSteppingAction.h

Referenced by SetInterfacePointers(), and UserSteppingAction().

int PHG4InnerHcalSteppingAction::m_IsActive = -1
private

Definition at line 61 of file PHG4InnerHcalSteppingAction.h.

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

Referenced by NoHitSteppingAction(), and UserSteppingAction().

int PHG4InnerHcalSteppingAction::m_IsBlackHole = -1
private

Definition at line 62 of file PHG4InnerHcalSteppingAction.h.

View newest version in sPHENIX GitHub at line 62 of file PHG4InnerHcalSteppingAction.h

Referenced by UserSteppingAction().

int PHG4InnerHcalSteppingAction::m_LightScintModelFlag = -1
private

Definition at line 63 of file PHG4InnerHcalSteppingAction.h.

View newest version in sPHENIX GitHub at line 63 of file PHG4InnerHcalSteppingAction.h

Referenced by InitWithNode(), NoHitSteppingAction(), and UserSteppingAction().

TH2* PHG4InnerHcalSteppingAction::m_MapCorrHist = nullptr
private

efficiency maps from Mephi

Definition at line 44 of file PHG4InnerHcalSteppingAction.h.

View newest version in sPHENIX GitHub at line 44 of file PHG4InnerHcalSteppingAction.h

Referenced by InitWithNode(), NoHitSteppingAction(), UserSteppingAction(), and ~PHG4InnerHcalSteppingAction().

const PHParameters* PHG4InnerHcalSteppingAction::m_Params = nullptr
private

Definition at line 50 of file PHG4InnerHcalSteppingAction.h.

View newest version in sPHENIX GitHub at line 50 of file PHG4InnerHcalSteppingAction.h

Referenced by InitWithNode(), and PHG4InnerHcalSteppingAction().

PHG4HitContainer* PHG4InnerHcalSteppingAction::m_SaveHitContainer = nullptr
private

Definition at line 51 of file PHG4InnerHcalSteppingAction.h.

View newest version in sPHENIX GitHub at line 51 of file PHG4InnerHcalSteppingAction.h

Referenced by UserSteppingAction().

int PHG4InnerHcalSteppingAction::m_SavePostStepStatus = -1
private

Definition at line 57 of file PHG4InnerHcalSteppingAction.h.

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

Referenced by UserSteppingAction().

int PHG4InnerHcalSteppingAction::m_SavePreStepStatus = -1
private

Definition at line 56 of file PHG4InnerHcalSteppingAction.h.

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

Referenced by UserSteppingAction().

PHG4Shower* PHG4InnerHcalSteppingAction::m_SaveShower = nullptr
private

Definition at line 52 of file PHG4InnerHcalSteppingAction.h.

View newest version in sPHENIX GitHub at line 52 of file PHG4InnerHcalSteppingAction.h

Referenced by UserSteppingAction().

int PHG4InnerHcalSteppingAction::m_SaveTrackId = -1
private

Definition at line 55 of file PHG4InnerHcalSteppingAction.h.

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

Referenced by UserSteppingAction().

G4VPhysicalVolume* PHG4InnerHcalSteppingAction::m_SaveVolPost = nullptr
private

Definition at line 54 of file PHG4InnerHcalSteppingAction.h.

View newest version in sPHENIX GitHub at line 54 of file PHG4InnerHcalSteppingAction.h

Referenced by UserSteppingAction().

G4VPhysicalVolume* PHG4InnerHcalSteppingAction::m_SaveVolPre = nullptr
private

Definition at line 53 of file PHG4InnerHcalSteppingAction.h.

View newest version in sPHENIX GitHub at line 53 of file PHG4InnerHcalSteppingAction.h

Referenced by UserSteppingAction().

double PHG4InnerHcalSteppingAction::m_tmax = 60.
private

Definition at line 66 of file PHG4InnerHcalSteppingAction.h.

View newest version in sPHENIX GitHub at line 66 of file PHG4InnerHcalSteppingAction.h

Referenced by NoHitSteppingAction().

double PHG4InnerHcalSteppingAction::m_tmin = -20.
private

Definition at line 65 of file PHG4InnerHcalSteppingAction.h.

View newest version in sPHENIX GitHub at line 65 of file PHG4InnerHcalSteppingAction.h


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