Analysis Software
Documentation for sPHENIX simulation software
|
#include <coresoftware/blob/master/simulation/g4simulation/g4eval/PHG4DstCompressReco.h>
Public Member Functions | |
PHG4DstCompressReco (const std::string &name="PHG4DstCompressReco") | |
~PHG4DstCompressReco () override | |
int | InitRun (PHCompositeNode *topNode) override |
run initialization | |
int | process_event (PHCompositeNode *topNode) override |
event processing | |
void | AddHitContainer (const std::string &name) |
void | AddCellContainer (const std::string &name) |
void | AddTowerContainer (const std::string &name) |
void | KeepRecoTrackMatchedParticles (bool b=true) |
whether to compress tracker hits based on truth association table produced by PHG4DstCompressReco | |
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 | Init (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 | SearchG4HitNodes (PHCompositeNode *topNode) |
Private Attributes | |
bool | m_keepRecoTrackMatchedParticles = false |
PHG4TruthInfoContainer * | _truth_info = nullptr |
PHG4ParticleSvtxMap * | _truthRecoMap = nullptr |
SvtxPHG4ParticleMap * | _recoTruthMap = nullptr |
std::set< std::string > | _compress_g4hit_names |
std::set< std::string > | _compress_g4cell_names |
std::set< std::string > | _compress_tower_names |
std::set< PHG4CellContainer * > | _g4cells |
std::set< PHG4HitContainer * > | _g4hits |
std::set< PHG4HitContainer * > | _keep_g4hits |
std::set< RawTowerContainer * > | _towers |
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 19 of file PHG4DstCompressReco.h.
View newest version in sPHENIX GitHub at line 19 of file PHG4DstCompressReco.h
PHG4DstCompressReco::PHG4DstCompressReco | ( | const std::string & | name = "PHG4DstCompressReco" | ) |
Definition at line 30 of file PHG4DstCompressReco.cc.
View newest version in sPHENIX GitHub at line 30 of file PHG4DstCompressReco.cc
|
inlineoverride |
Definition at line 23 of file PHG4DstCompressReco.h.
View newest version in sPHENIX GitHub at line 23 of file PHG4DstCompressReco.h
|
inline |
Definition at line 32 of file PHG4DstCompressReco.h.
View newest version in sPHENIX GitHub at line 32 of file PHG4DstCompressReco.h
References _compress_g4cell_names.
Referenced by ShowerCompress().
|
inline |
Definition at line 31 of file PHG4DstCompressReco.h.
View newest version in sPHENIX GitHub at line 31 of file PHG4DstCompressReco.h
References _compress_g4hit_names.
Referenced by ShowerCompress().
|
inline |
Definition at line 33 of file PHG4DstCompressReco.h.
View newest version in sPHENIX GitHub at line 33 of file PHG4DstCompressReco.h
References _compress_tower_names.
Referenced by ShowerCompress().
|
overridevirtual |
run initialization
Reimplemented from SubsysReco.
Definition at line 35 of file PHG4DstCompressReco.cc.
View newest version in sPHENIX GitHub at line 35 of file PHG4DstCompressReco.cc
References _compress_g4cell_names, _compress_tower_names, _g4cells, _recoTruthMap, _towers, _truth_info, _truthRecoMap, Fun4AllReturnCodes::ABORTRUN, Fun4AllReturnCodes::EVENT_OK, m_keepRecoTrackMatchedParticles, perf_headwind::name, and SearchG4HitNodes().
|
inline |
whether to compress tracker hits based on truth association table produced by PHG4DstCompressReco
Definition at line 35 of file PHG4DstCompressReco.h.
View newest version in sPHENIX GitHub at line 35 of file PHG4DstCompressReco.h
References KFPMath::b, and m_keepRecoTrackMatchedParticles.
|
overridevirtual |
event processing
Reimplemented from SubsysReco.
Definition at line 88 of file PHG4DstCompressReco.cc.
View newest version in sPHENIX GitHub at line 88 of file PHG4DstCompressReco.cc
References _g4cells, _g4hits, _keep_g4hits, _recoTruthMap, _towers, _truth_info, _truthRecoMap, RawTower::clear_g4cells(), PHG4Shower::clear_g4hit_id(), PHG4Shower::clear_g4particle_id(), PHG4Shower::clear_g4vertex_id(), PHG4TruthInfoContainer::delete_particle(), PHG4TruthInfoContainer::delete_vtx(), Fun4AllReturnCodes::EVENT_OK, PHG4Hit::get_trkid(), PHG4Particle::get_vtx_id(), PHG4TruthInfoContainer::GetSecondaryParticleRange(), PHG4TruthInfoContainer::GetSecondaryVtxRange(), PHG4TruthInfoContainer::GetShowerRange(), and particle.
|
private |
Definition at line 218 of file PHG4DstCompressReco.cc.
View newest version in sPHENIX GitHub at line 218 of file PHG4DstCompressReco.cc
References _compress_g4hit_names, _g4hits, _keep_g4hits, PHDataNode< T >::getData(), and PHNodeIterator::ls().
Referenced by InitRun().
|
private |
Definition at line 48 of file PHG4DstCompressReco.h.
View newest version in sPHENIX GitHub at line 48 of file PHG4DstCompressReco.h
Referenced by AddCellContainer(), and InitRun().
|
private |
Definition at line 47 of file PHG4DstCompressReco.h.
View newest version in sPHENIX GitHub at line 47 of file PHG4DstCompressReco.h
Referenced by AddHitContainer(), and SearchG4HitNodes().
|
private |
Definition at line 49 of file PHG4DstCompressReco.h.
View newest version in sPHENIX GitHub at line 49 of file PHG4DstCompressReco.h
Referenced by AddTowerContainer(), and InitRun().
|
private |
Definition at line 51 of file PHG4DstCompressReco.h.
View newest version in sPHENIX GitHub at line 51 of file PHG4DstCompressReco.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 52 of file PHG4DstCompressReco.h.
View newest version in sPHENIX GitHub at line 52 of file PHG4DstCompressReco.h
Referenced by process_event(), and SearchG4HitNodes().
|
private |
Definition at line 53 of file PHG4DstCompressReco.h.
View newest version in sPHENIX GitHub at line 53 of file PHG4DstCompressReco.h
Referenced by process_event(), and SearchG4HitNodes().
|
private |
Definition at line 46 of file PHG4DstCompressReco.h.
View newest version in sPHENIX GitHub at line 46 of file PHG4DstCompressReco.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 55 of file PHG4DstCompressReco.h.
View newest version in sPHENIX GitHub at line 55 of file PHG4DstCompressReco.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 44 of file PHG4DstCompressReco.h.
View newest version in sPHENIX GitHub at line 44 of file PHG4DstCompressReco.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 45 of file PHG4DstCompressReco.h.
View newest version in sPHENIX GitHub at line 45 of file PHG4DstCompressReco.h
Referenced by InitRun(), and process_event().
|
private |
whether to compress tracker hits based on truth association table produced by PHG4DstCompressReco default to false
Definition at line 42 of file PHG4DstCompressReco.h.
View newest version in sPHENIX GitHub at line 42 of file PHG4DstCompressReco.h
Referenced by InitRun(), and KeepRecoTrackMatchedParticles().