ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <coresoftware/blob/master/offline/QA/modules/QAG4SimulationKFParticle.h>
Public Member Functions | |
QAG4SimulationKFParticle (const std::string &name, const std::string &mother_name, double min_m, double max_m) | |
virtual | ~QAG4SimulationKFParticle ()=default |
int | Init (PHCompositeNode *topNode) |
int | InitRun (PHCompositeNode *topNode) |
int | process_event (PHCompositeNode *topNode) |
std::string | get_histo_prefix () |
void | setTrackMapName (const std::string &name) |
Public Member Functions inherited from SubsysReco | |
~SubsysReco () override | |
virtual int | End (PHCompositeNode *) |
Called at the end of all processing. | |
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. | |
Protected Attributes | |
SvtxClusterEval * | clustereval = nullptr |
int | m_mother_id = 0 |
double | m_min_mass = 0. |
double | m_max_mass = 10. |
std::string | m_mother_name |
Private Member Functions | |
int | load_nodes (PHCompositeNode *) |
SvtxTrack * | getTrack (unsigned int track_id, SvtxTrackMap *trackmap) |
PHG4Particle * | getTruthTrack (SvtxTrack *thisTrack) |
CLHEP::HepLorentzVector * | makeHepLV (PHCompositeNode *topNode, int track_number) |
Private Attributes | |
PHG4TruthInfoContainer * | m_truthContainer = nullptr |
std::unique_ptr< SvtxEvalStack > | m_svtxEvalStack |
SvtxTrackMap * | m_trackMap = nullptr |
PHG4TruthInfoContainer * | m_truthInfo = nullptr |
KFParticle_Container * | m_kfpContainer = nullptr |
std::map< std::string, std::pair< int, float > > | particleMasses |
std::string | m_trackMapName = "SvtxTrackMap" |
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 = INT_MAX - 10 } |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Definition at line 26 of file QAG4SimulationKFParticle.h.
View newest version in sPHENIX GitHub at line 26 of file QAG4SimulationKFParticle.h
QAG4SimulationKFParticle::QAG4SimulationKFParticle | ( | const std::string & | name, |
const std::string & | mother_name, | ||
double | min_m, | ||
double | max_m | ||
) |
Definition at line 50 of file QAG4SimulationKFParticle.cc.
View newest version in sPHENIX GitHub at line 50 of file QAG4SimulationKFParticle.cc
References KFParticle_particleList::getParticleList(), kfp_particleList_evtReco, m_max_mass, m_min_mass, m_mother_id, m_mother_name, and particleMasses.
|
virtualdefault |
std::string QAG4SimulationKFParticle::get_histo_prefix | ( | ) |
Definition at line 423 of file QAG4SimulationKFParticle.cc.
View newest version in sPHENIX GitHub at line 423 of file QAG4SimulationKFParticle.cc
References m_trackMapName, and Fun4AllBase::Name().
Referenced by Init(), and process_event().
|
private |
Definition at line 316 of file QAG4SimulationKFParticle.cc.
View newest version in sPHENIX GitHub at line 316 of file QAG4SimulationKFParticle.cc
References SvtxTrackMap::begin(), and SvtxTrackMap::end().
Referenced by makeHepLV(), and process_event().
|
private |
Definition at line 330 of file QAG4SimulationKFParticle.cc.
View newest version in sPHENIX GitHub at line 330 of file QAG4SimulationKFParticle.cc
References SvtxTrack::begin_cluster_keys(), clustereval, m_svtxEvalStack, SvtxClusterEval::max_truth_particle_by_cluster_energy(), and particle.
Referenced by makeHepLV().
|
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 86 of file QAG4SimulationKFParticle.cc.
View newest version in sPHENIX GitHub at line 86 of file QAG4SimulationKFParticle.cc
References Fun4AllReturnCodes::EVENT_OK, get_histo_prefix(), QAHistManagerDef::getHistoManager(), Acts::UnitConstants::h, m_max_mass, m_min_mass, and Fun4AllHistoManager::registerHisto().
|
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 61 of file QAG4SimulationKFParticle.cc.
View newest version in sPHENIX GitHub at line 61 of file QAG4SimulationKFParticle.cc
References Fun4AllReturnCodes::ABORTRUN, Fun4AllReturnCodes::EVENT_OK, m_svtxEvalStack, m_trackMap, m_trackMapName, m_truthInfo, and Fun4AllBase::Verbosity().
|
private |
Definition at line 402 of file QAG4SimulationKFParticle.cc.
View newest version in sPHENIX GitHub at line 402 of file QAG4SimulationKFParticle.cc
References Fun4AllReturnCodes::EVENT_OK, m_kfpContainer, m_mother_name, and m_truthContainer.
Referenced by process_event().
|
private |
Definition at line 343 of file QAG4SimulationKFParticle.cc.
View newest version in sPHENIX GitHub at line 343 of file QAG4SimulationKFParticle.cc
References kdfinder::abs(), PHHepMCGenEventMap::get(), PHG4Particle::get_barcode(), SvtxTrack::get_px(), SvtxTrack::get_py(), SvtxTrack::get_pz(), PHHepMCGenEvent::getEvent(), getTrack(), getTruthTrack(), it, m_mother_id, m_trackMap, mass, particleMasses, CLHEP::HepLorentzVector::setVectM(), and track.
Referenced by process_event().
|
virtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 150 of file QAG4SimulationKFParticle.cc.
View newest version in sPHENIX GitHub at line 150 of file QAG4SimulationKFParticle.cc
References kdfinder::abs(), KFParticle_Container::begin(), KFParticle_Container::end(), Fun4AllReturnCodes::EVENT_OK, get_histo_prefix(), SvtxTrack::get_id(), Fun4AllHistoManager::getHisto(), QAHistManagerDef::getHistoManager(), getTrack(), kfpTools, load_nodes(), CLHEP::HepLorentzVector::m(), m_kfpContainer, m_mother_id, m_svtxEvalStack, m_trackMap, KFParticle_Tools::makeAllPrimaryVertices(), makeHepLV(), part, KFParticle_Container::returnParticlesByPDGid(), track, and Fun4AllBase::Verbosity().
|
inline |
Definition at line 39 of file QAG4SimulationKFParticle.h.
View newest version in sPHENIX GitHub at line 39 of file QAG4SimulationKFParticle.h
References m_trackMapName.
|
protected |
Definition at line 42 of file QAG4SimulationKFParticle.h.
View newest version in sPHENIX GitHub at line 42 of file QAG4SimulationKFParticle.h
Referenced by getTruthTrack().
|
private |
Definition at line 61 of file QAG4SimulationKFParticle.h.
View newest version in sPHENIX GitHub at line 61 of file QAG4SimulationKFParticle.h
Referenced by load_nodes(), and process_event().
|
protected |
Definition at line 45 of file QAG4SimulationKFParticle.h.
View newest version in sPHENIX GitHub at line 45 of file QAG4SimulationKFParticle.h
Referenced by Init(), and QAG4SimulationKFParticle().
|
protected |
Definition at line 44 of file QAG4SimulationKFParticle.h.
View newest version in sPHENIX GitHub at line 44 of file QAG4SimulationKFParticle.h
Referenced by Init(), and QAG4SimulationKFParticle().
|
protected |
Definition at line 43 of file QAG4SimulationKFParticle.h.
View newest version in sPHENIX GitHub at line 43 of file QAG4SimulationKFParticle.h
Referenced by makeHepLV(), process_event(), and QAG4SimulationKFParticle().
|
protected |
Definition at line 46 of file QAG4SimulationKFParticle.h.
View newest version in sPHENIX GitHub at line 46 of file QAG4SimulationKFParticle.h
Referenced by load_nodes(), and QAG4SimulationKFParticle().
|
private |
Definition at line 57 of file QAG4SimulationKFParticle.h.
View newest version in sPHENIX GitHub at line 57 of file QAG4SimulationKFParticle.h
Referenced by getTruthTrack(), InitRun(), and process_event().
|
private |
Definition at line 59 of file QAG4SimulationKFParticle.h.
View newest version in sPHENIX GitHub at line 59 of file QAG4SimulationKFParticle.h
Referenced by InitRun(), makeHepLV(), and process_event().
|
private |
Definition at line 63 of file QAG4SimulationKFParticle.h.
View newest version in sPHENIX GitHub at line 63 of file QAG4SimulationKFParticle.h
Referenced by get_histo_prefix(), InitRun(), and setTrackMapName().
|
private |
Definition at line 55 of file QAG4SimulationKFParticle.h.
View newest version in sPHENIX GitHub at line 55 of file QAG4SimulationKFParticle.h
Referenced by load_nodes().
|
private |
Definition at line 60 of file QAG4SimulationKFParticle.h.
View newest version in sPHENIX GitHub at line 60 of file QAG4SimulationKFParticle.h
Referenced by InitRun().
|
private |
Definition at line 62 of file QAG4SimulationKFParticle.h.
View newest version in sPHENIX GitHub at line 62 of file QAG4SimulationKFParticle.h
Referenced by makeHepLV(), and QAG4SimulationKFParticle().