Analysis Software
Documentation for sPHENIX simulation software
|
#include <tutorials/blob/master/sPHENIX_sims/Calib/Calib.h>
Public Member Functions | |
Calib (const std::string &name="Calib") | |
int | Init (PHCompositeNode *) |
int | InitRun (PHCompositeNode *) |
int | process_event (PHCompositeNode *) |
int | EndRun (PHCompositeNode *) |
int | End (PHCompositeNode *) |
Called at the end of all processing. | |
void | set_filename (const char *file) |
Calib (const std::string &name="Calib") | |
int | Init (PHCompositeNode *) |
int | InitRun (PHCompositeNode *) |
int | process_event (PHCompositeNode *) |
int | EndRun (PHCompositeNode *) |
int | End (PHCompositeNode *) |
Called at the end of all processing. | |
void | set_filename (const char *file) |
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 | fill_tree (PHCompositeNode *) |
int | GetNodes (PHCompositeNode *) |
void | fill_tree (PHCompositeNode *) |
int | GetNodes (PHCompositeNode *) |
Private Attributes | |
std::string | _outfile_name |
int | _event |
float | _oCalib_ohcal |
TProfile2D * | hprof2d |
TTree * | _event_tree |
Additional Inherited Members | |
Public Types inherited from Fun4AllBase | |
enum | enu_Verbosity { VERBOSITY_QUIET = 0, VERBOSITY_SOME = 1, VERBOSITY_MORE = 2, VERBOSITY_EVEN_MORE = 3, VERBOSITY_A_LOT = 4, VERBOSITY_MAX = std::numeric_limits<int>::max() - 10 } |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Definition at line 32 of file Calib.h.
View newest version in sPHENIX GitHub at line 32 of file Calib.h
Calib::Calib | ( | const std::string & | name = "Calib" | ) |
Calib::Calib | ( | const std::string & | name = "Calib" | ) |
|
virtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 130 of file Calib.cc.
View newest version in sPHENIX GitHub at line 130 of file Calib.cc
References _outfile_name, PHTFileServer::cd(), Fun4AllReturnCodes::EVENT_OK, PHTFileServer::get(), and PHTFileServer::write().
|
virtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
int Calib::EndRun | ( | PHCompositeNode * | topNode | ) |
Definition at line 123 of file Calib.cc.
View newest version in sPHENIX GitHub at line 123 of file Calib.cc
References Fun4AllReturnCodes::EVENT_OK.
int Calib::EndRun | ( | PHCompositeNode * | ) |
|
private |
Definition at line 144 of file Calib.cc.
View newest version in sPHENIX GitHub at line 144 of file Calib.cc
References _event, _event_tree, _oCalib_ohcal, _ohcal_towergeom, _ohcal_towers_o, RawTowerGeom::get_column(), RawTower::get_energy(), RawTowerGeom::get_eta(), RawTowerGeom::get_phi(), RawTowerGeom::get_row(), RawTowerGeomContainer::get_tower_geometry(), RawTowerContainer::getTower(), RawTowerContainer::getTowers(), hprof2d, i, and j.
Referenced by process_event().
|
private |
|
private |
Definition at line 206 of file Calib.cc.
View newest version in sPHENIX GitHub at line 206 of file Calib.cc
References _ohcal_towergeom, _ohcal_towers_o, Fun4AllReturnCodes::ABORTEVENT, Fun4AllReturnCodes::EVENT_OK, and PHWHERE.
Referenced by process_event().
|
private |
|
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.
|
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 62 of file Calib.cc.
View newest version in sPHENIX GitHub at line 62 of file Calib.cc
References _event, _event_tree, _oCalib_ohcal, _outfile_name, PHTFileServer::cd(), Fun4AllReturnCodes::EVENT_OK, PHTFileServer::get(), hprof2d, PHTFileServer::open(), and PHWHERE.
|
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 96 of file Calib.cc.
View newest version in sPHENIX GitHub at line 96 of file Calib.cc
References Fun4AllReturnCodes::EVENT_OK.
|
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.
Definition at line 107 of file Calib.cc.
View newest version in sPHENIX GitHub at line 107 of file Calib.cc
References _event, Fun4AllReturnCodes::EVENT_OK, fill_tree(), and GetNodes().
|
inline |
Definition at line 51 of file Calib.h.
View newest version in sPHENIX GitHub at line 51 of file Calib.h
References _outfile_name, and file.
Referenced by Fun4All_G4_sPHENIX().
|
inline |
|
private |
Definition at line 59 of file Calib.h.
View newest version in sPHENIX GitHub at line 59 of file Calib.h
Referenced by Calib(), fill_tree(), Init(), and process_event().
|
private |
|
private |
|
private |
|
private |