Analysis Software
Documentation for sPHENIX simulation software
|
#include <coresoftware/blob/master/offline/packages/CaloReco/RawTowerCalibration.h>
Public Types | |
enum | enu_calib_algorithm { kNo_calibration = 0, kSimple_linear_calibration = 1, kTower_by_tower_calibration = 2, kDbfile_tbt_gain_corr = 3 } |
enum | ProcessTowerType { kRawTowerOnly = 0, kTowerInfoOnly = 1, kBothTowers = 2 } |
Public Member Functions | |
RawTowerCalibration (const std::string &name="RawTowerCalibration") | |
~RawTowerCalibration () 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 | Detector (const std::string &d) |
void | TowerType (const int type) |
enu_calib_algorithm | get_calib_algorithm () const |
void | set_calib_algorithm (enu_calib_algorithm calibAlgorithm) |
double | get_calib_const_GeV_ADC () const |
void | set_calib_const_GeV_ADC (double calibConstGeVAdc) |
void | set_variable_GeV_ADC (const bool value) |
std::string | get_calib_tower_node_prefix () const |
void | set_calib_tower_node_prefix (const std::string &calibTowerNodePrefix) |
double | get_pedstal_ADC () const |
void | set_pedstal_ADC (double pedstalAdc) |
void | set_variable_pedestal (const bool value) |
std::string | get_raw_tower_node_prefix () const |
void | set_raw_tower_node_prefix (const std::string &rawTowerNodePrefix) |
void | set_zero_suppression_GeV (double) |
PHParameters & | GetCalibrationParameters () |
Get the parameters for update. Useful fields are listed in SetDefaultParameters();. | |
void | set_CalibrationFileName (const char *inCalFname) |
void | set_UseConditionsDB (const bool setUseCondDB) |
void | set_towerinfo (RawTowerCalibration::ProcessTowerType UseTowerInfo) |
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. | |
Protected Member Functions | |
void | CreateNodes (PHCompositeNode *topNode) |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Protected Member Functions inherited from Fun4AllBase | |
Fun4AllBase (const std::string &name="NONAME") | |
calibrate ADC value to measured energy deposition in calorimeter towers default input DST node is TOWER_RAW_DETECTOR default output DST node is TOWER_CALIB_DETECTOR
Definition at line 21 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 21 of file RawTowerCalibration.h
kNo_calibration |
directly pass the energy of raw tower to calibrated tower. Zero suppression is applied |
kSimple_linear_calibration |
simple calibration with pedstal subtraction and a global energy scale (sampling fraction) correction |
kTower_by_tower_calibration |
input calibration file for tower by tower calibration. Use GetCalibrationParameters() to set the calibration parameters |
kDbfile_tbt_gain_corr |
Definition at line 40 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 40 of file RawTowerCalibration.h
Definition at line 54 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 54 of file RawTowerCalibration.h
RawTowerCalibration::RawTowerCalibration | ( | const std::string & | name = "RawTowerCalibration" | ) |
Definition at line 43 of file RawTowerCalibration.cc.
View newest version in sPHENIX GitHub at line 43 of file RawTowerCalibration.cc
|
override |
Definition at line 54 of file RawTowerCalibration.cc.
View newest version in sPHENIX GitHub at line 54 of file RawTowerCalibration.cc
References m_CDBTTree.
|
protected |
Definition at line 383 of file RawTowerCalibration.cc.
View newest version in sPHENIX GitHub at line 383 of file RawTowerCalibration.cc
References _calib_tower_node_prefix, _calib_towerinfos, _calib_towers, _raw_tower_node_prefix, _raw_towerinfos, _raw_towers, PHCompositeNode::addNode(), CaliTowerInfoNodeName, CaliTowerNodeName, PHNodeIterator::findFirst(), RawTowerContainer::getCalorimeterID(), RawTowerGeomContainer::identify(), m_Detector, m_UseTowerInfo, Fun4AllBase::Name(), PHWHERE, rawtowergeom, RawTowerInfoNodeName, RawTowerNodeName, TowerGeomNodeName, and Fun4AllBase::Verbosity().
Referenced by InitRun().
|
inline |
Definition at line 30 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 30 of file RawTowerCalibration.h
References _tower_calib_params, m_Detector, and PHParameters::set_name().
Referenced by CEMC_Towers(), EEMC_Towers(), FEMC_Towers(), FHCAL_Towers(), Fun4All_G4_Prototype2(), Fun4All_G4_Prototype3(), Fun4All_G4_Prototype4(), Fun4All_HCalJetPhiShift(), HCALInner_Towers(), HCALOuter_Towers(), and ZDC_Towers().
|
overridevirtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 378 of file RawTowerCalibration.cc.
View newest version in sPHENIX GitHub at line 378 of file RawTowerCalibration.cc
References Fun4AllReturnCodes::EVENT_OK.
|
inline |
Definition at line 61 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 61 of file RawTowerCalibration.h
References _calib_algorithm.
|
inline |
Definition at line 71 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 71 of file RawTowerCalibration.h
References _calib_const_GeV_ADC.
|
inline |
Definition at line 86 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 86 of file RawTowerCalibration.h
References _calib_tower_node_prefix.
|
inline |
Definition at line 96 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 96 of file RawTowerCalibration.h
References _pedstal_ADC.
|
inline |
Definition at line 111 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 111 of file RawTowerCalibration.h
References _raw_tower_node_prefix.
|
inline |
Get the parameters for update. Useful fields are listed in SetDefaultParameters();.
Definition at line 129 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 129 of file RawTowerCalibration.h
References _tower_calib_params.
Referenced by CEMC_Towers().
|
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 59 of file RawTowerCalibration.cc.
View newest version in sPHENIX GitHub at line 59 of file RawTowerCalibration.cc
References _calib_algorithm, Fun4AllReturnCodes::ABORTRUN, CreateNodes(), Acts::UnitConstants::e, Fun4AllReturnCodes::EVENT_OK, PHNodeIterator::findFirst(), kDbfile_tbt_gain_corr, m_Detector, and Fun4AllBase::Name().
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 95 of file RawTowerCalibration.cc.
View newest version in sPHENIX GitHub at line 95 of file RawTowerCalibration.cc
References _calib_algorithm, _calib_const_GeV_ADC, _calib_towerinfos, _calib_towers, _GeV_ADC_file, _pedestal_file, _pedstal_ADC, _raw_towerinfos, _raw_towers, _tower_calib_params, _tower_type, Fun4AllReturnCodes::ABORTRUN, RawTowerContainer::AddTower(), assert, channel(), RawTowerDefs::decode_caloid(), TowerInfoContainerv1::encode_key(), eta, Fun4AllReturnCodes::EVENT_OK, RawTower::get_bineta(), RawTower::get_binl(), RawTower::get_binphi(), PHParameters::get_double_param(), TowerInfo::get_energy(), RawTower::get_energy(), RawTower::get_id(), TowerInfoContainerv1::get_tower_at_channel(), RawTowerGeomContainer::get_tower_geometry(), RawTowerGeom::get_tower_type(), CDBTTree::GetFloatValue(), RawTowerContainer::getTotalEdep(), TowerInfoContainer::getTowerEtaBin(), TowerInfoContainer::getTowerPhiBin(), RawTowerContainer::getTowers(), CDBInterface::getUrl(), CDBInterface::instance(), kDbfile_tbt_gain_corr, kNo_calibration, kSimple_linear_calibration, kTower_by_tower_calibration, RawTowerDefs::LFHCAL, m_CDBTTree, m_Detector, m_UseTowerInfo, Fun4AllBase::Name(), ActsTests::PropagationDatasets::phi, PHWHERE, rawtowergeom, TowerInfo::set_energy(), RawTower::set_energy(), TowerInfoContainerv1::size(), to_string(), summary::url, and Fun4AllBase::Verbosity().
|
inline |
Definition at line 66 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 66 of file RawTowerCalibration.h
References _calib_algorithm.
Referenced by CEMC_Towers(), EEMC_Towers(), FEMC_Towers(), FHCAL_Towers(), Fun4All_G4_Prototype2(), Fun4All_G4_Prototype3(), Fun4All_G4_Prototype4(), Fun4All_HCalJetPhiShift(), HCALInner_Towers(), HCALOuter_Towers(), and ZDC_Towers().
|
inline |
Definition at line 76 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 76 of file RawTowerCalibration.h
References _calib_const_GeV_ADC.
Referenced by CEMC_Towers(), EEMC_Towers(), FEMC_Towers(), FHCAL_Towers(), Fun4All_G4_Prototype2(), Fun4All_G4_Prototype3(), Fun4All_G4_Prototype4(), Fun4All_HCalJetPhiShift(), HCALInner_Towers(), HCALOuter_Towers(), and ZDC_Towers().
|
inline |
Definition at line 91 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 91 of file RawTowerCalibration.h
References _calib_tower_node_prefix.
Referenced by Fun4All_G4_Prototype2(), Fun4All_G4_Prototype3(), and Fun4All_G4_Prototype4().
|
inline |
Definition at line 134 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 134 of file RawTowerCalibration.h
References m_CalibrationFileName.
Referenced by CEMC_Towers(), HCALInner_Towers(), and HCALOuter_Towers().
|
inline |
Definition at line 101 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 101 of file RawTowerCalibration.h
References _pedstal_ADC.
Referenced by CEMC_Towers(), EEMC_Towers(), FEMC_Towers(), FHCAL_Towers(), Fun4All_G4_Prototype2(), Fun4All_G4_Prototype3(), Fun4All_G4_Prototype4(), Fun4All_HCalJetPhiShift(), HCALInner_Towers(), HCALOuter_Towers(), and ZDC_Towers().
|
inline |
Definition at line 116 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 116 of file RawTowerCalibration.h
References _raw_tower_node_prefix.
Referenced by Fun4All_G4_Prototype2(), Fun4All_G4_Prototype3(), and Fun4All_G4_Prototype4().
|
inline |
Definition at line 143 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 143 of file RawTowerCalibration.h
References m_UseTowerInfo.
Referenced by CEMC_Towers(), HCALInner_Towers(), and HCALOuter_Towers().
|
inline |
Definition at line 138 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 138 of file RawTowerCalibration.h
References m_UseConditionsDB.
Referenced by CEMC_Towers(), HCALInner_Towers(), and HCALOuter_Towers().
|
inline |
Definition at line 81 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 81 of file RawTowerCalibration.h
References _GeV_ADC_file, and value.
Referenced by CEMC_Towers().
|
inline |
Definition at line 106 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 106 of file RawTowerCalibration.h
References _pedestal_file, and value.
Referenced by CEMC_Towers().
|
inline |
Definition at line 121 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 121 of file RawTowerCalibration.h
Referenced by Fun4All_G4_Prototype2(), Fun4All_G4_Prototype3(), Fun4All_G4_Prototype4(), HCALInner_Towers(), and HCALOuter_Towers().
|
inline |
Definition at line 35 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 35 of file RawTowerCalibration.h
References _tower_type, and parse_cmake_options::type.
Referenced by FEMC_Towers(), and ZDC_Towers().
|
protected |
Definition at line 160 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 160 of file RawTowerCalibration.h
Referenced by get_calib_algorithm(), InitRun(), process_event(), and set_calib_algorithm().
|
protected |
calibration constant in unit of GeV per ADC
Definition at line 179 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 179 of file RawTowerCalibration.h
Referenced by get_calib_const_GeV_ADC(), process_event(), and set_calib_const_GeV_ADC().
|
protected |
Definition at line 169 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 169 of file RawTowerCalibration.h
Referenced by CreateNodes(), get_calib_tower_node_prefix(), and set_calib_tower_node_prefix().
|
protected |
Definition at line 155 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 155 of file RawTowerCalibration.h
Referenced by CreateNodes(), and process_event().
|
protected |
Definition at line 152 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 152 of file RawTowerCalibration.h
Referenced by CreateNodes(), and process_event().
|
protected |
GeV per ADC from file.
Definition at line 182 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 182 of file RawTowerCalibration.h
Referenced by process_event(), and set_variable_GeV_ADC().
|
protected |
pedestal from file
Definition at line 176 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 176 of file RawTowerCalibration.h
Referenced by process_event(), and set_variable_pedestal().
|
protected |
pedstal in unit of ADC
Definition at line 173 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 173 of file RawTowerCalibration.h
Referenced by get_pedstal_ADC(), process_event(), and set_pedstal_ADC().
|
protected |
Definition at line 170 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 170 of file RawTowerCalibration.h
Referenced by CreateNodes(), get_raw_tower_node_prefix(), and set_raw_tower_node_prefix().
|
protected |
Definition at line 156 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 156 of file RawTowerCalibration.h
Referenced by CreateNodes(), and process_event().
|
protected |
Definition at line 153 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 153 of file RawTowerCalibration.h
Referenced by CreateNodes(), and process_event().
|
protected |
Tower by tower calibration parameters.
Definition at line 188 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 188 of file RawTowerCalibration.h
Referenced by Detector(), GetCalibrationParameters(), and process_event().
|
protected |
tower type to act on
Definition at line 185 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 185 of file RawTowerCalibration.h
Referenced by process_event(), and TowerType().
|
protected |
Definition at line 166 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 166 of file RawTowerCalibration.h
Referenced by CreateNodes().
|
protected |
Definition at line 165 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 165 of file RawTowerCalibration.h
Referenced by CreateNodes().
|
protected |
Definition at line 190 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 190 of file RawTowerCalibration.h
Referenced by set_CalibrationFileName().
|
protected |
Definition at line 193 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 193 of file RawTowerCalibration.h
Referenced by process_event(), and ~RawTowerCalibration().
|
protected |
Definition at line 162 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 162 of file RawTowerCalibration.h
Referenced by CreateNodes(), Detector(), InitRun(), and process_event().
|
protected |
Definition at line 191 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 191 of file RawTowerCalibration.h
Referenced by set_UseConditionsDB().
|
protected |
Definition at line 194 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 194 of file RawTowerCalibration.h
Referenced by CreateNodes(), process_event(), and set_towerinfo().
|
protected |
Definition at line 158 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 158 of file RawTowerCalibration.h
Referenced by CreateNodes(), and process_event().
|
protected |
Definition at line 164 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 164 of file RawTowerCalibration.h
Referenced by CreateNodes().
|
protected |
Definition at line 163 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 163 of file RawTowerCalibration.h
Referenced by CreateNodes().
|
protected |
Definition at line 167 of file RawTowerCalibration.h.
View newest version in sPHENIX GitHub at line 167 of file RawTowerCalibration.h
Referenced by CreateNodes().