Analysis Software
Documentation for sPHENIX simulation software
|
#include <analysis/blob/master/HCalib/HCalib.h>
Public Types | |
enum | detid { HCALIN =0, HCALOUT =1 } |
typedef std::map < PHG4ScintillatorSlatDefs::keytype, TH1F * > | SlatMap |
typedef std::map < RawTowerDefs::keytype, TH1F * > | TowerMap |
Public Member Functions | |
HCalib () | |
virtual | ~HCalib () |
int | Init (PHCompositeNode *topNode) |
int | process_event (PHCompositeNode *topNode) |
int | End (PHCompositeNode *topNode) |
Called at the end of all processing. | |
int | genkey (const int detid, const int etabin, const int phibin) |
Public Member Functions inherited from SubsysReco | |
~SubsysReco () override | |
virtual int | EndRun (const int) |
Called at the end of each run. | |
virtual int | InitRun (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 | GetNodes (PHCompositeNode *topNode, const std::string &det="None") |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Protected Member Functions inherited from Fun4AllBase | |
Fun4AllBase (const std::string &name="NONAME") | |
Protected Attributes | |
bool | is_proto |
PHCompositeNode * | topNode |
RawTowerContainer * | towers |
PHG4CellContainer * | slats |
PHG4ScintillatorSlatContainer * | proto_slats |
float | threshold |
TFile * | outfile |
SlatMap | slat_hists |
TowerMap | tower_hists |
bool | fill_towers |
bool | fill_slats |
Definition at line 20 of file HCalib.h.
View newest version in sPHENIX GitHub at line 20 of file HCalib.h
typedef std::map<PHG4ScintillatorSlatDefs::keytype,TH1F *> HCalib::SlatMap |
typedef std::map<RawTowerDefs::keytype, TH1F *> HCalib::TowerMap |
enum HCalib::detid |
HCalib::HCalib | ( | ) |
|
inlinevirtual |
|
virtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 197 of file HCalib.C.
View newest version in sPHENIX GitHub at line 197 of file HCalib.C
References Fun4AllReturnCodes::EVENT_OK, it, outfile, slat_hists, and tower_hists.
int HCalib::genkey | ( | const int | detid, |
const int | etabin, | ||
const int | phibin | ||
) |
Definition at line 248 of file HCalib.C.
View newest version in sPHENIX GitHub at line 248 of file HCalib.C
Referenced by process_event().
|
protected |
|
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 44 of file HCalib.C.
View newest version in sPHENIX GitHub at line 44 of file HCalib.C
References Fun4AllReturnCodes::EVENT_OK, and outfile.
|
virtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 50 of file HCalib.C.
View newest version in sPHENIX GitHub at line 50 of file HCalib.C
References KF_timing::etabin, Fun4AllReturnCodes::EVENT_OK, fill_slats, fill_towers, genkey(), RawTower::get_bineta(), RawTower::get_binphi(), PHG4Cell::get_cellid(), PHG4ScintillatorSlat::get_column(), PHG4CellDefs::ScintillatorSlatBinning::get_column(), RawTower::get_energy(), PHG4ScintillatorSlat::get_light_yield(), PHG4Cell::get_light_yield(), PHG4ScintillatorSlat::get_row(), PHG4CellDefs::ScintillatorSlatBinning::get_row(), PHG4CellContainer::getCells(), GetNodes(), PHG4ScintillatorSlatContainer::getScintillatorSlats(), h, is_proto, it, proto_slats, slat_hists, slats, to_string(), tower_hists, and towers.
|
protected |
|
protected |
|
protected |
Definition at line 35 of file HCalib.h.
View newest version in sPHENIX GitHub at line 35 of file HCalib.h
Referenced by GetNodes(), HCalib(), and process_event().
|
protected |
|
protected |
Definition at line 41 of file HCalib.h.
View newest version in sPHENIX GitHub at line 41 of file HCalib.h
Referenced by GetNodes(), and process_event().
|
protected |
|
protected |
Definition at line 40 of file HCalib.h.
View newest version in sPHENIX GitHub at line 40 of file HCalib.h
Referenced by GetNodes(), HCalib(), and process_event().
|
protected |
|
protected |
Definition at line 38 of file HCalib.h.
View newest version in sPHENIX GitHub at line 38 of file HCalib.h
Referenced by GetNodes().
|
protected |
|
protected |
Definition at line 39 of file HCalib.h.
View newest version in sPHENIX GitHub at line 39 of file HCalib.h
Referenced by GetNodes(), HCalib(), and process_event().