Analysis Software
Documentation for sPHENIX simulation software
|
#include <coresoftware/blob/master/offline/packages/CaloReco/CaloTowerCalib.h>
Public Member Functions | |
CaloTowerCalib (const std::string &name="CaloTowerCalib") | |
~CaloTowerCalib () override | |
int | InitRun (PHCompositeNode *topNode) override |
int | process_event (PHCompositeNode *topNode) override |
void | CreateNodeTree (PHCompositeNode *topNode) |
void | set_detector_type (CaloTowerDefs::DetectorSystem dettype) |
void | setCalibName (const std::string &name) |
void | setFieldName (const std::string &name) |
void | set_inputNodePrefix (const std::string &name) |
void | set_outputNodePrefix (const std::string &name) |
void | set_directURL (const std::string &url) |
void | set_use_TowerInfov2 (bool use) |
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. | |
virtual int | ResetEvent (PHCompositeNode *) |
Clean up after each event. | |
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. | |
Private Attributes | |
CaloTowerDefs::DetectorSystem | m_dettype |
std::string | m_detector |
TowerInfoContainer::DETECTOR | m_DETECTOR |
std::string | m_fieldname |
std::string | m_calibName |
bool | m_overrideCalibName {false} |
bool | m_overrideFieldName {false} |
std::string | m_inputNodePrefix {"TOWERS_"} |
std::string | m_outputNodePrefix {"TOWERINFO_CALIB_"} |
std::string | RawTowerNodeName |
std::string | CalibTowerNodeName |
bool | m_use_TowerInfov2 = 0 |
bool | m_giveDirectURL = false |
std::string | m_directURL = "" |
CDBTTree * | cdbttree = nullptr |
int | m_runNumber |
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") | |
Definition at line 20 of file CaloTowerCalib.h.
View newest version in sPHENIX GitHub at line 20 of file CaloTowerCalib.h
CaloTowerCalib::CaloTowerCalib | ( | const std::string & | name = "CaloTowerCalib" | ) |
Definition at line 38 of file CaloTowerCalib.cc.
View newest version in sPHENIX GitHub at line 38 of file CaloTowerCalib.cc
References Fun4AllBase::Verbosity().
|
override |
Definition at line 50 of file CaloTowerCalib.cc.
View newest version in sPHENIX GitHub at line 50 of file CaloTowerCalib.cc
References cdbttree, and Fun4AllBase::Verbosity().
void CaloTowerCalib::CreateNodeTree | ( | PHCompositeNode * | topNode | ) |
Definition at line 253 of file CaloTowerCalib.cc.
View newest version in sPHENIX GitHub at line 253 of file CaloTowerCalib.cc
References PHCompositeNode::addNode(), CalibTowerNodeName, PHObject::CloneMe(), PHNodeIterator::findFirst(), m_detector, m_inputNodePrefix, m_outputNodePrefix, Fun4AllBase::Name(), and RawTowerNodeName.
Referenced by InitRun().
|
overridevirtual |
Called for first event when run number is known. Typically this is where you may want to fetch data from database, because you know the run number.
Reimplemented from SubsysReco.
Definition at line 57 of file CaloTowerCalib.cc.
View newest version in sPHENIX GitHub at line 57 of file CaloTowerCalib.cc
References Fun4AllReturnCodes::ABORTRUN, cdbttree, CaloTowerDefs::CEMC, CreateNodeTree(), Acts::UnitConstants::e, TowerInfoContainer::EMCAL, Fun4AllReturnCodes::EVENT_OK, PHNodeIterator::findFirst(), EventHeader::get_RunNumber(), CDBInterface::getUrl(), TowerInfoContainer::HCAL, CaloTowerDefs::HCALIN, CaloTowerDefs::HCALOUT, CDBInterface::instance(), m_calibName, m_detector, m_DETECTOR, m_dettype, m_directURL, m_fieldname, m_giveDirectURL, m_overrideCalibName, m_overrideFieldName, m_runNumber, Fun4AllBase::Name(), CaloTowerDefs::SEPD, TowerInfoContainer::SEPD, Fun4AllBase::Verbosity(), CaloTowerDefs::ZDC, and TowerInfoContainer::ZDC.
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 231 of file CaloTowerCalib.cc.
View newest version in sPHENIX GitHub at line 231 of file CaloTowerCalib.cc
References CalibTowerNodeName, cdbttree, channel(), TowerInfo::copy_tower(), TowerInfoContainer::encode_key(), Fun4AllReturnCodes::EVENT_OK, TowerInfo::get_energy(), TowerInfoContainer::get_tower_at_channel(), CDBTTree::GetFloatValue(), m_fieldname, RawTowerNodeName, and TowerInfoContainer::size().
|
inline |
Definition at line 31 of file CaloTowerCalib.h.
View newest version in sPHENIX GitHub at line 31 of file CaloTowerCalib.h
References m_dettype.
Referenced by clus_dst_simple_superfastcalib(), dst_simple_towerslope_runmacro(), Fun4All_EMCal(), Fun4All_EMCal_Hist(), and Fun4All_Year1().
|
inline |
Definition at line 59 of file CaloTowerCalib.h.
View newest version in sPHENIX GitHub at line 59 of file CaloTowerCalib.h
References m_directURL, m_giveDirectURL, and summary::url.
Referenced by Fun4All_EMCal(), and wholeIter_Pi0EtaByEta().
|
inline |
Definition at line 48 of file CaloTowerCalib.h.
View newest version in sPHENIX GitHub at line 48 of file CaloTowerCalib.h
References m_inputNodePrefix, and perf_headwind::name.
Referenced by Fun4All_Year1().
|
inline |
Definition at line 53 of file CaloTowerCalib.h.
View newest version in sPHENIX GitHub at line 53 of file CaloTowerCalib.h
References m_outputNodePrefix, and perf_headwind::name.
Referenced by Fun4All_Year1().
|
inline |
Definition at line 64 of file CaloTowerCalib.h.
View newest version in sPHENIX GitHub at line 64 of file CaloTowerCalib.h
References m_use_TowerInfov2.
|
inline |
Definition at line 36 of file CaloTowerCalib.h.
View newest version in sPHENIX GitHub at line 36 of file CaloTowerCalib.h
References m_calibName, m_overrideCalibName, and perf_headwind::name.
Referenced by clus_dst_simple_superfastcalib().
|
inline |
Definition at line 42 of file CaloTowerCalib.h.
View newest version in sPHENIX GitHub at line 42 of file CaloTowerCalib.h
References m_fieldname, m_overrideFieldName, and perf_headwind::name.
Referenced by clus_dst_simple_superfastcalib(), and wholeIter_Pi0EtaByEta().
|
private |
Definition at line 78 of file CaloTowerCalib.h.
View newest version in sPHENIX GitHub at line 78 of file CaloTowerCalib.h
Referenced by CreateNodeTree(), and process_event().
|
private |
Definition at line 85 of file CaloTowerCalib.h.
View newest version in sPHENIX GitHub at line 85 of file CaloTowerCalib.h
Referenced by InitRun(), process_event(), and ~CaloTowerCalib().
|
private |
Definition at line 72 of file CaloTowerCalib.h.
View newest version in sPHENIX GitHub at line 72 of file CaloTowerCalib.h
Referenced by InitRun(), and setCalibName().
|
private |
Definition at line 69 of file CaloTowerCalib.h.
View newest version in sPHENIX GitHub at line 69 of file CaloTowerCalib.h
Referenced by CreateNodeTree(), and InitRun().
|
private |
Definition at line 70 of file CaloTowerCalib.h.
View newest version in sPHENIX GitHub at line 70 of file CaloTowerCalib.h
Referenced by InitRun().
|
private |
Definition at line 67 of file CaloTowerCalib.h.
View newest version in sPHENIX GitHub at line 67 of file CaloTowerCalib.h
Referenced by InitRun(), and set_detector_type().
|
private |
Definition at line 83 of file CaloTowerCalib.h.
View newest version in sPHENIX GitHub at line 83 of file CaloTowerCalib.h
Referenced by InitRun(), and set_directURL().
|
private |
Definition at line 71 of file CaloTowerCalib.h.
View newest version in sPHENIX GitHub at line 71 of file CaloTowerCalib.h
Referenced by InitRun(), process_event(), and setFieldName().
|
private |
Definition at line 82 of file CaloTowerCalib.h.
View newest version in sPHENIX GitHub at line 82 of file CaloTowerCalib.h
Referenced by InitRun(), and set_directURL().
|
private |
Definition at line 75 of file CaloTowerCalib.h.
View newest version in sPHENIX GitHub at line 75 of file CaloTowerCalib.h
Referenced by CreateNodeTree(), and set_inputNodePrefix().
|
private |
Definition at line 76 of file CaloTowerCalib.h.
View newest version in sPHENIX GitHub at line 76 of file CaloTowerCalib.h
Referenced by CreateNodeTree(), and set_outputNodePrefix().
|
private |
Definition at line 73 of file CaloTowerCalib.h.
View newest version in sPHENIX GitHub at line 73 of file CaloTowerCalib.h
Referenced by InitRun(), and setCalibName().
|
private |
Definition at line 74 of file CaloTowerCalib.h.
View newest version in sPHENIX GitHub at line 74 of file CaloTowerCalib.h
Referenced by InitRun(), and setFieldName().
|
private |
Definition at line 86 of file CaloTowerCalib.h.
View newest version in sPHENIX GitHub at line 86 of file CaloTowerCalib.h
Referenced by InitRun().
|
private |
Definition at line 80 of file CaloTowerCalib.h.
View newest version in sPHENIX GitHub at line 80 of file CaloTowerCalib.h
Referenced by set_use_TowerInfov2().
|
private |
Definition at line 77 of file CaloTowerCalib.h.
View newest version in sPHENIX GitHub at line 77 of file CaloTowerCalib.h
Referenced by CreateNodeTree(), and process_event().