ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <coresoftware/blob/master/offline/packages/trackreco/PHTruthSiliconAssociation.h>
Public Member Functions | |
PHTruthSiliconAssociation (const std::string &name="PHTruthSiliconAssociation") | |
~PHTruthSiliconAssociation () override | |
int | Init (PHCompositeNode *topNode) override |
int | InitRun (PHCompositeNode *topNode) override |
int | process_event (PHCompositeNode *topNode) override |
int | ResetEvent (PHCompositeNode *topNode) override |
Clean up internals after each event. | |
int | EndRun (const int runnumber) override |
Called at the end of each run. | |
int | End (PHCompositeNode *topNode) override |
Called at the end of all processing. | |
int | Reset (PHCompositeNode *) override |
Reset. | |
void | Print (const std::string &what="ALL") const override |
Public Member Functions inherited from SubsysReco | |
~SubsysReco () 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 | |
int | GetNodes (PHCompositeNode *topNode) |
void | copySiliconClustersToCorrectedMap () |
std::vector< PHG4Particle * > | getG4PrimaryParticle (SvtxTrack *track) |
std::set< TrkrDefs::cluskey > | getSiliconClustersFromParticle (PHG4Particle *g4particle) |
Private Attributes | |
PHG4TruthInfoContainer * | _g4truth_container {nullptr} |
PHG4HitContainer * | _g4hits_tpc {nullptr} |
PHG4HitContainer * | _g4hits_mvtx {nullptr} |
PHG4HitContainer * | _g4hits_intt {nullptr} |
TrkrClusterContainer * | _cluster_map {nullptr} |
TrkrClusterContainer * | _corrected_cluster_map {nullptr} |
TrkrHitSetContainer * | _hitsets {nullptr} |
TrkrClusterHitAssoc * | _cluster_hit_map {nullptr} |
TrkrHitTruthAssoc * | _hit_truth_map {nullptr} |
SvtxTrackMap * | _track_map {nullptr} |
AssocInfoContainer * | _assoc_container {nullptr} |
SvtxTrack * | _tracklet {nullptr} |
SvtxVertexMap * | _vertex_map {nullptr} |
TpcSeedTrackMap * | _seed_track_map {nullptr} |
std::string | _tpcseed_track_map_name = "TpcSeedTrackMap" |
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 27 of file PHTruthSiliconAssociation.h.
View newest version in sPHENIX GitHub at line 27 of file PHTruthSiliconAssociation.h
PHTruthSiliconAssociation::PHTruthSiliconAssociation | ( | const std::string & | name = "PHTruthSiliconAssociation" | ) |
Definition at line 34 of file PHTruthSiliconAssociation.cc.
View newest version in sPHENIX GitHub at line 34 of file PHTruthSiliconAssociation.cc
|
override |
Definition at line 41 of file PHTruthSiliconAssociation.cc.
View newest version in sPHENIX GitHub at line 41 of file PHTruthSiliconAssociation.cc
|
private |
Definition at line 550 of file PHTruthSiliconAssociation.cc.
View newest version in sPHENIX GitHub at line 550 of file PHTruthSiliconAssociation.cc
References _cluster_map, _corrected_cluster_map, _track_map, SvtxTrackMap::begin(), SvtxTrack::begin_cluster_keys(), SvtxTrackMap::end(), SvtxTrack::end_cluster_keys(), TrkrClusterContainer::findCluster(), TrkrClusterContainer::findOrAddCluster(), TrkrCluster::getActsLocalError(), TrkrCluster::getAdc(), TrkrCluster::getLocalX(), TrkrCluster::getLocalY(), TrkrCluster::getSubSurfKey(), TrkrDefs::getTrkrId(), TrkrDefs::inttId, TrkrDefs::mvtxId, TrkrCluster::setActsLocalError(), TrkrCluster::setAdc(), TrkrCluster::setLocalX(), TrkrCluster::setLocalY(), TrkrCluster::setSubSurfKey(), and track.
Referenced by process_event().
|
overridevirtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 296 of file PHTruthSiliconAssociation.cc.
View newest version in sPHENIX GitHub at line 296 of file PHTruthSiliconAssociation.cc
References Fun4AllReturnCodes::EVENT_OK.
Called at the end of each run.
Reimplemented from SubsysReco.
Definition at line 290 of file PHTruthSiliconAssociation.cc.
View newest version in sPHENIX GitHub at line 290 of file PHTruthSiliconAssociation.cc
References Fun4AllReturnCodes::EVENT_OK.
|
private |
Definition at line 408 of file PHTruthSiliconAssociation.cc.
View newest version in sPHENIX GitHub at line 408 of file PHTruthSiliconAssociation.cc
References _cluster_hit_map, _g4hits_intt, _g4hits_mvtx, _g4hits_tpc, _g4truth_container, _hit_truth_map, SvtxTrack::begin_cluster_keys(), SvtxTrack::end_cluster_keys(), PHG4HitContainer::findHit(), PHG4Hit::get_trkid(), TrkrHitTruthAssoc::getG4Hits(), TrkrClusterHitAssoc::getHits(), TrkrDefs::getHitSetKeyFromClusKey(), PHG4TruthInfoContainer::GetParticle(), TrkrDefs::getTrkrId(), TrkrDefs::inttId, it, TrkrDefs::mvtxId, pid, TrkrDefs::tpcId, and Fun4AllBase::Verbosity().
Referenced by process_event().
|
private |
Get the DST Node
Check that it is there
Get the tracking subnode
Check that it is there
Definition at line 313 of file PHTruthSiliconAssociation.cc.
View newest version in sPHENIX GitHub at line 313 of file PHTruthSiliconAssociation.cc
References _assoc_container, _cluster_hit_map, _cluster_map, _corrected_cluster_map, _g4hits_intt, _g4hits_mvtx, _g4hits_tpc, _g4truth_container, _hit_truth_map, _hitsets, _seed_track_map, _tpcseed_track_map_name, _track_map, Fun4AllReturnCodes::ABORTEVENT, PHCompositeNode::addNode(), Fun4AllReturnCodes::EVENT_OK, PHNodeIterator::findFirst(), and PHWHERE.
Referenced by InitRun().
|
private |
Definition at line 488 of file PHTruthSiliconAssociation.cc.
View newest version in sPHENIX GitHub at line 488 of file PHTruthSiliconAssociation.cc
References _cluster_hit_map, _cluster_map, _g4hits_intt, _g4hits_mvtx, _hit_truth_map, _hitsets, PHG4HitContainer::findHit(), PHG4Particle::get_track_id(), PHG4Hit::get_trkid(), TrkrClusterContainer::getClusters(), TrkrHitTruthAssoc::getG4Hits(), TrkrClusterHitAssoc::getHits(), TrkrDefs::getHitSetKeyFromClusKey(), TrkrHitSetContainer::getHitSets(), TrkrDefs::getLayer(), TrkrDefs::getTrkrId(), TrkrDefs::inttId, G4TTL::layer, and TrkrDefs::mvtxId.
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 47 of file PHTruthSiliconAssociation.cc.
View newest version in sPHENIX GitHub at line 47 of file PHTruthSiliconAssociation.cc
References Fun4AllReturnCodes::EVENT_OK.
|
overridevirtual |
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 54 of file PHTruthSiliconAssociation.cc.
View newest version in sPHENIX GitHub at line 54 of file PHTruthSiliconAssociation.cc
References GetNodes().
|
overridevirtual |
Print out some info about this module.
what | can be used to specify what to print exactly. |
Reimplemented from SubsysReco.
Definition at line 308 of file PHTruthSiliconAssociation.cc.
View newest version in sPHENIX GitHub at line 308 of file PHTruthSiliconAssociation.cc
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 62 of file PHTruthSiliconAssociation.cc.
View newest version in sPHENIX GitHub at line 62 of file PHTruthSiliconAssociation.cc
References _assoc_container, _corrected_cluster_map, _g4truth_container, _seed_track_map, _track_map, _tracklet, TpcSeedTrackMap::addAssoc(), SvtxTrackMap::begin(), SvtxTrack::begin_cluster_keys(), copySiliconClustersToCorrectedMap(), SvtxTrackMap::empty(), SvtxTrackMap::end(), SvtxTrack::end_cluster_keys(), Fun4AllReturnCodes::EVENT_OK, SvtxTrack::get_charge(), SvtxTrack::get_error(), SvtxTrack::get_eta(), SvtxTrack::get_id(), SvtxTrack::get_phi(), PHG4Particle::get_px(), SvtxTrack::get_px(), PHG4Particle::get_py(), SvtxTrack::get_py(), SvtxTrack::get_pz(), PHG4Particle::get_track_id(), PHG4Particle::get_vtx_id(), SvtxTrack::get_x(), SvtxTrack::get_y(), SvtxTrack::get_z(), getG4PrimaryParticle(), TrkrDefs::getLayer(), getSiliconClustersFromParticle(), TrkrDefs::getTrkrId(), PHG4TruthInfoContainer::GetVtx(), SvtxTrack::identify(), SvtxTrackMap::insert(), SvtxTrack::insert_cluster_key(), TrkrDefs::inttId, G4TTL::layer, TrkrDefs::mvtxId, SvtxTrack::set_charge(), SvtxTrack::set_error(), SvtxTrack::set_id(), SvtxTrack::set_px(), SvtxTrack::set_py(), SvtxTrack::set_pz(), SvtxTrack::set_x(), SvtxTrack::set_y(), SvtxTrack::set_z(), AssocInfoContainer::SetClusterTrackAssoc(), SvtxTrackMap::size(), SvtxTrack::size_cluster_keys(), and Fun4AllBase::Verbosity().
|
overridevirtual |
Reset.
Reimplemented from SubsysReco.
Definition at line 302 of file PHTruthSiliconAssociation.cc.
View newest version in sPHENIX GitHub at line 302 of file PHTruthSiliconAssociation.cc
References Fun4AllReturnCodes::EVENT_OK.
|
overridevirtual |
Clean up internals after each event.
Reimplemented from SubsysReco.
Definition at line 283 of file PHTruthSiliconAssociation.cc.
View newest version in sPHENIX GitHub at line 283 of file PHTruthSiliconAssociation.cc
References Fun4AllReturnCodes::EVENT_OK.
|
private |
Definition at line 74 of file PHTruthSiliconAssociation.h.
View newest version in sPHENIX GitHub at line 74 of file PHTruthSiliconAssociation.h
Referenced by GetNodes(), and process_event().
|
private |
Definition at line 71 of file PHTruthSiliconAssociation.h.
View newest version in sPHENIX GitHub at line 71 of file PHTruthSiliconAssociation.h
Referenced by getG4PrimaryParticle(), GetNodes(), and getSiliconClustersFromParticle().
|
private |
Definition at line 68 of file PHTruthSiliconAssociation.h.
View newest version in sPHENIX GitHub at line 68 of file PHTruthSiliconAssociation.h
Referenced by copySiliconClustersToCorrectedMap(), GetNodes(), and getSiliconClustersFromParticle().
|
private |
Definition at line 69 of file PHTruthSiliconAssociation.h.
View newest version in sPHENIX GitHub at line 69 of file PHTruthSiliconAssociation.h
Referenced by copySiliconClustersToCorrectedMap(), GetNodes(), and process_event().
|
private |
Definition at line 66 of file PHTruthSiliconAssociation.h.
View newest version in sPHENIX GitHub at line 66 of file PHTruthSiliconAssociation.h
Referenced by getG4PrimaryParticle(), GetNodes(), and getSiliconClustersFromParticle().
|
private |
Definition at line 65 of file PHTruthSiliconAssociation.h.
View newest version in sPHENIX GitHub at line 65 of file PHTruthSiliconAssociation.h
Referenced by getG4PrimaryParticle(), GetNodes(), and getSiliconClustersFromParticle().
|
private |
Definition at line 64 of file PHTruthSiliconAssociation.h.
View newest version in sPHENIX GitHub at line 64 of file PHTruthSiliconAssociation.h
Referenced by getG4PrimaryParticle(), and GetNodes().
|
private |
Definition at line 63 of file PHTruthSiliconAssociation.h.
View newest version in sPHENIX GitHub at line 63 of file PHTruthSiliconAssociation.h
Referenced by getG4PrimaryParticle(), GetNodes(), and process_event().
|
private |
Definition at line 72 of file PHTruthSiliconAssociation.h.
View newest version in sPHENIX GitHub at line 72 of file PHTruthSiliconAssociation.h
Referenced by getG4PrimaryParticle(), GetNodes(), and getSiliconClustersFromParticle().
|
private |
Definition at line 70 of file PHTruthSiliconAssociation.h.
View newest version in sPHENIX GitHub at line 70 of file PHTruthSiliconAssociation.h
Referenced by GetNodes(), and getSiliconClustersFromParticle().
|
private |
Definition at line 77 of file PHTruthSiliconAssociation.h.
View newest version in sPHENIX GitHub at line 77 of file PHTruthSiliconAssociation.h
Referenced by GetNodes(), and process_event().
|
private |
Definition at line 79 of file PHTruthSiliconAssociation.h.
View newest version in sPHENIX GitHub at line 79 of file PHTruthSiliconAssociation.h
Referenced by GetNodes().
|
private |
Definition at line 73 of file PHTruthSiliconAssociation.h.
View newest version in sPHENIX GitHub at line 73 of file PHTruthSiliconAssociation.h
Referenced by copySiliconClustersToCorrectedMap(), GetNodes(), and process_event().
|
private |
Definition at line 75 of file PHTruthSiliconAssociation.h.
View newest version in sPHENIX GitHub at line 75 of file PHTruthSiliconAssociation.h
Referenced by process_event().
|
private |
Definition at line 76 of file PHTruthSiliconAssociation.h.
View newest version in sPHENIX GitHub at line 76 of file PHTruthSiliconAssociation.h