Analysis Software
Documentation for sPHENIX simulation software
|
#include <coresoftware/blob/master/simulation/g4simulation/g4epd/PHG4EPDModuleReco.h>
Public Member Functions | |
PHG4EPDModuleReco (const std::string &name="EpdModuleReco") | |
~PHG4EPDModuleReco () override | |
int | InitRun (PHCompositeNode *topNode) override |
module initialization | |
int | process_event (PHCompositeNode *topNode) override |
event processing | |
int | ResetEvent (PHCompositeNode *) override |
Reset after every event. | |
void | SetDefaultParameters () override |
void | Detector (const std::string &detector) |
std::string | get_epd_sim_tower_node_prefix () const |
void | set_epd_sim_tower_node_prefix (const std::string &epdsimTowerNodePrefix) |
std::string | get_epd_calib_tower_node_prefix () const |
void | set_epd_calib_tower_node_prefix (const std::string &epdcalibTowerNodePrefix) |
void | set_timing_window (const double tmi, const double tma) |
Public Member Functions inherited from SubsysReco | |
~SubsysReco () override | |
virtual int | End (PHCompositeNode *) |
Called at the end of all processing. | |
virtual int | EndRun (const int) |
Called at the end of each run. | |
virtual int | Init (PHCompositeNode *) |
virtual int | Reset (PHCompositeNode *) |
Reset. | |
void | Print (const std::string &="ALL") const override |
Public Member Functions inherited from Fun4AllBase | |
virtual | ~Fun4AllBase () |
virtual const std::string | Name () const |
Returns the name of this module. | |
virtual void | Name (const std::string &name) |
Sets the name of this module. | |
virtual void | Verbosity (const int ival) |
Sets the verbosity of this module (0 by default=quiet). | |
virtual void | Verbosity (enu_Verbosity ival) |
Sets the verbosity of this module (0 by default=quiet). | |
virtual int | Verbosity () const |
Gets the verbosity of this module. | |
Public Member Functions inherited from PHParameterInterface | |
PHParameterInterface (const std::string &name) | |
PHParameterInterface (const PHParameterInterface &)=delete | |
PHParameterInterface & | operator= (PHParameterInterface const &)=delete |
virtual | ~PHParameterInterface () |
void | set_paramname (const std::string &name) |
void | set_double_param (const std::string &name, const double dval) |
double | get_double_param (const std::string &name) const |
void | set_int_param (const std::string &name, const int ival) |
int | get_int_param (const std::string &name) const |
void | set_string_param (const std::string &name, const std::string &sval) |
std::string | get_string_param (const std::string &name) const |
void | UpdateParametersWithMacro () |
void | SaveToNodeTree (PHCompositeNode *runNode, const std::string &nodename) |
void | PutOnParNode (PHCompositeNode *parNode, const std::string &nodename) |
void | Print () const |
Private Member Functions | |
int | Getrmap (int rindex) |
int | Getphimap (int phiindex) |
float | GetTilePhi (int thisphi) |
float | GetTilePhi0 (int thisphi0) |
float | GetTileR (int thisr) |
float | GetTileZ (int thisz) |
void | CreateNodes (PHCompositeNode *topNode) |
Private Attributes | |
std::string | m_Detector |
std::string | m_Hitnodename |
std::string | m_EPDSimTowerNodePrefix = "SIM" |
std::string | m_EPDCalibTowerNodePrefix = "CALIB" |
std::string | m_TowerInfoNodeName |
std::string | m_TowerInfoNodeName_calib |
std::array< std::array < std::array< double, 31 >, 12 >, 2 > | m_EpdTile_e = {} |
std::array< std::array < std::array< double, 31 >, 12 >, 2 > | m_EpdTile_Calib_e = {} |
double | m_EpdMpv = NAN |
double | tmin = NAN |
double | tmax = NAN |
double | m_DeltaT = NAN |
Additional Inherited Members | |
Public Types inherited from Fun4AllBase | |
enum | enu_Verbosity { VERBOSITY_QUIET = 0, VERBOSITY_SOME = 1, VERBOSITY_MORE = 2, VERBOSITY_EVEN_MORE = 3, VERBOSITY_A_LOT = 4, VERBOSITY_MAX = std::numeric_limits<int>::max() - 10 } |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Protected Member Functions inherited from PHParameterInterface | |
void | set_default_double_param (const std::string &name, const double dval) |
void | set_default_int_param (const std::string &name, const int ival) |
void | set_default_string_param (const std::string &name, const std::string &sval) |
void | InitializeParameters () |
Definition at line 16 of file PHG4EPDModuleReco.h.
View newest version in sPHENIX GitHub at line 16 of file PHG4EPDModuleReco.h
PHG4EPDModuleReco::PHG4EPDModuleReco | ( | const std::string & | name = "EpdModuleReco" | ) |
Definition at line 35 of file PHG4EPDModuleReco.cc.
View newest version in sPHENIX GitHub at line 35 of file PHG4EPDModuleReco.cc
References PHParameterInterface::InitializeParameters().
|
inlineoverride |
Definition at line 21 of file PHG4EPDModuleReco.h.
View newest version in sPHENIX GitHub at line 21 of file PHG4EPDModuleReco.h
|
private |
Definition at line 225 of file PHG4EPDModuleReco.cc.
View newest version in sPHENIX GitHub at line 225 of file PHG4EPDModuleReco.cc
References PHCompositeNode::addNode(), PHNodeIterator::findFirst(), m_Detector, m_EPDCalibTowerNodePrefix, m_EPDSimTowerNodePrefix, m_TowerInfoNodeName, m_TowerInfoNodeName_calib, PHWHERE, and CaloTowerDefs::SEPD.
Referenced by InitRun().
void PHG4EPDModuleReco::Detector | ( | const std::string & | detector | ) |
Definition at line 280 of file PHG4EPDModuleReco.cc.
View newest version in sPHENIX GitHub at line 280 of file PHG4EPDModuleReco.cc
References m_Detector, and m_Hitnodename.
Referenced by EPD_Tiles().
|
inline |
Definition at line 49 of file PHG4EPDModuleReco.h.
View newest version in sPHENIX GitHub at line 49 of file PHG4EPDModuleReco.h
References m_EPDCalibTowerNodePrefix.
|
inline |
Definition at line 37 of file PHG4EPDModuleReco.h.
View newest version in sPHENIX GitHub at line 37 of file PHG4EPDModuleReco.h
References m_EPDSimTowerNodePrefix.
|
private |
Definition at line 194 of file PHG4EPDModuleReco.cc.
View newest version in sPHENIX GitHub at line 194 of file PHG4EPDModuleReco.cc
Referenced by process_event().
|
private |
Definition at line 187 of file PHG4EPDModuleReco.cc.
View newest version in sPHENIX GitHub at line 187 of file PHG4EPDModuleReco.cc
Referenced by process_event().
|
private |
Definition at line 201 of file PHG4EPDModuleReco.cc.
View newest version in sPHENIX GitHub at line 201 of file PHG4EPDModuleReco.cc
Referenced by InitRun().
|
private |
Definition at line 207 of file PHG4EPDModuleReco.cc.
View newest version in sPHENIX GitHub at line 207 of file PHG4EPDModuleReco.cc
Referenced by InitRun().
|
private |
Definition at line 213 of file PHG4EPDModuleReco.cc.
View newest version in sPHENIX GitHub at line 213 of file PHG4EPDModuleReco.cc
Referenced by InitRun().
|
private |
Definition at line 219 of file PHG4EPDModuleReco.cc.
View newest version in sPHENIX GitHub at line 219 of file PHG4EPDModuleReco.cc
Referenced by InitRun().
|
overridevirtual |
module initialization
Reimplemented from SubsysReco.
Definition at line 42 of file PHG4EPDModuleReco.cc.
View newest version in sPHENIX GitHub at line 42 of file PHG4EPDModuleReco.cc
References PHCompositeNode::addNode(), CreateNodes(), TowerInfoDefs::encode_epd(), Fun4AllReturnCodes::EVENT_OK, PHNodeIterator::findFirst(), PHParameterInterface::get_double_param(), TowerInfoDefs::get_epd_arm(), TowerInfoDefs::get_epd_phibin(), TowerInfoDefs::get_epd_rbin(), GetTilePhi(), GetTilePhi0(), GetTileR(), GetTileZ(), m_DeltaT, m_Detector, m_EpdMpv, PHWHERE, EpdGeom::set_phi(), EpdGeom::set_phi0(), EpdGeom::set_r(), EpdGeom::set_z(), tmax, tmin, and PHParameterInterface::UpdateParametersWithMacro().
|
overridevirtual |
event processing
Reimplemented from SubsysReco.
Definition at line 97 of file PHG4EPDModuleReco.cc.
View newest version in sPHENIX GitHub at line 97 of file PHG4EPDModuleReco.cc
References TowerInfoContainer::decode_key(), TowerInfoDefs::encode_epd(), Fun4AllReturnCodes::EVENT_OK, EPDDefs::get_arm(), EPDDefs::get_sector(), EPDDefs::get_tileid(), TowerInfoContainer::get_tower_at_channel(), PHG4HitContainer::getHits(), Getphimap(), Getrmap(), PHG4HitDefs::hit_idbits, i, j, k, m_DeltaT, m_EpdMpv, m_EpdTile_Calib_e, m_EpdTile_e, m_Hitnodename, m_TowerInfoNodeName, m_TowerInfoNodeName_calib, PHWHERE, physmon_track_finding_ttbar::r, TowerInfo::set_energy(), tmax, and tmin.
|
overridevirtual |
Reset after every event.
Reimplemented from SubsysReco.
Definition at line 264 of file PHG4EPDModuleReco.cc.
View newest version in sPHENIX GitHub at line 264 of file PHG4EPDModuleReco.cc
References Fun4AllReturnCodes::EVENT_OK, m_EpdTile_Calib_e, and m_EpdTile_e.
|
inline |
Definition at line 55 of file PHG4EPDModuleReco.h.
View newest version in sPHENIX GitHub at line 55 of file PHG4EPDModuleReco.h
References m_EPDCalibTowerNodePrefix.
|
inline |
Definition at line 43 of file PHG4EPDModuleReco.h.
View newest version in sPHENIX GitHub at line 43 of file PHG4EPDModuleReco.h
References m_EPDSimTowerNodePrefix.
Definition at line 181 of file PHG4EPDModuleReco.cc.
View newest version in sPHENIX GitHub at line 181 of file PHG4EPDModuleReco.cc
References PHParameterInterface::set_double_param().
|
overridevirtual |
Implements PHParameterInterface.
Definition at line 172 of file PHG4EPDModuleReco.cc.
View newest version in sPHENIX GitHub at line 172 of file PHG4EPDModuleReco.cc
References PHParameterInterface::set_default_double_param().
|
private |
Definition at line 85 of file PHG4EPDModuleReco.h.
View newest version in sPHENIX GitHub at line 85 of file PHG4EPDModuleReco.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 71 of file PHG4EPDModuleReco.h.
View newest version in sPHENIX GitHub at line 71 of file PHG4EPDModuleReco.h
Referenced by CreateNodes(), Detector(), and InitRun().
|
private |
Definition at line 74 of file PHG4EPDModuleReco.h.
View newest version in sPHENIX GitHub at line 74 of file PHG4EPDModuleReco.h
Referenced by CreateNodes(), get_epd_calib_tower_node_prefix(), and set_epd_calib_tower_node_prefix().
|
private |
Definition at line 81 of file PHG4EPDModuleReco.h.
View newest version in sPHENIX GitHub at line 81 of file PHG4EPDModuleReco.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 73 of file PHG4EPDModuleReco.h.
View newest version in sPHENIX GitHub at line 73 of file PHG4EPDModuleReco.h
Referenced by CreateNodes(), get_epd_sim_tower_node_prefix(), and set_epd_sim_tower_node_prefix().
|
private |
Definition at line 79 of file PHG4EPDModuleReco.h.
View newest version in sPHENIX GitHub at line 79 of file PHG4EPDModuleReco.h
Referenced by process_event(), and ResetEvent().
|
private |
Definition at line 78 of file PHG4EPDModuleReco.h.
View newest version in sPHENIX GitHub at line 78 of file PHG4EPDModuleReco.h
Referenced by process_event(), and ResetEvent().
|
private |
Definition at line 72 of file PHG4EPDModuleReco.h.
View newest version in sPHENIX GitHub at line 72 of file PHG4EPDModuleReco.h
Referenced by Detector(), and process_event().
|
private |
Definition at line 76 of file PHG4EPDModuleReco.h.
View newest version in sPHENIX GitHub at line 76 of file PHG4EPDModuleReco.h
Referenced by CreateNodes(), and process_event().
|
private |
Definition at line 77 of file PHG4EPDModuleReco.h.
View newest version in sPHENIX GitHub at line 77 of file PHG4EPDModuleReco.h
Referenced by CreateNodes(), and process_event().
|
private |
Definition at line 84 of file PHG4EPDModuleReco.h.
View newest version in sPHENIX GitHub at line 84 of file PHG4EPDModuleReco.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 83 of file PHG4EPDModuleReco.h.
View newest version in sPHENIX GitHub at line 83 of file PHG4EPDModuleReco.h
Referenced by InitRun(), and process_event().