EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHTruthSiliconAssociation Class Reference

#include <fun4all_coresoftware/blob/master/offline/packages/trackreco/PHTruthSiliconAssociation.h>

+ Inheritance diagram for PHTruthSiliconAssociation:
+ Collaboration diagram for PHTruthSiliconAssociation:

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::cluskeygetSiliconClustersFromParticle (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")
 

Detailed Description

Definition at line 27 of file PHTruthSiliconAssociation.h.

View newest version in sPHENIX GitHub at line 27 of file PHTruthSiliconAssociation.h

Constructor & Destructor Documentation

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

PHTruthSiliconAssociation::~PHTruthSiliconAssociation ( )
override

Definition at line 41 of file PHTruthSiliconAssociation.cc.

View newest version in sPHENIX GitHub at line 41 of file PHTruthSiliconAssociation.cc

Member Function Documentation

void PHTruthSiliconAssociation::copySiliconClustersToCorrectedMap ( )
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(), and TrkrCluster::setSubSurfKey().

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int PHTruthSiliconAssociation::End ( PHCompositeNode topNode)
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.

int PHTruthSiliconAssociation::EndRun ( const int  runnumber)
overridevirtual

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.

std::vector< PHG4Particle * > PHTruthSiliconAssociation::getG4PrimaryParticle ( SvtxTrack track)
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int PHTruthSiliconAssociation::GetNodes ( PHCompositeNode topNode)
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::set< TrkrDefs::cluskey > PHTruthSiliconAssociation::getSiliconClustersFromParticle ( PHG4Particle g4particle)
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int PHTruthSiliconAssociation::Init ( PHCompositeNode )
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.

int PHTruthSiliconAssociation::InitRun ( PHCompositeNode )
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().

+ Here is the call graph for this function:

void PHTruthSiliconAssociation::Print ( const std::string &  what = "ALL") const
overridevirtual

Print out some info about this module.

Parameters
whatcan 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

int PHTruthSiliconAssociation::process_event ( PHCompositeNode )
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, rand, 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().

+ Here is the call graph for this function:

int PHTruthSiliconAssociation::Reset ( PHCompositeNode )
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.

int PHTruthSiliconAssociation::ResetEvent ( PHCompositeNode topNode)
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.

Member Data Documentation

AssocInfoContainer* PHTruthSiliconAssociation::_assoc_container {nullptr}
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().

TrkrClusterHitAssoc* PHTruthSiliconAssociation::_cluster_hit_map {nullptr}
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().

TrkrClusterContainer* PHTruthSiliconAssociation::_cluster_map {nullptr}
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().

TrkrClusterContainer* PHTruthSiliconAssociation::_corrected_cluster_map {nullptr}
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().

PHG4HitContainer* PHTruthSiliconAssociation::_g4hits_intt {nullptr}
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().

PHG4HitContainer* PHTruthSiliconAssociation::_g4hits_mvtx {nullptr}
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().

PHG4HitContainer* PHTruthSiliconAssociation::_g4hits_tpc {nullptr}
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().

PHG4TruthInfoContainer* PHTruthSiliconAssociation::_g4truth_container {nullptr}
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().

TrkrHitTruthAssoc* PHTruthSiliconAssociation::_hit_truth_map {nullptr}
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().

TrkrHitSetContainer* PHTruthSiliconAssociation::_hitsets {nullptr}
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().

TpcSeedTrackMap* PHTruthSiliconAssociation::_seed_track_map {nullptr}
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().

std::string PHTruthSiliconAssociation::_tpcseed_track_map_name = "TpcSeedTrackMap"
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().

SvtxTrackMap* PHTruthSiliconAssociation::_track_map {nullptr}
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().

SvtxTrack* PHTruthSiliconAssociation::_tracklet {nullptr}
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().

SvtxVertexMap* PHTruthSiliconAssociation::_vertex_map {nullptr}
private

Definition at line 76 of file PHTruthSiliconAssociation.h.

View newest version in sPHENIX GitHub at line 76 of file PHTruthSiliconAssociation.h


The documentation for this class was generated from the following files: