Analysis Software
Documentation for sPHENIX simulation software
|
#include <analysis/blob/master/EMCTemplateFitting/src/CaloCalibration.h>
Public Member Functions | |
CaloCalibration (const std::string &name) | |
int | InitRun (PHCompositeNode *topNode) |
int | process_event (PHCompositeNode *topNode) |
void | CreateNodeTree (PHCompositeNode *topNode) |
std::string | get_calib_tower_node_prefix () const |
void | set_calib_tower_node_prefix (const std::string &calibTowerNodePrefix) |
std::string | get_raw_tower_node_prefix () const |
void | set_raw_tower_node_prefix (const std::string &rawTowerNodePrefix) |
const PHParameters & | GetCalibrationParameters () const |
Get the parameters for readonly. | |
PHParameters & | GetCalibrationParameters () |
void | SetCalibrationParameters (const PHParameters &calib_params) |
void | SetFitType (FitMethodType t) |
CaloCalibration (const std::string &name) | |
int | InitRun (PHCompositeNode *topNode) |
int | process_event (PHCompositeNode *topNode) |
void | CreateNodeTree (PHCompositeNode *topNode) |
std::string | get_calib_tower_node_prefix () const |
void | set_calib_tower_node_prefix (const std::string &calibTowerNodePrefix) |
std::string | get_raw_tower_node_prefix () const |
void | set_raw_tower_node_prefix (const std::string &rawTowerNodePrefix) |
const PHParameters & | GetCalibrationParameters () const |
Get the parameters for readonly. | |
PHParameters & | GetCalibrationParameters () |
void | SetCalibrationParameters (const PHParameters &calib_params) |
CaloCalibration (const std::string &name) | |
int | Init (PHCompositeNode *topNode) |
int | InitRun (PHCompositeNode *topNode) |
int | process_event (PHCompositeNode *topNode) |
int | End (PHCompositeNode *topNode) |
Called at the end of all processing. | |
void | CreateNodeTree (PHCompositeNode *topNode) |
std::string | get_calib_tower_node_prefix () const |
void | set_calib_tower_node_prefix (const std::string &calibTowerNodePrefix) |
std::string | get_raw_tower_node_prefix () const |
void | set_raw_tower_node_prefix (const std::string &rawTowerNodePrefix) |
const PHParameters & | GetCalibrationParameters () const |
Get the parameters for readonly. | |
PHParameters & | GetCalibrationParameters () |
void | SetCalibrationParameters (const PHParameters &calib_params) |
CaloCalibration (const std::string &name) | |
int | InitRun (PHCompositeNode *topNode) |
int | process_event (PHCompositeNode *topNode) |
void | CreateNodeTree (PHCompositeNode *topNode) |
std::string | get_calib_tower_node_prefix () const |
void | set_calib_tower_node_prefix (const std::string &calibTowerNodePrefix) |
std::string | get_raw_tower_node_prefix () const |
void | set_raw_tower_node_prefix (const std::string &rawTowerNodePrefix) |
const PHParameters & | GetCalibrationParameters () const |
Get the parameters for readonly. | |
PHParameters & | GetCalibrationParameters () |
void | SetCalibrationParameters (const PHParameters &calib_params) |
void | SetFitType (FitMethodType t) |
Public Member Functions inherited from SubsysReco | |
~SubsysReco () override | |
virtual int | EndRun (const int) |
Called at the end of each run. | |
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 Member Functions | |
void | SetDefaultParameters (PHParameters ¶m) |
load the default parameter to param | |
void | SetDefaultParameters (PHParameters ¶m) |
load the default parameter to param | |
void | SetDefaultParameters (PHParameters ¶m) |
load the default parameter to param | |
void | SetDefaultParameters (PHParameters ¶m) |
load the default parameter to param | |
Private Attributes | |
RawTowerContainer * | _calib_towers |
RawTowerContainer * | _raw_towers |
std::string | detector |
std::string | RawTowerNodeName |
std::string | CaliTowerNodeName |
std::string | _calib_tower_node_prefix |
std::string | _raw_tower_node_prefix |
PHParameters | _calib_params |
FitMethodType | _fit_type |
Additional Inherited Members | |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Definition at line 18 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 18 of file CaloCalibration.h
kPowerLawExp |
single power-low-exp fit, PROTOTYPE4_FEM::SampleFit_PowerLawExp() |
kPowerLawDoubleExp |
power-low-double-exp fit, PROTOTYPE4_FEM::SampleFit_PowerLawDoubleExp |
kPowerLawDoubleExpWithGlobalFitConstraint |
power-low-double-exp fit, PROTOTYPE4_FEM::SampleFit_PowerLawDoubleExp, and constraining all tower take identical shape |
kPeakSample |
just use the peak sample, PROTOTYPE4_FEM::SampleFit_PeakSample() |
kPowerLawExp |
single power-low-exp fit, PROTOTYPE4_FEM::SampleFit_PowerLawExp() |
kPowerLawDoubleExp |
power-low-double-exp fit, PROTOTYPE4_FEM::SampleFit_PowerLawDoubleExp |
kPowerLawDoubleExpWithGlobalFitConstraint |
power-low-double-exp fit, PROTOTYPE4_FEM::SampleFit_PowerLawDoubleExp, and constraining all tower take identical shape |
kPeakSample |
just use the peak sample, PROTOTYPE4_FEM::SampleFit_PeakSample() |
Definition at line 63 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 63 of file CaloCalibration.h
kPowerLawExp |
single power-low-exp fit, PROTOTYPE4_FEM::SampleFit_PowerLawExp() |
kPowerLawDoubleExp |
power-low-double-exp fit, PROTOTYPE4_FEM::SampleFit_PowerLawDoubleExp |
kPowerLawDoubleExpWithGlobalFitConstraint |
power-low-double-exp fit, PROTOTYPE4_FEM::SampleFit_PowerLawDoubleExp, and constraining all tower take identical shape |
kPeakSample |
just use the peak sample, PROTOTYPE4_FEM::SampleFit_PeakSample() |
kPowerLawExp |
single power-low-exp fit, PROTOTYPE4_FEM::SampleFit_PowerLawExp() |
kPowerLawDoubleExp |
power-low-double-exp fit, PROTOTYPE4_FEM::SampleFit_PowerLawDoubleExp |
kPowerLawDoubleExpWithGlobalFitConstraint |
power-low-double-exp fit, PROTOTYPE4_FEM::SampleFit_PowerLawDoubleExp, and constraining all tower take identical shape |
kPeakSample |
just use the peak sample, PROTOTYPE4_FEM::SampleFit_PeakSample() |
Definition at line 63 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 63 of file CaloCalibration.h
CaloCalibration::CaloCalibration | ( | const std::string & | name | ) |
Definition at line 38 of file CaloCalibration.cc.
View newest version in sPHENIX GitHub at line 38 of file CaloCalibration.cc
References _calib_params, and SetDefaultParameters().
CaloCalibration::CaloCalibration | ( | const std::string & | name | ) |
CaloCalibration::CaloCalibration | ( | const std::string & | name | ) |
CaloCalibration::CaloCalibration | ( | const std::string & | name | ) |
void CaloCalibration::CreateNodeTree | ( | PHCompositeNode * | topNode | ) |
Definition at line 307 of file CaloCalibration.cc.
View newest version in sPHENIX GitHub at line 307 of file CaloCalibration.cc
References _calib_params, _calib_tower_node_prefix, _calib_towers, _raw_tower_node_prefix, _raw_towers, assert, CaliTowerNodeName, detector, PHNodeIterator::findFirst(), RawTowerContainer::getCalorimeterID(), Fun4AllBase::Name(), RawTowerNodeName, and PHParameters::SaveToNodeTree().
Referenced by InitRun().
void CaloCalibration::CreateNodeTree | ( | PHCompositeNode * | topNode | ) |
void CaloCalibration::CreateNodeTree | ( | PHCompositeNode * | topNode | ) |
void CaloCalibration::CreateNodeTree | ( | PHCompositeNode * | topNode | ) |
|
virtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 224 of file CaloCalibration.cc.
View newest version in sPHENIX GitHub at line 224 of file CaloCalibration.cc
References Fun4AllReturnCodes::EVENT_OK.
|
inline |
Definition at line 29 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 29 of file CaloCalibration.h
References _calib_tower_node_prefix.
|
inline |
Definition at line 29 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 29 of file CaloCalibration.h
References _calib_tower_node_prefix.
|
inline |
Definition at line 29 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 29 of file CaloCalibration.h
References _calib_tower_node_prefix.
|
inline |
Definition at line 33 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 33 of file CaloCalibration.h
References _calib_tower_node_prefix.
|
inline |
Definition at line 39 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 39 of file CaloCalibration.h
References _raw_tower_node_prefix.
|
inline |
Definition at line 39 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 39 of file CaloCalibration.h
References _raw_tower_node_prefix.
|
inline |
Definition at line 39 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 39 of file CaloCalibration.h
References _raw_tower_node_prefix.
|
inline |
Definition at line 43 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 43 of file CaloCalibration.h
References _raw_tower_node_prefix.
|
inline |
Get the parameters for readonly.
Definition at line 50 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 50 of file CaloCalibration.h
References _calib_params.
Referenced by Fun4All_PRDF(), and Fun4All_TestBeam().
|
inline |
Get the parameters for readonly.
Definition at line 50 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 50 of file CaloCalibration.h
References _calib_params.
|
inline |
Get the parameters for readonly.
Definition at line 50 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 50 of file CaloCalibration.h
References _calib_params.
|
inline |
Get the parameters for readonly.
Definition at line 54 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 54 of file CaloCalibration.h
References _calib_params.
|
inline |
Get the parameters for update. Useful fields are listed in SetDefaultParameters();
Definition at line 54 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 54 of file CaloCalibration.h
References _calib_params.
|
inline |
Get the parameters for update. Useful fields are listed in SetDefaultParameters();
Definition at line 54 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 54 of file CaloCalibration.h
References _calib_params.
|
inline |
Get the parameters for update. Useful fields are listed in SetDefaultParameters();
Definition at line 54 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 54 of file CaloCalibration.h
References _calib_params.
|
inline |
Get the parameters for update. Useful fields are listed in SetDefaultParameters();
Definition at line 58 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 58 of file CaloCalibration.h
References _calib_params.
|
virtual |
Called during initialization. Typically this is where you can book histograms, and e.g. register them to Fun4AllServer (so they can be output to file using Fun4AllServer::dumpHistos() method).
Reimplemented from SubsysReco.
Definition at line 54 of file CaloCalibration.cc.
View newest version in sPHENIX GitHub at line 54 of file CaloCalibration.cc
References Fun4AllReturnCodes::EVENT_OK.
|
virtual |
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.
|
virtual |
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 52 of file CaloCalibration.cc.
View newest version in sPHENIX GitHub at line 52 of file CaloCalibration.cc
References _calib_params, CreateNodeTree(), Fun4AllReturnCodes::EVENT_OK, Fun4AllBase::Name(), PHParameters::Print(), and Fun4AllBase::Verbosity().
|
virtual |
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.
|
virtual |
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.
|
virtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 67 of file CaloCalibration.cc.
View newest version in sPHENIX GitHub at line 67 of file CaloCalibration.cc
References _calib_params, _calib_towers, _fit_type, _raw_towers, RawTowerContainer::AddTower(), assert, test_fpe::count, Fun4AllReturnCodes::EVENT_OK, material_mapping_optimisation::format, RawTower_Prototype4::get_column(), PHParameters::get_double_param(), RawTower_Prototype4::get_energy(), PHParameters::get_int_param(), RawTower_Prototype4::get_row(), RawTower_Prototype4::get_signal_samples(), RawTowerContainer::getTotalEdep(), RawTowerContainer::getTowers(), i, RawTower_Prototype4::identify(), kPeakSample, kPowerLawDoubleExp, kPowerLawDoubleExpWithGlobalFitConstraint, kPowerLawExp, Fun4AllBase::Name(), PROTOTYPE4_FEM::NSAMPLES, RawTower_Prototype4::NSAMPLES, PROTOTYPE4_FEM::SampleFit_PeakSample(), PROTOTYPE4_FEM::SampleFit_PowerLawDoubleExp(), PROTOTYPE4_FEM::SampleFit_PowerLawExp(), RawTower_Prototype4::set_energy(), RawTower_Prototype4::set_signal_samples(), RawTower_Prototype4::set_time(), RawTowerContainer::size(), str, and Fun4AllBase::Verbosity().
|
virtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
|
virtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
|
virtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
|
inline |
Definition at line 34 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 34 of file CaloCalibration.h
References _calib_tower_node_prefix.
|
inline |
Definition at line 34 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 34 of file CaloCalibration.h
References _calib_tower_node_prefix.
Referenced by Fun4All_PRDF(), and Fun4All_TestBeam().
|
inline |
Definition at line 34 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 34 of file CaloCalibration.h
References _calib_tower_node_prefix.
|
inline |
Definition at line 38 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 38 of file CaloCalibration.h
References _calib_tower_node_prefix.
|
inline |
Definition at line 44 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 44 of file CaloCalibration.h
References _raw_tower_node_prefix.
|
inline |
Definition at line 44 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 44 of file CaloCalibration.h
References _raw_tower_node_prefix.
|
inline |
Definition at line 44 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 44 of file CaloCalibration.h
References _raw_tower_node_prefix.
Referenced by Fun4All_PRDF(), and Fun4All_TestBeam().
|
inline |
Definition at line 48 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 48 of file CaloCalibration.h
References _raw_tower_node_prefix.
|
inline |
Overwrite the parameter. Useful fields are listed in SetDefaultParameters();
Definition at line 58 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 58 of file CaloCalibration.h
References _calib_params.
|
inline |
Overwrite the parameter. Useful fields are listed in SetDefaultParameters();
Definition at line 58 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 58 of file CaloCalibration.h
References _calib_params.
|
inline |
Overwrite the parameter. Useful fields are listed in SetDefaultParameters();
Definition at line 58 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 58 of file CaloCalibration.h
References _calib_params.
|
inline |
Overwrite the parameter. Useful fields are listed in SetDefaultParameters();
Definition at line 62 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 62 of file CaloCalibration.h
References _calib_params.
|
private |
load the default parameter to param
|
private |
load the default parameter to param
|
private |
load the default parameter to param
Definition at line 367 of file CaloCalibration.cc.
View newest version in sPHENIX GitHub at line 367 of file CaloCalibration.cc
References PHParameters::set_double_param(), and PHParameters::set_int_param().
Referenced by CaloCalibration().
|
private |
load the default parameter to param
|
inline |
Definition at line 80 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 80 of file CaloCalibration.h
Referenced by Fun4All_PRDF(), and Fun4All_TestBeam().
|
inline |
Definition at line 80 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 80 of file CaloCalibration.h
|
private |
Definition at line 93 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 93 of file CaloCalibration.h
Referenced by CaloCalibration(), CreateNodeTree(), GetCalibrationParameters(), InitRun(), process_event(), and SetCalibrationParameters().
|
private |
Definition at line 90 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 90 of file CaloCalibration.h
Referenced by CreateNodeTree(), get_calib_tower_node_prefix(), and set_calib_tower_node_prefix().
|
private |
Definition at line 83 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 83 of file CaloCalibration.h
Referenced by CreateNodeTree(), and process_event().
|
private |
Definition at line 95 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 95 of file CaloCalibration.h
Referenced by process_event(), and SetFitType().
|
private |
Definition at line 91 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 91 of file CaloCalibration.h
Referenced by CreateNodeTree(), get_raw_tower_node_prefix(), and set_raw_tower_node_prefix().
|
private |
Definition at line 84 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 84 of file CaloCalibration.h
Referenced by CreateNodeTree(), and process_event().
|
private |
Definition at line 88 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 88 of file CaloCalibration.h
Referenced by CreateNodeTree().
|
private |
Definition at line 86 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 86 of file CaloCalibration.h
Referenced by CreateNodeTree().
|
private |
Definition at line 87 of file CaloCalibration.h.
View newest version in sPHENIX GitHub at line 87 of file CaloCalibration.h
Referenced by CreateNodeTree().