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

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

+ Inheritance diagram for RawClusterPositionCorrection:
+ Collaboration diagram for RawClusterPositionCorrection:

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}
 
CDBTTreecdbttree {nullptr}
 
CDBHistoscdbHisto {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")
 

Detailed Description

Definition at line 17 of file RawClusterPositionCorrection.h.

View newest version in sPHENIX GitHub at line 17 of file RawClusterPositionCorrection.h

Constructor & Destructor Documentation

RawClusterPositionCorrection::RawClusterPositionCorrection ( const std::string &  name)
explicit

Definition at line 47 of file RawClusterPositionCorrection.cc.

View newest version in sPHENIX GitHub at line 47 of file RawClusterPositionCorrection.cc

RawClusterPositionCorrection::~RawClusterPositionCorrection ( )
override

Definition at line 55 of file RawClusterPositionCorrection.cc.

View newest version in sPHENIX GitHub at line 55 of file RawClusterPositionCorrection.cc

References cdbHisto, and cdbttree.

Member Function Documentation

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int RawClusterPositionCorrection::End ( PHCompositeNode )
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.

int RawClusterPositionCorrection::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.

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.

+ Here is the call graph for this function:

int RawClusterPositionCorrection::process_event ( PHCompositeNode )
overridevirtual
void RawClusterPositionCorrection::set_UseTowerInfo ( const int  useMode)
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().

+ Here is the caller graph for this function:

Member Data Documentation

std::string RawClusterPositionCorrection::_det_name
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().

RawClusterContainer* RawClusterPositionCorrection::_recalib_clusters {}
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().

int RawClusterPositionCorrection::bins_eta
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().

int RawClusterPositionCorrection::bins_phi
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().

std::vector<std::vector<float> > RawClusterPositionCorrection::calib_constants_north
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().

std::vector<std::vector<float> > RawClusterPositionCorrection::calib_constants_north_ecore
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().

std::vector<std::vector<float> > RawClusterPositionCorrection::calib_constants_south
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().

std::vector<std::vector<float> > RawClusterPositionCorrection::calib_constants_south_ecore
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().

CDBHistos* RawClusterPositionCorrection::cdbHisto {nullptr}
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().

CDBTTree* RawClusterPositionCorrection::cdbttree {nullptr}
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().

TH2* RawClusterPositionCorrection::h2NorthSector {nullptr}
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().

TH2* RawClusterPositionCorrection::h2SouthSector {nullptr}
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().

int RawClusterPositionCorrection::iEvent
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().

int RawClusterPositionCorrection::m_UseTowerInfo {0}
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().

TH1* RawClusterPositionCorrection::pdcCorrFlat {nullptr}
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().


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