EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <fun4all_coresoftware/blob/master/calibrations/calorimeter/calo_tower_slope/LiteCaloEval.h>
Public Types | |
enum | Calo { NONE = 0, CEMC = 1, HCALIN = 2, HCALOUT = 3 } |
Public Member Functions | |
LiteCaloEval (const std::string &name="LiteCaloEval", const std::string &caloNm="CEMC", const std::string &fnm="outJF") | |
virtual | ~LiteCaloEval () |
int | InitRun (PHCompositeNode *topNode) override |
int | process_event (PHCompositeNode *topNode) override |
int | End (PHCompositeNode *topNode) override |
Called at the end of all processing. | |
void | CaloType (const Calo i) |
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 | |
TFile * | cal_output = nullptr |
TH1 * | hcal_out_eta_phi [24][64] = {} |
TH1 * | hcalout_eta [24] = {} |
TH2 * | hcalout_energy_eta = nullptr |
TH3 * | hcalout_e_eta_phi = {} |
TH1 * | hcal_in_eta_phi [24][64] = {} |
TH1 * | hcalin_eta [24] = {} |
TH2 * | hcalin_energy_eta = nullptr |
TH3 * | hcalin_e_eta_phi = nullptr |
TH1 * | cemc_hist_eta_phi [96][258] = {} |
TH1 * | eta_hist [96] = {} |
TH2 * | energy_eta_hist = nullptr |
TH3 * | e_eta_phi = nullptr |
Calo | calotype = NONE |
int | _ievent = 0 |
std::string | _caloname |
std::string | _filename |
Additional Inherited Members | |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Definition at line 16 of file LiteCaloEval.h.
View newest version in sPHENIX GitHub at line 16 of file LiteCaloEval.h
enum LiteCaloEval::Calo |
Definition at line 19 of file LiteCaloEval.h.
View newest version in sPHENIX GitHub at line 19 of file LiteCaloEval.h
LiteCaloEval::LiteCaloEval | ( | const std::string & | name = "LiteCaloEval" , |
const std::string & | caloNm = "CEMC" , |
||
const std::string & | fnm = "outJF" |
||
) |
Definition at line 32 of file LiteCaloEval.cc.
View newest version in sPHENIX GitHub at line 32 of file LiteCaloEval.cc
|
inlinevirtual |
Definition at line 29 of file LiteCaloEval.h.
View newest version in sPHENIX GitHub at line 29 of file LiteCaloEval.h
|
inline |
Definition at line 46 of file LiteCaloEval.h.
View newest version in sPHENIX GitHub at line 46 of file LiteCaloEval.h
References calotype.
Referenced by Fun4All_G4_SlopeCal().
|
overridevirtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 222 of file LiteCaloEval.cc.
View newest version in sPHENIX GitHub at line 222 of file LiteCaloEval.cc
References kdfinder::abs(), c, cal_output, calotype, CEMC, d, Acts::UnitConstants::e, eta_hist, Fun4AllReturnCodes::EVENT_OK, f2(), g4, HCALIN, hcalin_eta, HCALOUT, and hcalout_eta.
|
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. A place to book histograms which have to know the run number.
Reimplemented from SubsysReco.
Definition at line 40 of file LiteCaloEval.cc.
View newest version in sPHENIX GitHub at line 40 of file LiteCaloEval.cc
References _filename, _ievent, cal_output, calotype, CEMC, cemc_hist_eta_phi, e_eta_phi, energy_eta_hist, eta_hist, Fun4AllReturnCodes::EVENT_OK, hcal_in_eta_phi, hcal_out_eta_phi, HCALIN, hcalin_e_eta_phi, hcalin_energy_eta, hcalin_eta, HCALOUT, hcalout_e_eta_phi, hcalout_energy_eta, hcalout_eta, Fun4AllBase::Name(), NONE, and nlohmann::to_string().
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 127 of file LiteCaloEval.cc.
View newest version in sPHENIX GitHub at line 127 of file LiteCaloEval.cc
References _caloname, _ievent, calotype, CEMC, cemc_hist_eta_phi, Acts::UnitConstants::e, e_eta_phi, energy_eta_hist, Acts::VectorHelpers::eta(), eta_hist, Fun4AllReturnCodes::EVENT_OK, exit(), RawTower::get_bineta(), RawTower::get_binphi(), RawTower::get_energy(), RawTowerGeom::get_eta(), RawTower::get_id(), RawTowerGeom::get_phi(), RawTowerGeomContainer::get_tower_geometry(), RawTowerContainer::getTowers(), hcal_in_eta_phi, hcal_out_eta_phi, HCALIN, hcalin_e_eta_phi, hcalin_energy_eta, hcalin_eta, HCALOUT, hcalout_e_eta_phi, hcalout_energy_eta, hcalout_eta, RawTower::identify(), phi, and PHWHERE.
|
private |
Definition at line 68 of file LiteCaloEval.h.
View newest version in sPHENIX GitHub at line 68 of file LiteCaloEval.h
Referenced by process_event().
|
private |
Definition at line 69 of file LiteCaloEval.h.
View newest version in sPHENIX GitHub at line 69 of file LiteCaloEval.h
Referenced by InitRun().
|
private |
Definition at line 67 of file LiteCaloEval.h.
View newest version in sPHENIX GitHub at line 67 of file LiteCaloEval.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 49 of file LiteCaloEval.h.
View newest version in sPHENIX GitHub at line 49 of file LiteCaloEval.h
Definition at line 66 of file LiteCaloEval.h.
View newest version in sPHENIX GitHub at line 66 of file LiteCaloEval.h
Referenced by CaloType(), End(), InitRun(), and process_event().
|
private |
Definition at line 61 of file LiteCaloEval.h.
View newest version in sPHENIX GitHub at line 61 of file LiteCaloEval.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 64 of file LiteCaloEval.h.
View newest version in sPHENIX GitHub at line 64 of file LiteCaloEval.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 63 of file LiteCaloEval.h.
View newest version in sPHENIX GitHub at line 63 of file LiteCaloEval.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 62 of file LiteCaloEval.h.
View newest version in sPHENIX GitHub at line 62 of file LiteCaloEval.h
Referenced by End(), InitRun(), and process_event().
|
private |
Definition at line 56 of file LiteCaloEval.h.
View newest version in sPHENIX GitHub at line 56 of file LiteCaloEval.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 51 of file LiteCaloEval.h.
View newest version in sPHENIX GitHub at line 51 of file LiteCaloEval.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 59 of file LiteCaloEval.h.
View newest version in sPHENIX GitHub at line 59 of file LiteCaloEval.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 58 of file LiteCaloEval.h.
View newest version in sPHENIX GitHub at line 58 of file LiteCaloEval.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 57 of file LiteCaloEval.h.
View newest version in sPHENIX GitHub at line 57 of file LiteCaloEval.h
Referenced by End(), InitRun(), and process_event().
|
private |
Definition at line 54 of file LiteCaloEval.h.
View newest version in sPHENIX GitHub at line 54 of file LiteCaloEval.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 53 of file LiteCaloEval.h.
View newest version in sPHENIX GitHub at line 53 of file LiteCaloEval.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 52 of file LiteCaloEval.h.
View newest version in sPHENIX GitHub at line 52 of file LiteCaloEval.h
Referenced by End(), InitRun(), and process_event().