Analysis Software
Documentation for sPHENIX simulation software
|
#include <coresoftware/blob/master/offline/QA/modules/truthDecayTester.h>
Public Member Functions | |
truthDecayTester (const std::string &name="truthDecayTester") | |
virtual | ~truthDecayTester () |
int | Init (PHCompositeNode *topNode) override |
int | process_event (PHCompositeNode *topNode) override |
std::string | get_histo_prefix () |
int | End (PHCompositeNode *topNode) override |
Called at the end of all processing. | |
void | setMotherPDG (int PDGID) |
void | setMinPT (float value) |
void | setEtaRange (float min, float max) |
void | setDFNodeName (const std::string &name) |
void | setOutputName (const std::string &name) |
void | writeTuple (bool write) |
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. | |
Private Member Functions | |
void | initializeBranches () |
void | getMotherPDG (PHCompositeNode *topNode) |
std::vector< int > | getDecayFinderMothers (PHCompositeNode *topNode) |
bool | isInRange (float min, float value, float max) |
void | resetValues () |
Static Private Attributes | |
static const int | max_tracks = 20 |
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 25 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 25 of file truthDecayTester.h
truthDecayTester::truthDecayTester | ( | const std::string & | name = "truthDecayTester" | ) |
Definition at line 27 of file truthDecayTester.cc.
View newest version in sPHENIX GitHub at line 27 of file truthDecayTester.cc
|
virtual |
Definition at line 46 of file truthDecayTester.cc.
View newest version in sPHENIX GitHub at line 46 of file truthDecayTester.cc
|
overridevirtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 551 of file truthDecayTester.cc.
View newest version in sPHENIX GitHub at line 551 of file truthDecayTester.cc
References assert, Fun4AllReturnCodes::EVENT_OK, m_outfile, and m_write_nTuple.
std::string truthDecayTester::get_histo_prefix | ( | ) |
Definition at line 684 of file truthDecayTester.cc.
View newest version in sPHENIX GitHub at line 684 of file truthDecayTester.cc
References Fun4AllBase::Name().
Referenced by Init(), and process_event().
|
private |
Definition at line 645 of file truthDecayTester.cc.
View newest version in sPHENIX GitHub at line 645 of file truthDecayTester.cc
References DecayFinderContainer_v1::begin(), DecayFinderContainer_v1::end(), i, m_decay_pdg_id, m_decayMap, m_df_module_name, and m_nTracks.
Referenced by process_event().
|
private |
Definition at line 626 of file truthDecayTester.cc.
View newest version in sPHENIX GitHub at line 626 of file truthDecayTester.cc
References DecayFinderContainer_v1::begin(), PHNodeIterator::findFirst(), m_decay_pdg_id, m_decayMap, and m_df_module_name.
Referenced by process_event().
|
overridevirtual |
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 49 of file truthDecayTester.cc.
View newest version in sPHENIX GitHub at line 49 of file truthDecayTester.cc
References assert, Fun4AllReturnCodes::EVENT_OK, get_histo_prefix(), QAHistManagerDef::getHistoManager(), h, i, Fun4AllHistoManager::registerHisto(), and to_string().
|
private |
Definition at line 565 of file truthDecayTester.cc.
View newest version in sPHENIX GitHub at line 565 of file truthDecayTester.cc
References i, m_accept_eta, m_accept_pE_15percent, m_accept_pE_1percent, m_accept_pE_5percent, m_accept_pT, m_accept_px_15percent, m_accept_px_1percent, m_accept_px_5percent, m_accept_py_15percent, m_accept_py_1percent, m_accept_py_5percent, m_accept_pz_15percent, m_accept_pz_1percent, m_accept_pz_5percent, m_daughter_sum_mass, m_delta_pE, m_delta_px, m_delta_py, m_delta_pz, m_event_number, m_mother_barcode, m_mother_decayLength, m_mother_decayTime, m_mother_eta, m_mother_mass, m_mother_pdg_id, m_mother_pE, m_mother_pT, m_mother_px, m_mother_py, m_mother_pz, m_nTracks, m_outfile, m_outfile_name, m_track_eta, m_track_mass, m_track_mother_barcode, m_track_pdg_id, m_track_pE, m_track_pT, m_track_px, m_track_py, m_track_pz, m_tree, and to_string().
Referenced by process_event().
|
private |
Definition at line 668 of file truthDecayTester.cc.
View newest version in sPHENIX GitHub at line 668 of file truthDecayTester.cc
Referenced by process_event().
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 190 of file truthDecayTester.cc.
View newest version in sPHENIX GitHub at line 190 of file truthDecayTester.cc
References Fun4AllReturnCodes::ABORTEVENT, assert, parse_cmake_options::begin, candidateCounter, end, Fun4AllReturnCodes::EVENT_OK, PHG4Particle::get_barcode(), PHG4Particle::get_e(), get_histo_prefix(), PHG4Particle::get_parent_id(), PHG4Particle::get_pid(), PHG4Particle::get_px(), PHG4Particle::get_py(), PHG4Particle::get_pz(), PHG4Particle::get_vtx_id(), PHG4VtxPoint::get_x(), PHG4VtxPoint::get_y(), PHG4VtxPoint::get_z(), getDecayFinderMothers(), Fun4AllHistoManager::getHisto(), QAHistManagerDef::getHistoManager(), getMotherPDG(), PHG4TruthInfoContainer::GetParticle(), PHG4TruthInfoContainer::GetParticleRange(), PHG4TruthInfoContainer::GetVtx(), initializeBranches(), isInRange(), m_accept_eta, m_accept_pE_15percent, m_accept_pE_1percent, m_accept_pE_5percent, m_accept_pT, m_accept_px_15percent, m_accept_px_1percent, m_accept_px_5percent, m_accept_py_15percent, m_accept_py_1percent, m_accept_py_5percent, m_accept_pz_15percent, m_accept_pz_1percent, m_accept_pz_5percent, m_daughter_sum_mass, m_decay_pdg_id, m_delta_pE, m_delta_px, m_delta_py, m_delta_pz, m_event_number, m_g4particle, m_max_eta, m_min_eta, m_min_pt, m_mother_barcode, m_mother_decayLength, m_mother_decayTime, m_mother_eta, m_mother_mass, m_mother_pdg_id, m_mother_pE, m_mother_pT, m_mother_px, m_mother_py, m_mother_pz, m_nTracks, m_track_eta, m_track_mass, m_track_mother_barcode, m_track_pdg_id, m_track_pE, m_track_pT, m_track_px, m_track_py, m_track_pz, m_tree, m_truth_info, m_write_nTuple, m_write_QAHists, and resetValues().
|
private |
Definition at line 673 of file truthDecayTester.cc.
View newest version in sPHENIX GitHub at line 673 of file truthDecayTester.cc
References m_accept_eta, m_accept_pT, m_delta_pE, m_delta_px, m_delta_py, and m_delta_pz.
Referenced by process_event().
|
inline |
Definition at line 56 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 56 of file truthDecayTester.h
References m_df_module_name, and perf_headwind::name.
|
inline |
Definition at line 51 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 51 of file truthDecayTester.h
References m_max_eta, m_min_eta, and Acts::UnitConstants::min.
|
inline |
Definition at line 50 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 50 of file truthDecayTester.h
|
inline |
Definition at line 49 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 49 of file truthDecayTester.h
References m_decay_pdg_id.
|
inline |
Definition at line 57 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 57 of file truthDecayTester.h
References m_outfile_name, and perf_headwind::name.
|
inline |
Definition at line 58 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 58 of file truthDecayTester.h
References m_write_nTuple, and write().
|
private |
Definition at line 123 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 123 of file truthDecayTester.h
Referenced by initializeBranches(), process_event(), and resetValues().
|
private |
Definition at line 122 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 122 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 114 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 114 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 118 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 118 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 124 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 124 of file truthDecayTester.h
Referenced by initializeBranches(), process_event(), and resetValues().
|
private |
Definition at line 119 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 119 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 111 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 111 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 115 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 115 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 120 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 120 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 112 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 112 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 116 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 116 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 121 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 121 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 113 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 113 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 117 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 117 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 87 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 87 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 67 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 67 of file truthDecayTester.h
Referenced by getDecayFinderMothers(), getMotherPDG(), process_event(), and setMotherPDG().
|
private |
Definition at line 76 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 76 of file truthDecayTester.h
Referenced by getDecayFinderMothers(), and getMotherPDG().
|
private |
Definition at line 110 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 110 of file truthDecayTester.h
Referenced by initializeBranches(), process_event(), and resetValues().
|
private |
Definition at line 107 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 107 of file truthDecayTester.h
Referenced by initializeBranches(), process_event(), and resetValues().
|
private |
Definition at line 108 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 108 of file truthDecayTester.h
Referenced by initializeBranches(), process_event(), and resetValues().
|
private |
Definition at line 109 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 109 of file truthDecayTester.h
Referenced by initializeBranches(), process_event(), and resetValues().
|
private |
Definition at line 71 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 71 of file truthDecayTester.h
Referenced by getDecayFinderMothers(), getMotherPDG(), and setDFNodeName().
|
private |
Definition at line 85 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 85 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 70 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 70 of file truthDecayTester.h
Referenced by process_event().
|
private |
Definition at line 64 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 64 of file truthDecayTester.h
Referenced by process_event(), and setEtaRange().
|
private |
Definition at line 63 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 63 of file truthDecayTester.h
Referenced by process_event(), and setEtaRange().
|
private |
Definition at line 62 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 62 of file truthDecayTester.h
Referenced by process_event(), and setMinPT().
|
private |
Definition at line 97 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 97 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 88 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 88 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 89 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 89 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 96 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 96 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 86 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 86 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 90 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 90 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 94 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 94 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 95 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 95 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 91 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 91 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 92 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 92 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 93 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 93 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 61 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 61 of file truthDecayTester.h
Referenced by getDecayFinderMothers(), initializeBranches(), and process_event().
|
private |
Definition at line 73 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 73 of file truthDecayTester.h
Referenced by End(), and initializeBranches().
|
private |
Definition at line 72 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 72 of file truthDecayTester.h
Referenced by initializeBranches(), and setOutputName().
|
private |
Definition at line 104 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 104 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 105 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 105 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 106 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 106 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 98 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 98 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 102 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 102 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 103 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 103 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 99 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 99 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 100 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 100 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 101 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 101 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 74 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 74 of file truthDecayTester.h
Referenced by initializeBranches(), and process_event().
|
private |
Definition at line 69 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 69 of file truthDecayTester.h
Referenced by process_event().
|
private |
Definition at line 66 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 66 of file truthDecayTester.h
Referenced by End(), process_event(), and writeTuple().
|
private |
Definition at line 75 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 75 of file truthDecayTester.h
Referenced by process_event().
|
staticprivate |
Definition at line 84 of file truthDecayTester.h.
View newest version in sPHENIX GitHub at line 84 of file truthDecayTester.h