Analysis Software
Documentation for sPHENIX simulation software
|
#include <coresoftware/blob/master/simulation/g4simulation/g4detectors/PHG4ZDCSteppingAction.h>
Public Member Functions | |
PHG4ZDCSteppingAction (PHG4ZDCDetector *, const PHParameters *parameters) | |
constructor | |
~PHG4ZDCSteppingAction () override | |
destroctor | |
bool | UserSteppingAction (const G4Step *, bool) override |
stepping action | |
void | SetInterfacePointers (PHCompositeNode *) override |
reimplemented from base class | |
void | SetHitNodeName (const std::string &type, const std::string &name) override |
Set the G4HIT node names from Subsystem rather than constructing your own. | |
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 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 | 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 |
Private Member Functions | |
int | FindIndexZDC (G4TouchableHandle &touch, int &j, int &k) |
int | FindIndexSMD (G4TouchableHandle &touch, int &j, int &k) |
double | ZDCResponse (double beta, double angle) |
double | ZDCEResponse (double E, double angle) |
Private Attributes | |
PHG4ZDCDetector * | m_Detector = nullptr |
pointer to the detector | |
PHG4HitContainer * | m_HitContainer = nullptr |
pointer to hit container | |
PHG4HitContainer * | m_AbsorberHitContainer = nullptr |
PHG4HitContainer * | m_SupportHitContainer = nullptr |
const PHParameters * | m_Params = nullptr |
PHG4HitContainer * | m_CurrentHitContainer = nullptr |
PHG4Hit * | m_Hit = nullptr |
PHG4Shower * | m_CurrentShower = nullptr |
gsl_rng * | RandomGenerator = nullptr |
int | m_IsActiveFlag = 0 |
int | absorbertruth = 0 |
int | m_IsBlackHole = 0 |
const std::array< std::array < double, 18 >, 9 > | m_PMMA05 |
const double | m_Beta [9] = {0.70, 0.75, 0.80, 0.85, 0.90, 0.92, 0.95, 0.98, 1.00} |
const double | m_BetaThersh = 0.671141 |
const std::array< std::array < double, 36 >, 11 > | m_PMMA05E |
const double | m_E [11] = {0.0005, 0.00055, 0.0006, 0.00075, 0.001, 0.0015, 0.002, 0.003, 0.005, 0.01, 0.05} |
std::string | m_AbsorberNodeName |
std::string | m_HitNodeName |
std::string | m_SupportNodeName |
Definition at line 23 of file PHG4ZDCSteppingAction.h.
View newest version in sPHENIX GitHub at line 23 of file PHG4ZDCSteppingAction.h
PHG4ZDCSteppingAction::PHG4ZDCSteppingAction | ( | PHG4ZDCDetector * | detector, |
const PHParameters * | parameters | ||
) |
constructor
Definition at line 50 of file PHG4ZDCSteppingAction.cc.
View newest version in sPHENIX GitHub at line 50 of file PHG4ZDCSteppingAction.cc
References gsl_rng_set(), RandomGenerator, and seed.
|
override |
destroctor
Definition at line 63 of file PHG4ZDCSteppingAction.cc.
View newest version in sPHENIX GitHub at line 63 of file PHG4ZDCSteppingAction.cc
References m_Hit, and RandomGenerator.
|
private |
Definition at line 413 of file PHG4ZDCSteppingAction.cc.
View newest version in sPHENIX GitHub at line 413 of file PHG4ZDCSteppingAction.cc
Referenced by UserSteppingAction().
|
private |
Definition at line 402 of file PHG4ZDCSteppingAction.cc.
View newest version in sPHENIX GitHub at line 402 of file PHG4ZDCSteppingAction.cc
Referenced by UserSteppingAction().
|
overridevirtual |
Set the G4HIT node names from Subsystem rather than constructing your own.
Reimplemented from PHG4SteppingAction.
Definition at line 378 of file PHG4ZDCSteppingAction.cc.
View newest version in sPHENIX GitHub at line 378 of file PHG4ZDCSteppingAction.cc
References m_AbsorberNodeName, m_HitNodeName, m_SupportNodeName, and perf_headwind::name.
|
overridevirtual |
reimplemented from base class
Reimplemented from PHG4SteppingAction.
Definition at line 349 of file PHG4ZDCSteppingAction.cc.
View newest version in sPHENIX GitHub at line 349 of file PHG4ZDCSteppingAction.cc
References m_AbsorberHitContainer, m_AbsorberNodeName, m_HitContainer, m_HitNodeName, m_SupportHitContainer, m_SupportNodeName, and PHG4SteppingAction::Verbosity().
|
overridevirtual |
stepping action
Implements PHG4SteppingAction.
Definition at line 74 of file PHG4ZDCSteppingAction.cc.
View newest version in sPHENIX GitHub at line 74 of file PHG4ZDCSteppingAction.cc
References absorbertruth, PHG4Shower::add_g4hit_id(), PHG4HitContainer::AddHit(), charge(), Acts::UnitConstants::cm, dy, dz, E, FindIndexSMD(), FindIndexZDC(), PHG4Hit::get_edep(), PHG4Hit::get_eion(), PHG4Hit::get_hit_id(), PHG4ZDCDetector::get_Layer(), PHG4Hit::get_light_yield(), PHG4HitContainer::GetID(), PHG4Detector::GetName(), PHG4SteppingAction::GetVisibleEnergyDeposition(), Acts::UnitConstants::GeV, PHG4ZDCDetector::IsInZDC(), m_AbsorberHitContainer, m_CurrentHitContainer, m_CurrentShower, m_Detector, m_Hit, m_HitContainer, m_IsActiveFlag, m_IsBlackHole, m_SupportHitContainer, merge_hashes::p, P(), train_ambiguity_solver::pid, RandomGenerator, PHG4Hit::Reset(), PHG4Hit::set_edep(), PHG4Hit::set_eion(), PHG4Hit::set_index_j(), PHG4Hit::set_index_k(), PHG4Hit::set_light_yield(), PHG4Hit::set_shower_id(), PHG4Hit::set_t(), PHG4Hit::set_trkid(), PHG4Hit::set_x(), PHG4Hit::set_y(), PHG4Hit::set_z(), PHG4SteppingAction::Verbosity(), ZDCEResponse(), and ZDCResponse().
Definition at line 461 of file PHG4ZDCSteppingAction.cc.
View newest version in sPHENIX GitHub at line 461 of file PHG4ZDCSteppingAction.cc
References i, m_E, and m_PMMA05E.
Referenced by UserSteppingAction().
Definition at line 433 of file PHG4ZDCSteppingAction.cc.
View newest version in sPHENIX GitHub at line 433 of file PHG4ZDCSteppingAction.cc
References i, m_Beta, m_BetaThersh, and m_PMMA05.
Referenced by UserSteppingAction().
|
private |
Definition at line 63 of file PHG4ZDCSteppingAction.h.
View newest version in sPHENIX GitHub at line 63 of file PHG4ZDCSteppingAction.h
Referenced by UserSteppingAction().
|
private |
Definition at line 54 of file PHG4ZDCSteppingAction.h.
View newest version in sPHENIX GitHub at line 54 of file PHG4ZDCSteppingAction.h
Referenced by SetInterfacePointers(), and UserSteppingAction().
|
private |
Definition at line 162 of file PHG4ZDCSteppingAction.h.
View newest version in sPHENIX GitHub at line 162 of file PHG4ZDCSteppingAction.h
Referenced by SetHitNodeName(), and SetInterfacePointers().
|
private |
Definition at line 102 of file PHG4ZDCSteppingAction.h.
View newest version in sPHENIX GitHub at line 102 of file PHG4ZDCSteppingAction.h
Referenced by ZDCResponse().
|
private |
Definition at line 103 of file PHG4ZDCSteppingAction.h.
View newest version in sPHENIX GitHub at line 103 of file PHG4ZDCSteppingAction.h
Referenced by ZDCResponse().
|
private |
Definition at line 57 of file PHG4ZDCSteppingAction.h.
View newest version in sPHENIX GitHub at line 57 of file PHG4ZDCSteppingAction.h
Referenced by UserSteppingAction().
|
private |
Definition at line 59 of file PHG4ZDCSteppingAction.h.
View newest version in sPHENIX GitHub at line 59 of file PHG4ZDCSteppingAction.h
Referenced by UserSteppingAction().
|
private |
pointer to the detector
Definition at line 50 of file PHG4ZDCSteppingAction.h.
View newest version in sPHENIX GitHub at line 50 of file PHG4ZDCSteppingAction.h
Referenced by UserSteppingAction().
|
private |
Definition at line 160 of file PHG4ZDCSteppingAction.h.
View newest version in sPHENIX GitHub at line 160 of file PHG4ZDCSteppingAction.h
Referenced by ZDCEResponse().
|
private |
Definition at line 58 of file PHG4ZDCSteppingAction.h.
View newest version in sPHENIX GitHub at line 58 of file PHG4ZDCSteppingAction.h
Referenced by UserSteppingAction(), and ~PHG4ZDCSteppingAction().
|
private |
pointer to hit container
Definition at line 53 of file PHG4ZDCSteppingAction.h.
View newest version in sPHENIX GitHub at line 53 of file PHG4ZDCSteppingAction.h
Referenced by SetInterfacePointers(), and UserSteppingAction().
|
private |
Definition at line 163 of file PHG4ZDCSteppingAction.h.
View newest version in sPHENIX GitHub at line 163 of file PHG4ZDCSteppingAction.h
Referenced by SetHitNodeName(), and SetInterfacePointers().
|
private |
Definition at line 62 of file PHG4ZDCSteppingAction.h.
View newest version in sPHENIX GitHub at line 62 of file PHG4ZDCSteppingAction.h
Referenced by UserSteppingAction().
|
private |
Definition at line 64 of file PHG4ZDCSteppingAction.h.
View newest version in sPHENIX GitHub at line 64 of file PHG4ZDCSteppingAction.h
Referenced by UserSteppingAction().
|
private |
Definition at line 56 of file PHG4ZDCSteppingAction.h.
View newest version in sPHENIX GitHub at line 56 of file PHG4ZDCSteppingAction.h
|
private |
Definition at line 66 of file PHG4ZDCSteppingAction.h.
View newest version in sPHENIX GitHub at line 66 of file PHG4ZDCSteppingAction.h
Referenced by ZDCResponse().
|
private |
Definition at line 105 of file PHG4ZDCSteppingAction.h.
View newest version in sPHENIX GitHub at line 105 of file PHG4ZDCSteppingAction.h
Referenced by ZDCEResponse().
|
private |
Definition at line 55 of file PHG4ZDCSteppingAction.h.
View newest version in sPHENIX GitHub at line 55 of file PHG4ZDCSteppingAction.h
Referenced by SetInterfacePointers(), and UserSteppingAction().
|
private |
Definition at line 164 of file PHG4ZDCSteppingAction.h.
View newest version in sPHENIX GitHub at line 164 of file PHG4ZDCSteppingAction.h
Referenced by SetHitNodeName(), and SetInterfacePointers().
|
private |
Definition at line 60 of file PHG4ZDCSteppingAction.h.
View newest version in sPHENIX GitHub at line 60 of file PHG4ZDCSteppingAction.h
Referenced by PHG4ZDCSteppingAction(), UserSteppingAction(), and ~PHG4ZDCSteppingAction().