Analysis Software
Documentation for sPHENIX simulation software
|
#include <analysis/blob/master/HcalSingleHadronCalib/src/TruthCaloTree.h>
Public Member Functions | |
TruthCaloTree (const std::string &name="TruthCaloTree.root") | |
virtual | ~TruthCaloTree () |
int | Init (PHCompositeNode *) |
int | reset_tree_vars () |
int | GetNodes (PHCompositeNode *) |
int | process_event (PHCompositeNode *) |
int | End (PHCompositeNode *) |
Called at the end of all processing. | |
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. | |
Static Private Attributes | |
static const bool | _debug = false |
static const int | nTowers = 10000 |
static const int | nTruth = 100000 |
static const int | nTruths = 100000 |
static const bool | recursive_shower = false |
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 30 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 30 of file TruthCaloTree.h
TruthCaloTree::TruthCaloTree | ( | const std::string & | name = "TruthCaloTree.root" | ) |
Definition at line 29 of file TruthCaloTree.C.
View newest version in sPHENIX GitHub at line 29 of file TruthCaloTree.C
References _EMcal_sim_name, _foutname, _hcal_sim_name, _hcalIN_sim_name, and perf_headwind::name.
|
inlinevirtual |
Definition at line 35 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 35 of file TruthCaloTree.h
|
virtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 394 of file TruthCaloTree.C.
View newest version in sPHENIX GitHub at line 394 of file TruthCaloTree.C
int TruthCaloTree::GetNodes | ( | PHCompositeNode * | topNode | ) |
Definition at line 103 of file TruthCaloTree.C.
View newest version in sPHENIX GitHub at line 103 of file TruthCaloTree.C
References _debug, _EMcal_sim_name, _geomEM, _geomIH, _geomOH, _hcal_sim_name, _hcalIN_sim_name, _towersSimEM, _towersSimIH, _towersSimOH, blackhole, and truthinfo.
Referenced by process_event().
|
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 133 of file TruthCaloTree.C.
View newest version in sPHENIX GitHub at line 133 of file TruthCaloTree.C
References _b_EMcal_sim_E, _b_EMcal_sim_eta, _b_EMcal_sim_ieta, _b_EMcal_sim_iphi, _b_EMcal_sim_n, _b_EMcal_sim_phi, _b_event, _b_hcalIN_sim_E, _b_hcalIN_sim_eta, _b_hcalIN_sim_ieta, _b_hcalIN_sim_iphi, _b_hcalIN_sim_n, _b_hcalIN_sim_phi, _b_n_truth, _b_tower_sim_E, _b_tower_sim_eta, _b_tower_sim_ieta, _b_tower_sim_iphi, _b_tower_sim_n, _b_tower_sim_phi, _b_truth_trackid, _b_truthenergy, _b_trutheta, _b_truthp, _b_truthphi, _b_truthpid, _b_truthpt, _BH_e, _BH_px, _BH_py, _BH_pz, _BH_track_id, _debug, _file, _foutname, _ievent, _nBH, _tree, child_energy, child_parent_id, child_pid, child_px, child_py, child_pz, child_vertex_id, n_child, n_vertex, reset_tree_vars(), vertex_id, vertex_x, vertex_y, and vertex_z.
|
virtual |
Called for each event. This is where you do the real work.
Check for nansx
Reimplemented from SubsysReco.
Definition at line 201 of file TruthCaloTree.C.
View newest version in sPHENIX GitHub at line 201 of file TruthCaloTree.C
References _b_EMcal_sim_E, _b_EMcal_sim_eta, _b_EMcal_sim_ieta, _b_EMcal_sim_iphi, _b_EMcal_sim_n, _b_EMcal_sim_phi, _b_event, _b_hcalIN_sim_E, _b_hcalIN_sim_eta, _b_hcalIN_sim_ieta, _b_hcalIN_sim_iphi, _b_hcalIN_sim_n, _b_hcalIN_sim_phi, _b_n_truth, _b_tower_sim_E, _b_tower_sim_eta, _b_tower_sim_ieta, _b_tower_sim_iphi, _b_tower_sim_n, _b_tower_sim_phi, _b_truth_trackid, _b_truthenergy, _b_trutheta, _b_truthp, _b_truthphi, _b_truthpid, _b_truthpt, _BH_e, _BH_px, _BH_py, _BH_pz, _BH_track_id, _debug, _file, _geomEM, _geomIH, _geomOH, _ievent, _nBH, _towersSimEM, _towersSimIH, _towersSimOH, _tree, assert, blackhole, gtest_filter_unittest::child, child_energy, child_parent_id, child_pid, child_px, child_py, child_pz, child_vertex_id, RawTowerGeom::get_bineta(), RawTowerGeom::get_binphi(), PHG4Particle::get_e(), PHG4Hit::get_edep(), RawTower::get_energy(), RawTowerGeom::get_eta(), PHG4VtxPoint::get_id(), RawTower::get_key(), PHG4Particle::get_parent_id(), RawTowerGeom::get_phi(), PHG4Particle::get_pid(), PHG4Particle::get_px(), PHG4Hit::get_px(), PHG4Particle::get_py(), PHG4Hit::get_py(), PHG4Particle::get_pz(), PHG4Hit::get_pz(), RawTowerGeomContainer::get_tower_geometry(), PHG4Particle::get_track_id(), PHG4Hit::get_trkid(), PHG4Particle::get_vtx_id(), PHG4VtxPoint::get_x(), PHG4VtxPoint::get_y(), PHG4VtxPoint::get_z(), PHG4HitContainer::getHits(), GetNodes(), PHG4TruthInfoContainer::GetParticle(), PHG4TruthInfoContainer::GetPrimaryParticleRange(), PHG4TruthInfoContainer::GetSecondaryParticleRange(), RawTowerContainer::getTowers(), PHG4TruthInfoContainer::GetVtxRange(), PHG4TruthInfoContainer::is_primary(), n_child, n_vertex, nTowers, merge_hashes::p, truthinfo, vertex_id, vertex_x, vertex_y, and vertex_z.
int TruthCaloTree::reset_tree_vars | ( | ) |
Definition at line 38 of file TruthCaloTree.C.
View newest version in sPHENIX GitHub at line 38 of file TruthCaloTree.C
References _b_EMcal_sim_E, _b_EMcal_sim_eta, _b_EMcal_sim_ieta, _b_EMcal_sim_iphi, _b_EMcal_sim_n, _b_EMcal_sim_phi, _b_event, _b_hcalIN_sim_E, _b_hcalIN_sim_eta, _b_hcalIN_sim_ieta, _b_hcalIN_sim_iphi, _b_hcalIN_sim_n, _b_hcalIN_sim_phi, _b_n_truth, _b_tower_sim_E, _b_tower_sim_eta, _b_tower_sim_ieta, _b_tower_sim_iphi, _b_tower_sim_n, _b_tower_sim_phi, _b_truth_trackid, _b_truthenergy, _b_trutheta, _b_truthp, _b_truthphi, _b_truthpid, _b_truthpt, _BH_e, _BH_px, _BH_py, _BH_pz, _BH_track_id, _nBH, child_energy, child_parent_id, child_pid, child_px, child_py, child_pz, child_vertex_id, i, n_child, n_vertex, nTowers, nTruth, vertex_id, vertex_x, vertex_y, and vertex_z.
Referenced by Init().
|
private |
Definition at line 95 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 95 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 96 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 96 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 98 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 98 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 99 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 99 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 94 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 94 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 97 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 97 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 66 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 66 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 86 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 86 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 87 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 87 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 89 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 89 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 90 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 90 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 85 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 85 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 88 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 88 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 103 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 103 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 77 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 77 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 78 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 78 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 80 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 80 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 81 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 81 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 76 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 76 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 79 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 79 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 110 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 110 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 104 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 104 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 105 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 105 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 108 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 108 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 106 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 106 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 109 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 109 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 107 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 107 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 134 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 134 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 135 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 135 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 136 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 136 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 137 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 137 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 138 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 138 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
staticprivate |
Definition at line 68 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 68 of file TruthCaloTree.h
Referenced by End(), GetNodes(), Init(), and process_event().
|
private |
Definition at line 51 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 51 of file TruthCaloTree.h
Referenced by GetNodes(), and TruthCaloTree().
|
private |
Definition at line 64 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 64 of file TruthCaloTree.h
Referenced by End(), Init(), and process_event().
|
private |
Definition at line 48 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 48 of file TruthCaloTree.h
Referenced by Init(), and TruthCaloTree().
|
private |
Definition at line 57 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 57 of file TruthCaloTree.h
Referenced by GetNodes(), and process_event().
|
private |
Definition at line 56 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 56 of file TruthCaloTree.h
Referenced by GetNodes(), and process_event().
|
private |
Definition at line 55 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 55 of file TruthCaloTree.h
Referenced by GetNodes(), and process_event().
|
private |
Definition at line 49 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 49 of file TruthCaloTree.h
Referenced by GetNodes(), and TruthCaloTree().
|
private |
Definition at line 50 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 50 of file TruthCaloTree.h
Referenced by GetNodes(), and TruthCaloTree().
|
private |
Definition at line 66 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 66 of file TruthCaloTree.h
Referenced by Init(), and process_event().
|
private |
Definition at line 133 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 133 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 53 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 53 of file TruthCaloTree.h
|
private |
Definition at line 53 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 53 of file TruthCaloTree.h
|
private |
Definition at line 60 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 60 of file TruthCaloTree.h
Referenced by GetNodes(), and process_event().
|
private |
Definition at line 59 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 59 of file TruthCaloTree.h
Referenced by GetNodes(), and process_event().
|
private |
Definition at line 54 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 54 of file TruthCaloTree.h
Referenced by GetNodes(), and process_event().
|
private |
Definition at line 63 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 63 of file TruthCaloTree.h
Referenced by Init(), and process_event().
|
private |
Definition at line 58 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 58 of file TruthCaloTree.h
Referenced by GetNodes(), and process_event().
|
private |
Definition at line 121 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 121 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 116 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 116 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 115 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 115 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 118 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 118 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 119 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 119 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 120 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 120 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 117 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 117 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 114 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 114 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 125 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 125 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
staticprivate |
Definition at line 69 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 69 of file TruthCaloTree.h
Referenced by process_event(), and reset_tree_vars().
|
staticprivate |
Definition at line 70 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 70 of file TruthCaloTree.h
Referenced by reset_tree_vars().
|
staticprivate |
Definition at line 71 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 71 of file TruthCaloTree.h
|
staticprivate |
Definition at line 72 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 72 of file TruthCaloTree.h
|
private |
Definition at line 61 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 61 of file TruthCaloTree.h
Referenced by GetNodes(), and process_event().
|
private |
Definition at line 126 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 126 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 127 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 127 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 128 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 128 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().
|
private |
Definition at line 129 of file TruthCaloTree.h.
View newest version in sPHENIX GitHub at line 129 of file TruthCaloTree.h
Referenced by Init(), process_event(), and reset_tree_vars().