EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LiteCaloEval Class Reference

#include <fun4all_coresoftware/blob/master/calibrations/calorimeter/calo_tower_slope/LiteCaloEval.h>

+ Inheritance diagram for LiteCaloEval:
+ Collaboration diagram for LiteCaloEval:

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")
 

Detailed Description

Definition at line 16 of file LiteCaloEval.h.

View newest version in sPHENIX GitHub at line 16 of file LiteCaloEval.h

Member Enumeration Documentation

Enumerator:
NONE 
CEMC 
HCALIN 
HCALOUT 

Definition at line 19 of file LiteCaloEval.h.

View newest version in sPHENIX GitHub at line 19 of file LiteCaloEval.h

Constructor & Destructor Documentation

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

virtual LiteCaloEval::~LiteCaloEval ( )
inlinevirtual

Definition at line 29 of file LiteCaloEval.h.

View newest version in sPHENIX GitHub at line 29 of file LiteCaloEval.h

Member Function Documentation

void LiteCaloEval::CaloType ( const Calo  i)
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().

+ Here is the caller graph for this function:

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

+ Here is the call graph for this function:

int LiteCaloEval::InitRun ( PHCompositeNode topNode)
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().

+ Here is the call graph for this function:

int LiteCaloEval::process_event ( PHCompositeNode topNode)
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.

+ Here is the call graph for this function:

Member Data Documentation

std::string LiteCaloEval::_caloname
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().

std::string LiteCaloEval::_filename
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().

int LiteCaloEval::_ievent = 0
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().

TFile* LiteCaloEval::cal_output = nullptr
private

Definition at line 49 of file LiteCaloEval.h.

View newest version in sPHENIX GitHub at line 49 of file LiteCaloEval.h

Referenced by End(), and InitRun().

Calo LiteCaloEval::calotype = NONE
private

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

TH1* LiteCaloEval::cemc_hist_eta_phi[96][258] = {}
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().

TH3* LiteCaloEval::e_eta_phi = nullptr
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().

TH2* LiteCaloEval::energy_eta_hist = nullptr
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().

TH1* LiteCaloEval::eta_hist[96] = {}
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().

TH1* LiteCaloEval::hcal_in_eta_phi[24][64] = {}
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().

TH1* LiteCaloEval::hcal_out_eta_phi[24][64] = {}
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().

TH3* LiteCaloEval::hcalin_e_eta_phi = nullptr
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().

TH2* LiteCaloEval::hcalin_energy_eta = nullptr
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().

TH1* LiteCaloEval::hcalin_eta[24] = {}
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().

TH3* LiteCaloEval::hcalout_e_eta_phi = {}
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().

TH2* LiteCaloEval::hcalout_energy_eta = nullptr
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().

TH1* LiteCaloEval::hcalout_eta[24] = {}
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().


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