Analysis Software
Documentation for sPHENIX simulation software
|
#include <coresoftware/blob/master/offline/packages/CaloReco/RawClusterPositionCorrection.h>
Public Member Functions | |
RawClusterPositionCorrection (const std::string &name) | |
~RawClusterPositionCorrection () override | |
int | InitRun (PHCompositeNode *topNode) override |
int | process_event (PHCompositeNode *topNode) override |
int | End (PHCompositeNode *topNode) override |
Called at the end of all processing. | |
void | CreateNodeTree (PHCompositeNode *topNode) |
void | set_UseTowerInfo (const int useMode) |
Public Member Functions inherited from SubsysReco | |
~SubsysReco () override | |
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 | |
RawClusterContainer * | _recalib_clusters {} |
std::string | _det_name |
std::vector< std::vector< float > > | calib_constants_north |
std::vector< std::vector< float > > | calib_constants_north_ecore |
std::vector< std::vector< float > > | calib_constants_south |
std::vector< std::vector< float > > | calib_constants_south_ecore |
int | m_UseTowerInfo {0} |
int | bins_eta |
int | bins_phi |
int | iEvent |
TH2 * | h2NorthSector {nullptr} |
TH2 * | h2SouthSector {nullptr} |
TH1 * | pdcCorrFlat {nullptr} |
CDBTTree * | cdbttree {nullptr} |
CDBHistos * | cdbHisto {nullptr} |
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 17 of file RawClusterPositionCorrection.h.
View newest version in sPHENIX GitHub at line 17 of file RawClusterPositionCorrection.h
|
explicit |
Definition at line 47 of file RawClusterPositionCorrection.cc.
View newest version in sPHENIX GitHub at line 47 of file RawClusterPositionCorrection.cc
|
override |
Definition at line 55 of file RawClusterPositionCorrection.cc.
View newest version in sPHENIX GitHub at line 55 of file RawClusterPositionCorrection.cc
void RawClusterPositionCorrection::CreateNodeTree | ( | PHCompositeNode * | topNode | ) |
Definition at line 394 of file RawClusterPositionCorrection.cc.
View newest version in sPHENIX GitHub at line 394 of file RawClusterPositionCorrection.cc
References _det_name, _recalib_clusters, PHCompositeNode::addNode(), PHNodeIterator::findFirst(), and m_UseTowerInfo.
Referenced by InitRun().
|
overridevirtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 436 of file RawClusterPositionCorrection.cc.
View newest version in sPHENIX GitHub at line 436 of file RawClusterPositionCorrection.cc
References Fun4AllReturnCodes::EVENT_OK.
|
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.
north
south
Reimplemented from SubsysReco.
Definition at line 61 of file RawClusterPositionCorrection.cc.
View newest version in sPHENIX GitHub at line 61 of file RawClusterPositionCorrection.cc
References bins_eta, bins_phi, calib_constants_north, calib_constants_north_ecore, calib_constants_south, calib_constants_south_ecore, cdbHisto, cdbttree, CreateNodeTree(), Fun4AllReturnCodes::EVENT_OK, CDBTTree::GetFloatValue(), CDBHistos::getHisto(), CDBInterface::getUrl(), h2NorthSector, h2SouthSector, i, CDBInterface::instance(), j, CDBHistos::LoadCalibrations(), and pdcCorrFlat.
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 144 of file RawClusterPositionCorrection.cc.
View newest version in sPHENIX GitHub at line 144 of file RawClusterPositionCorrection.cc
References _det_name, _recalib_clusters, Fun4AllReturnCodes::ABORTEVENT, RawClusterContainer::AddCluster(), assert, bins_phi, calib_constants_north, calib_constants_north_ecore, calib_constants_south, calib_constants_south_ecore, RawCluster::CloneMe(), RawTowerDefs::decode_index1(), RawTowerDefs::decode_index2(), TowerInfoContainer::decode_key(), Fun4AllReturnCodes::DISCARDEVENT, KF_timing::etabin, Fun4AllReturnCodes::EVENT_OK, RawTower::get_bineta(), RawTower::get_binphi(), RawCluster::get_ecore(), TowerInfo::get_energy(), RawCluster::get_energy(), RawTower::get_energy(), RawTowerGeomContainer::get_phibins(), TowerInfoContainer::get_tower_at_channel(), RawCluster::get_towers(), RawClusterContainer::getClusters(), RawClusterUtility::GetECoreVec(), RawTowerContainer::getTower(), GetYaxis(), h2NorthSector, h2SouthSector, iEvent, j, m_UseTowerInfo, Fun4AllBase::Name(), pdcCorrFlat, PHWHERE, RawClusterContainer::Reset(), RawCluster::set_ecore(), RawCluster::set_energy(), Fun4AllBase::Verbosity(), Fun4AllBase::VERBOSITY_EVEN_MORE, Fun4AllBase::VERBOSITY_MORE, and Fun4AllBase::VERBOSITY_SOME.
|
inline |
Definition at line 54 of file RawClusterPositionCorrection.h.
View newest version in sPHENIX GitHub at line 54 of file RawClusterPositionCorrection.h
References m_UseTowerInfo.
Referenced by CEMC_Clusters(), Fun4All_CaloProduction_PreQM23(), Fun4All_Year1(), and srundst_mdc2_clustest().
|
private |
Definition at line 65 of file RawClusterPositionCorrection.h.
View newest version in sPHENIX GitHub at line 65 of file RawClusterPositionCorrection.h
Referenced by CreateNodeTree(), and process_event().
|
private |
Definition at line 63 of file RawClusterPositionCorrection.h.
View newest version in sPHENIX GitHub at line 63 of file RawClusterPositionCorrection.h
Referenced by CreateNodeTree(), and process_event().
|
private |
Definition at line 79 of file RawClusterPositionCorrection.h.
View newest version in sPHENIX GitHub at line 79 of file RawClusterPositionCorrection.h
Referenced by InitRun().
|
private |
Definition at line 80 of file RawClusterPositionCorrection.h.
View newest version in sPHENIX GitHub at line 80 of file RawClusterPositionCorrection.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 72 of file RawClusterPositionCorrection.h.
View newest version in sPHENIX GitHub at line 72 of file RawClusterPositionCorrection.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 73 of file RawClusterPositionCorrection.h.
View newest version in sPHENIX GitHub at line 73 of file RawClusterPositionCorrection.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 74 of file RawClusterPositionCorrection.h.
View newest version in sPHENIX GitHub at line 74 of file RawClusterPositionCorrection.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 75 of file RawClusterPositionCorrection.h.
View newest version in sPHENIX GitHub at line 75 of file RawClusterPositionCorrection.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 88 of file RawClusterPositionCorrection.h.
View newest version in sPHENIX GitHub at line 88 of file RawClusterPositionCorrection.h
Referenced by InitRun(), and ~RawClusterPositionCorrection().
|
private |
Definition at line 87 of file RawClusterPositionCorrection.h.
View newest version in sPHENIX GitHub at line 87 of file RawClusterPositionCorrection.h
Referenced by InitRun(), and ~RawClusterPositionCorrection().
|
private |
Definition at line 83 of file RawClusterPositionCorrection.h.
View newest version in sPHENIX GitHub at line 83 of file RawClusterPositionCorrection.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 84 of file RawClusterPositionCorrection.h.
View newest version in sPHENIX GitHub at line 84 of file RawClusterPositionCorrection.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 81 of file RawClusterPositionCorrection.h.
View newest version in sPHENIX GitHub at line 81 of file RawClusterPositionCorrection.h
Referenced by process_event().
|
private |
Definition at line 77 of file RawClusterPositionCorrection.h.
View newest version in sPHENIX GitHub at line 77 of file RawClusterPositionCorrection.h
Referenced by CreateNodeTree(), process_event(), and set_UseTowerInfo().
|
private |
Definition at line 85 of file RawClusterPositionCorrection.h.
View newest version in sPHENIX GitHub at line 85 of file RawClusterPositionCorrection.h
Referenced by InitRun(), and process_event().