Analysis Software
Documentation for sPHENIX simulation software
|
#include <analysis/blob/master/HCalCosmicCalib/src/HCalCalibTree.h>
Public Member Functions | |
HCalCalibTree (const std::string &name="HCalCalibTree", const std::string &fname="HCalCalibtuple.root", const std::string &prefix="TOWERSV2_") | |
constructor | |
virtual | ~HCalCalibTree () |
destructor | |
int | Init (PHCompositeNode *) override |
Processing. | |
int | process_event (PHCompositeNode *) override |
int | process_towers (PHCompositeNode *) |
int | ResetEvent (PHCompositeNode *topNode) override |
Clean up after each event. | |
int | End (PHCompositeNode *) override |
Called at the end of all processing. | |
void | Detector (const std::string &name) |
void | TowerPrefix (const std::string &name) |
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. | |
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 Attributes | |
std::string | detector |
std::string | prefix |
Fun4AllHistoManager * | hm = nullptr |
float | tower_threshold |
float | vert_threshold |
float | veto_threshold |
const float | tower_threshold_data = 500 |
const float | vert_threshold_data = 1500 |
const float | veto_threshold_data = 350 |
const float | tower_threshold_sim = 0.001767 |
const float | vert_threshold_sim = 0.0053 |
const float | veto_threshold_sim = 0.001237 |
TH1F * | h_channel_hist [n_etabin][n_phibin] = {{nullptr}} |
TH2F * | h_waveformchi2 = nullptr |
TH1F * | h_check = nullptr |
TH1F * | h_eventnumber_record |
std::string | outfilename |
int | event |
int | goodevent |
int | goodevent_check |
float | m_peak [n_etabin][n_phibin] |
float | m_chi2 [n_etabin][n_phibin] |
TFile * | outfile |
Static Protected Attributes | |
static const int | n_etabin = 24 |
static const int | n_phibin = 64 |
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 17 of file HCalCalibTree.h.
View newest version in sPHENIX GitHub at line 17 of file HCalCalibTree.h
HCalCalibTree::HCalCalibTree | ( | const std::string & | name = "HCalCalibTree" , |
const std::string & | fname = "HCalCalibtuple.root" , |
||
const std::string & | prefix = "TOWERSV2_" |
||
) |
constructor
Definition at line 23 of file HCalCalibTree.cc.
View newest version in sPHENIX GitHub at line 23 of file HCalCalibTree.cc
|
virtual |
destructor
Definition at line 28 of file HCalCalibTree.cc.
View newest version in sPHENIX GitHub at line 28 of file HCalCalibTree.cc
References hm.
|
inline |
Definition at line 32 of file HCalCalibTree.h.
View newest version in sPHENIX GitHub at line 32 of file HCalCalibTree.h
References perf_headwind::name.
Referenced by Fun4All_HCalCalib(), and Fun4All_HCalCalib_sim().
|
overridevirtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 129 of file HCalCalibTree.cc.
View newest version in sPHENIX GitHub at line 129 of file HCalCalibTree.cc
References Fun4AllHistoManager::dumpHistos(), event, goodevent, h_channel_hist, h_check, h_eventnumber_record, h_waveformchi2, hm, n_etabin, n_phibin, outfile, and outfilename.
|
overridevirtual |
Processing.
Reimplemented from SubsysReco.
Definition at line 32 of file HCalCalibTree.cc.
View newest version in sPHENIX GitHub at line 32 of file HCalCalibTree.cc
References goodevent, h_channel_hist, h_check, h_eventnumber_record, h_waveformchi2, hm, Fun4AllServer::instance(), n_etabin, n_phibin, Fun4AllBase::Name(), outfile, outfilename, prefix, to_string(), tower_threshold, tower_threshold_data, tower_threshold_sim, vert_threshold, vert_threshold_data, vert_threshold_sim, veto_threshold, veto_threshold_data, and veto_threshold_sim.
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 72 of file HCalCalibTree.cc.
View newest version in sPHENIX GitHub at line 72 of file HCalCalibTree.cc
References event, Fun4AllReturnCodes::EVENT_OK, goodevent, goodevent_check, and process_towers().
int HCalCalibTree::process_towers | ( | PHCompositeNode * | topNode | ) |
Definition at line 81 of file HCalCalibTree.cc.
View newest version in sPHENIX GitHub at line 81 of file HCalCalibTree.cc
References channel(), detector, TowerInfoContainer::encode_key(), energy, Fun4AllReturnCodes::EVENT_OK, TowerInfo::get_chi2(), TowerInfo::get_energy(), TowerInfoContainer::get_tower_at_channel(), TowerInfoContainer::getTowerEtaBin(), TowerInfoContainer::getTowerPhiBin(), goodevent_check, h_channel_hist, h_check, h_waveformchi2, m_chi2, m_peak, n_etabin, n_phibin, prefix, TowerInfoContainer::size(), size, tower_threshold, vert_threshold, and veto_threshold.
Referenced by process_event().
|
overridevirtual |
Clean up after each event.
Reimplemented from SubsysReco.
Definition at line 125 of file HCalCalibTree.cc.
View newest version in sPHENIX GitHub at line 125 of file HCalCalibTree.cc
References Fun4AllReturnCodes::EVENT_OK.
|
inline |
Definition at line 33 of file HCalCalibTree.h.
View newest version in sPHENIX GitHub at line 33 of file HCalCalibTree.h
References perf_headwind::name, and prefix.
|
protected |
Definition at line 36 of file HCalCalibTree.h.
View newest version in sPHENIX GitHub at line 36 of file HCalCalibTree.h
Referenced by process_towers().
|
protected |
Definition at line 63 of file HCalCalibTree.h.
View newest version in sPHENIX GitHub at line 63 of file HCalCalibTree.h
Referenced by End(), and process_event().
|
protected |
Definition at line 64 of file HCalCalibTree.h.
View newest version in sPHENIX GitHub at line 64 of file HCalCalibTree.h
Referenced by End(), Init(), and process_event().
|
protected |
Definition at line 65 of file HCalCalibTree.h.
View newest version in sPHENIX GitHub at line 65 of file HCalCalibTree.h
Referenced by process_event(), and process_towers().
Definition at line 56 of file HCalCalibTree.h.
View newest version in sPHENIX GitHub at line 56 of file HCalCalibTree.h
Referenced by End(), Init(), and process_towers().
|
protected |
Definition at line 58 of file HCalCalibTree.h.
View newest version in sPHENIX GitHub at line 58 of file HCalCalibTree.h
Referenced by End(), Init(), and process_towers().
|
protected |
Definition at line 59 of file HCalCalibTree.h.
View newest version in sPHENIX GitHub at line 59 of file HCalCalibTree.h
|
protected |
Definition at line 57 of file HCalCalibTree.h.
View newest version in sPHENIX GitHub at line 57 of file HCalCalibTree.h
Referenced by End(), Init(), and process_towers().
|
protected |
Definition at line 39 of file HCalCalibTree.h.
View newest version in sPHENIX GitHub at line 39 of file HCalCalibTree.h
Referenced by End(), Init(), and ~HCalCalibTree().
Definition at line 68 of file HCalCalibTree.h.
View newest version in sPHENIX GitHub at line 68 of file HCalCalibTree.h
Referenced by process_towers().
Definition at line 67 of file HCalCalibTree.h.
View newest version in sPHENIX GitHub at line 67 of file HCalCalibTree.h
Referenced by process_towers().
|
staticprotected |
Definition at line 42 of file HCalCalibTree.h.
View newest version in sPHENIX GitHub at line 42 of file HCalCalibTree.h
Referenced by End(), Init(), and process_towers().
|
staticprotected |
Definition at line 43 of file HCalCalibTree.h.
View newest version in sPHENIX GitHub at line 43 of file HCalCalibTree.h
Referenced by End(), Init(), and process_towers().
|
protected |
Definition at line 70 of file HCalCalibTree.h.
View newest version in sPHENIX GitHub at line 70 of file HCalCalibTree.h
|
protected |
Definition at line 61 of file HCalCalibTree.h.
View newest version in sPHENIX GitHub at line 61 of file HCalCalibTree.h
|
protected |
Definition at line 37 of file HCalCalibTree.h.
View newest version in sPHENIX GitHub at line 37 of file HCalCalibTree.h
Referenced by Init(), process_towers(), and TowerPrefix().
|
protected |
Definition at line 46 of file HCalCalibTree.h.
View newest version in sPHENIX GitHub at line 46 of file HCalCalibTree.h
Referenced by Init(), and process_towers().
|
protected |
Definition at line 48 of file HCalCalibTree.h.
View newest version in sPHENIX GitHub at line 48 of file HCalCalibTree.h
Referenced by Init().
|
protected |
Definition at line 52 of file HCalCalibTree.h.
View newest version in sPHENIX GitHub at line 52 of file HCalCalibTree.h
Referenced by Init().
|
protected |
Definition at line 46 of file HCalCalibTree.h.
View newest version in sPHENIX GitHub at line 46 of file HCalCalibTree.h
Referenced by Init(), and process_towers().
|
protected |
Definition at line 49 of file HCalCalibTree.h.
View newest version in sPHENIX GitHub at line 49 of file HCalCalibTree.h
Referenced by Init().
|
protected |
Definition at line 53 of file HCalCalibTree.h.
View newest version in sPHENIX GitHub at line 53 of file HCalCalibTree.h
Referenced by Init().
|
protected |
Definition at line 46 of file HCalCalibTree.h.
View newest version in sPHENIX GitHub at line 46 of file HCalCalibTree.h
Referenced by Init(), and process_towers().
|
protected |
Definition at line 50 of file HCalCalibTree.h.
View newest version in sPHENIX GitHub at line 50 of file HCalCalibTree.h
Referenced by Init().
|
protected |
Definition at line 54 of file HCalCalibTree.h.
View newest version in sPHENIX GitHub at line 54 of file HCalCalibTree.h
Referenced by Init().