ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <coresoftware/blob/master/offline/packages/trackreco/PHTruthClustering.h>
Public Member Functions | |
PHTruthClustering (const std::string &name="PHTruthClustering") | |
~PHTruthClustering () override | |
int | InitRun (PHCompositeNode *topNode) override |
int | process_event (PHCompositeNode *topNode) override |
int | End (PHCompositeNode *topNode) override |
Called at the end of all processing. | |
void | UsePrimaryTrackClustersOnly (bool flag) |
Public Member Functions inherited from SubsysReco | |
~SubsysReco () override | |
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 | |
int | GetNodes (PHCompositeNode *topNode) |
fetch node pointers | |
std::map< unsigned int, TrkrCluster * > | all_truth_clusters (PHG4Particle *particle) |
std::set< PHG4Hit * > | all_truth_hits (PHG4Particle *particle) |
void | LayerClusterG4Hits (std::set< PHG4Hit * > truth_hits, std::vector< PHG4Hit * > &contributing_hits, std::vector< double > &contributing_hits_energy, std::vector< std::vector< double >> &contributing_hits_entry, std::vector< std::vector< double >> &contributing_hits_exit, float layer, float &x, float &y, float &z, float &t, float &e) |
void | G4ClusterSize (unsigned int layer, std::vector< std::vector< double >> contributing_hits_entry, std::vector< std::vector< double >> contributing_hits_exit, float &g4phisize, float &g4zsize) |
float | line_circle_intersection (float x[], float y[], float z[], float radius) |
unsigned int | getTpcSector (double x, double y) |
unsigned int | getAdcValue (double gedep) |
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 35 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 35 of file PHTruthClustering.h
PHTruthClustering::PHTruthClustering | ( | const std::string & | name = "PHTruthClustering" | ) |
Definition at line 65 of file PHTruthClustering.cc.
View newest version in sPHENIX GitHub at line 65 of file PHTruthClustering.cc
|
override |
Definition at line 70 of file PHTruthClustering.cc.
View newest version in sPHENIX GitHub at line 70 of file PHTruthClustering.cc
|
private |
Definition at line 247 of file PHTruthClustering.cc.
View newest version in sPHENIX GitHub at line 247 of file PHTruthClustering.cc
References _nlayers_intt, _nlayers_maps, _nlayers_mms, _nlayers_tpc, all_truth_hits(), clus_err_rphi, clus_err_z, G4ClusterSize(), InttDefs::genClusKey(), MvtxDefs::genClusKey(), TpcDefs::genClusKey(), MicromegasDefs::genClusterKey(), MicromegasDefs::genHitSetKey(), PHG4Particle::get_track_id(), getAdcValue(), TrkrClusterv2::getError(), getTpcSector(), iclus, G4TTL::layer, LayerClusterG4Hits(), PHWHERE, PHG4InttDefs::SEGMENTATION_PHI, TrkrClusterv2::setAdc(), TrkrClusterv2::setClusKey(), TrkrClusterv2::setError(), TrkrClusterv2::setGlobal(), TrkrClusterv2::setPosition(), TrkrClusterv2::setSize(), and Fun4AllBase::Verbosity().
Referenced by process_event().
|
private |
Definition at line 929 of file PHTruthClustering.cc.
View newest version in sPHENIX GitHub at line 929 of file PHTruthClustering.cc
References _g4hits_maps, _g4hits_mms, _g4hits_svtx, _g4hits_tracker, PHG4Particle::get_track_id(), PHG4Hit::get_trkid(), and PHG4HitContainer::getHits().
Referenced by all_truth_clusters().
|
overridevirtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 1123 of file PHTruthClustering.cc.
View newest version in sPHENIX GitHub at line 1123 of file PHTruthClustering.cc
References Fun4AllReturnCodes::EVENT_OK.
|
private |
Definition at line 722 of file PHTruthClustering.cc.
View newest version in sPHENIX GitHub at line 722 of file PHTruthClustering.cc
References _intt_geom_container, _mvtx_geom_container, _tpc_geom_container, kdfinder::abs(), e, CylinderGeomIntt::find_indices_from_world_location(), CylinderGeomIntt::find_strip_index_values(), CylinderGeom_Mvtx::get_local_from_world_coords(), CylinderGeomIntt::get_local_from_world_coords(), PHG4CylinderCellGeom::get_phibin(), PHG4CylinderCellGeom::get_phistep(), CylinderGeom_Mvtx::get_pixel_from_local_coords(), CylinderGeom_Mvtx::get_pixel_x(), CylinderGeom_Mvtx::get_pixel_z(), PHG4CylinderCellGeom::get_radius(), CylinderGeom_Mvtx::get_sensor_indices_from_world_coords(), CylinderGeomIntt::get_strip_y_spacing(), CylinderGeomIntt::get_strip_z_spacing(), PHG4CylinderCellGeom::get_zbin(), PHG4CylinderCellGeom::get_zstep(), PHG4CylinderCellGeomContainer::GetLayerCellGeom(), PHG4CylinderGeomContainer::GetLayerGeom(), G4CEMCALBEDO::inner_radius, G4DRCALO::outer_radius, radius, and boost::swap().
Referenced by all_truth_clusters().
|
private |
Definition at line 1039 of file PHTruthClustering.cc.
View newest version in sPHENIX GitHub at line 1039 of file PHTruthClustering.cc
Referenced by all_truth_clusters().
|
private |
fetch node pointers
Definition at line 1066 of file PHTruthClustering.cc.
View newest version in sPHENIX GitHub at line 1066 of file PHTruthClustering.cc
References _g4hits_maps, _g4hits_mms, _g4hits_svtx, _g4hits_tracker, _g4truth_container, _intt_geom_container, _mms_geom_container, _mvtx_geom_container, _reco_cluster_map, _tpc_geom_container, Fun4AllReturnCodes::ABORTEVENT, Fun4AllReturnCodes::ABORTRUN, PHCompositeNode::addNode(), Fun4AllReturnCodes::EVENT_OK, PHNodeIterator::findFirst(), PHCompositeNode::PHCompositeNode(), and PHWHERE.
Referenced by InitRun().
|
private |
Definition at line 1032 of file PHTruthClustering.cc.
View newest version in sPHENIX GitHub at line 1032 of file PHTruthClustering.cc
References int(), M_PI, and phi.
Referenced by all_truth_clusters().
|
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 75 of file PHTruthClustering.cc.
View newest version in sPHENIX GitHub at line 75 of file PHTruthClustering.cc
References _nlayers_intt, _nlayers_maps, _nlayers_tpc, clus_err_rphi, clus_err_z, Fun4AllReturnCodes::EVENT_OK, GetNodes(), intt_clus_err_rphi, intt_clus_err_z, G4TTL::layer, mms_layer55_clus_err_rphi, mms_layer55_clus_err_z, mms_layer56_clus_err_rphi, mms_layer56_clus_err_z, mvtx_clus_err_rphi, mvtx_clus_err_z, tpc_inner_clus_err_rphi, tpc_inner_clus_err_z, tpc_outer_clus_err_rphi, tpc_outer_clus_err_z, and Fun4AllBase::Verbosity().
|
private |
Definition at line 439 of file PHTruthClustering.cc.
View newest version in sPHENIX GitHub at line 439 of file PHTruthClustering.cc
References _nlayers_intt, _nlayers_maps, _nlayers_tpc, _tpc_geom_container, PHG4Hit::get_avg_t(), PHG4Hit::get_avg_x(), PHG4Hit::get_avg_y(), PHG4Hit::get_avg_z(), PHG4Hit::get_edep(), PHG4Hit::get_layer(), PHG4CylinderCellGeom::get_radius(), PHG4CylinderCellGeom::get_thickness(), PHG4Hit::get_x(), PHG4Hit::get_y(), PHG4Hit::get_z(), PHG4CylinderCellGeomContainer::GetLayerCellGeom(), int(), line_circle_intersection(), boost::swap(), and Fun4AllBase::Verbosity().
Referenced by all_truth_clusters().
|
private |
Definition at line 996 of file PHTruthClustering.cc.
View newest version in sPHENIX GitHub at line 996 of file PHTruthClustering.cc
References A(), B(), C(), e, PHWHERE, radius, and t.
Referenced by LayerClusterG4Hits().
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 121 of file PHTruthClustering.cc.
View newest version in sPHENIX GitHub at line 121 of file PHTruthClustering.cc
References _hitsets, _primary_clusters_only, _reco_cluster_map, Fun4AllReturnCodes::ABORTRUN, all_truth_clusters(), PHObject::CloneMe(), Fun4AllReturnCodes::EVENT_OK, PHG4Particle::get_parent_id(), PHG4Particle::get_pid(), PHG4Particle::get_primary_id(), PHG4Particle::get_track_id(), TrkrCluster::getAdc(), TrkrCluster::getClusKey(), TrkrClusterContainer::getClusters(), TrkrHitSetContainer::getHitSets(), TrkrDefs::getLayer(), PHG4TruthInfoContainer::GetParticleRange(), PHG4TruthInfoContainer::GetPrimaryParticle(), TrkrCluster::getSize(), TrkrDefs::getTrkrId(), TrkrCluster::getX(), TrkrCluster::getY(), TrkrCluster::getZ(), TrkrCluster::identify(), PHG4TruthInfoContainer::isEmbeded(), it, G4TTL::layer, PHWHERE, TrkrDefs::tpcId, and Fun4AllBase::Verbosity().
|
inline |
Definition at line 45 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 45 of file PHTruthClustering.h
References _primary_clusters_only.
|
private |
Definition at line 72 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 72 of file PHTruthClustering.h
Referenced by all_truth_hits(), and GetNodes().
|
private |
Definition at line 70 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 70 of file PHTruthClustering.h
Referenced by all_truth_hits(), and GetNodes().
|
private |
Definition at line 69 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 69 of file PHTruthClustering.h
Referenced by all_truth_hits(), and GetNodes().
|
private |
Definition at line 71 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 71 of file PHTruthClustering.h
Referenced by all_truth_hits(), and GetNodes().
|
private |
Definition at line 67 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 67 of file PHTruthClustering.h
Referenced by GetNodes().
|
private |
Definition at line 66 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 66 of file PHTruthClustering.h
Referenced by process_event().
|
private |
Definition at line 75 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 75 of file PHTruthClustering.h
Referenced by G4ClusterSize(), and GetNodes().
|
private |
Definition at line 77 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 77 of file PHTruthClustering.h
Referenced by GetNodes().
|
private |
Definition at line 76 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 76 of file PHTruthClustering.h
Referenced by G4ClusterSize(), and GetNodes().
|
private |
Definition at line 80 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 80 of file PHTruthClustering.h
Referenced by all_truth_clusters(), InitRun(), and LayerClusterG4Hits().
|
private |
Definition at line 79 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 79 of file PHTruthClustering.h
Referenced by all_truth_clusters(), InitRun(), and LayerClusterG4Hits().
|
private |
Definition at line 82 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 82 of file PHTruthClustering.h
Referenced by all_truth_clusters().
|
private |
Definition at line 81 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 81 of file PHTruthClustering.h
Referenced by all_truth_clusters(), InitRun(), and LayerClusterG4Hits().
|
private |
Definition at line 100 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 100 of file PHTruthClustering.h
Referenced by process_event(), and UsePrimaryTrackClustersOnly().
|
private |
Definition at line 65 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 65 of file PHTruthClustering.h
Referenced by GetNodes(), and process_event().
|
private |
Definition at line 74 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 74 of file PHTruthClustering.h
Referenced by G4ClusterSize(), GetNodes(), and LayerClusterG4Hits().
|
private |
Definition at line 84 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 84 of file PHTruthClustering.h
Referenced by all_truth_clusters(), and InitRun().
|
private |
Definition at line 85 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 85 of file PHTruthClustering.h
Referenced by all_truth_clusters(), and InitRun().
|
private |
Definition at line 63 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 63 of file PHTruthClustering.h
Referenced by all_truth_clusters().
|
private |
Definition at line 89 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 89 of file PHTruthClustering.h
Referenced by InitRun().
|
private |
Definition at line 90 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 90 of file PHTruthClustering.h
Referenced by InitRun().
|
private |
Definition at line 95 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 95 of file PHTruthClustering.h
Referenced by InitRun().
|
private |
Definition at line 96 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 96 of file PHTruthClustering.h
Referenced by InitRun().
|
private |
Definition at line 97 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 97 of file PHTruthClustering.h
Referenced by InitRun().
|
private |
Definition at line 98 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 98 of file PHTruthClustering.h
Referenced by InitRun().
|
private |
Definition at line 87 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 87 of file PHTruthClustering.h
Referenced by InitRun().
|
private |
Definition at line 88 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 88 of file PHTruthClustering.h
Referenced by InitRun().
|
private |
Definition at line 91 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 91 of file PHTruthClustering.h
Referenced by InitRun().
|
private |
Definition at line 92 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 92 of file PHTruthClustering.h
Referenced by InitRun().
|
private |
Definition at line 93 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 93 of file PHTruthClustering.h
Referenced by InitRun().
|
private |
Definition at line 94 of file PHTruthClustering.h.
View newest version in sPHENIX GitHub at line 94 of file PHTruthClustering.h
Referenced by InitRun().