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

#include <coresoftware/blob/master/offline/packages/CaloReco/CaloTowerCalib.h>

+ Inheritance diagram for CaloTowerCalib:
+ Collaboration diagram for CaloTowerCalib:

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 = ""
 
CDBTTreecdbttree = 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")
 

Detailed Description

Definition at line 20 of file CaloTowerCalib.h.

View newest version in sPHENIX GitHub at line 20 of file CaloTowerCalib.h

Constructor & Destructor Documentation

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().

+ Here is the call graph for this function:

CaloTowerCalib::~CaloTowerCalib ( )
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().

+ Here is the call graph for this function:

Member Function Documentation

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int CaloTowerCalib::InitRun ( PHCompositeNode )
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.

+ Here is the call graph for this function:

int CaloTowerCalib::process_event ( PHCompositeNode )
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().

+ Here is the call graph for this function:

void CaloTowerCalib::set_detector_type ( CaloTowerDefs::DetectorSystem  dettype)
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().

+ Here is the caller graph for this function:

void CaloTowerCalib::set_directURL ( const std::string &  url)
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().

+ Here is the caller graph for this function:

void CaloTowerCalib::set_inputNodePrefix ( const std::string &  name)
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().

+ Here is the caller graph for this function:

void CaloTowerCalib::set_outputNodePrefix ( const std::string &  name)
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().

+ Here is the caller graph for this function:

void CaloTowerCalib::set_use_TowerInfov2 ( bool  use)
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.

void CaloTowerCalib::setCalibName ( const std::string &  name)
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().

+ Here is the caller graph for this function:

void CaloTowerCalib::setFieldName ( const std::string &  name)
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().

+ Here is the caller graph for this function:

Member Data Documentation

std::string CaloTowerCalib::CalibTowerNodeName
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().

CDBTTree* CaloTowerCalib::cdbttree = nullptr
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().

std::string CaloTowerCalib::m_calibName
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().

std::string CaloTowerCalib::m_detector
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().

TowerInfoContainer::DETECTOR CaloTowerCalib::m_DETECTOR
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().

CaloTowerDefs::DetectorSystem CaloTowerCalib::m_dettype
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().

std::string CaloTowerCalib::m_directURL = ""
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().

std::string CaloTowerCalib::m_fieldname
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().

bool CaloTowerCalib::m_giveDirectURL = false
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().

std::string CaloTowerCalib::m_inputNodePrefix {"TOWERS_"}
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().

std::string CaloTowerCalib::m_outputNodePrefix {"TOWERINFO_CALIB_"}
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().

bool CaloTowerCalib::m_overrideCalibName {false}
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().

bool CaloTowerCalib::m_overrideFieldName {false}
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().

int CaloTowerCalib::m_runNumber
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().

bool CaloTowerCalib::m_use_TowerInfov2 = 0
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().

std::string CaloTowerCalib::RawTowerNodeName
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().


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