Analysis Software
Documentation for sPHENIX simulation software
|
#include <coresoftware/blob/master/simulation/g4simulation/g4eval/FillTruthRecoMatchTree.h>
Public Member Functions | |
FillTruthRecoMatchTree (bool _fill_clusters=true, bool _fill_svtxnomatch=false, float _cluster_nzwidths=0.5, float _cluster_nphiwidths=0.5, const std::string &tfile_name="trackclusmatch.root") | |
virtual | ~FillTruthRecoMatchTree () |
int | Init (PHCompositeNode *) override |
int | InitRun (PHCompositeNode *topNode) override |
int | process_event (PHCompositeNode *) override |
int | End (PHCompositeNode *topNode) override |
Called at the end of all processing. | |
void | clear_clusvecs (const std::string &tag="") |
void | print_mvtx_diagnostics () |
Public Member Functions inherited from SubsysReco | |
~SubsysReco () override | |
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. | |
Private Member Functions | |
int | createNodes (PHCompositeNode *topNode) |
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 71 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 71 of file FillTruthRecoMatchTree.h
FillTruthRecoMatchTree::FillTruthRecoMatchTree | ( | bool | _fill_clusters = true , |
bool | _fill_svtxnomatch = false , |
||
float | _cluster_nzwidths = 0.5 , |
||
float | _cluster_nphiwidths = 0.5 , |
||
const std::string & | tfile_name = "trackclusmatch.root" |
||
) |
Definition at line 31 of file FillTruthRecoMatchTree.cc.
View newest version in sPHENIX GitHub at line 31 of file FillTruthRecoMatchTree.cc
|
virtual |
void FillTruthRecoMatchTree::clear_clusvecs | ( | const std::string & | tag = "" | ) |
Definition at line 564 of file FillTruthRecoMatchTree.cc.
View newest version in sPHENIX GitHub at line 564 of file FillTruthRecoMatchTree.cc
References b_clus_layer, b_clus_nphibins, b_clus_ntbins, b_clus_r, b_clus_x, b_clus_y, b_clus_z, b_clusmatch, and ambiguity_solver_full_chain::x.
Referenced by process_event().
|
private |
Definition at line 122 of file FillTruthRecoMatchTree.cc.
View newest version in sPHENIX GitHub at line 122 of file FillTruthRecoMatchTree.cc
References Fun4AllReturnCodes::ABORTEVENT, PHCompositeNode::addNode(), Fun4AllReturnCodes::EVENT_OK, PHNodeIterator::findFirst(), m_EmbRecoMatchContainer, m_PHG4TruthInfoContainer, m_SvtxTrackMap, m_TrkrTruthTrackContainer, and PHWHERE.
Referenced by InitRun().
|
overridevirtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 547 of file FillTruthRecoMatchTree.cc.
View newest version in sPHENIX GitHub at line 547 of file FillTruthRecoMatchTree.cc
References PHTFileServer::cd(), Fun4AllReturnCodes::EVENT_OK, PHTFileServer::get(), h2_G4_nPixelsPhi, h2_G4_nPixelsZ, h2_Sv_nPixelsPhi, h2_Sv_nPixelsZ, m_outfile_name, m_ttree, PHWHERE, and Fun4AllBase::Verbosity().
|
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 94 of file FillTruthRecoMatchTree.cc.
View newest version in sPHENIX GitHub at line 94 of file FillTruthRecoMatchTree.cc
References Fun4AllReturnCodes::EVENT_OK, PHCompositeNode::print(), and Fun4AllBase::Verbosity().
|
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 106 of file FillTruthRecoMatchTree.cc.
View newest version in sPHENIX GitHub at line 106 of file FillTruthRecoMatchTree.cc
References Fun4AllReturnCodes::ABORTEVENT, Fun4AllReturnCodes::ABORTRUN, createNodes(), Fun4AllReturnCodes::EVENT_OK, G4Eval::TrkrClusterComparer::init(), and m_cluster_comp.
void FillTruthRecoMatchTree::print_mvtx_diagnostics | ( | ) |
Definition at line 481 of file FillTruthRecoMatchTree.cc.
View newest version in sPHENIX GitHub at line 481 of file FillTruthRecoMatchTree.cc
References G4Eval::ClusCntr::addClusKeys(), entry, G4Eval::ClusCntr::get_PHG4_clusters(), G4Eval::ClusCntr::get_SVTX_clusters(), TrkrClusterContainer::getClusters(), TrkrClusterContainer::getHitSetKeys(), TrkrDefs::getLayer(), TrkrTruthTrackContainer::getMap(), m_cluscntr, m_SvtxTrackMap, m_TrkrTruthTrackContainer, G4Eval::ClusCntr::phg4_cntclus(), physmon_track_finding_ttbar::r, SvtxTrackMap::size(), and G4Eval::ClusCntr::svtx_cntclus().
Referenced by process_event().
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 195 of file FillTruthRecoMatchTree.cc.
View newest version in sPHENIX GitHub at line 195 of file FillTruthRecoMatchTree.cc
References G4Eval::ClusCntr::addClusKeys(), b_clus_layer, b_clus_nphibins, b_clus_ntbins, b_clus_r, b_clus_x, b_clus_y, b_clus_z, b_clusmatch, b_is_g4track, b_is_matched, b_is_Svtrack, b_matchrat, b_matchrat_intt, b_matchrat_mvtx, b_matchrat_tpc, b_nclus, b_nclusintt, b_nclusmvtx, b_nclustpc, b_trackid, b_trketa, b_trkphi, b_trkpt, clear_clusvecs(), G4Eval::ClusCntr::clusloc_matched(), clusters, Fun4AllReturnCodes::EVENT_OK, G4Eval::ClusCntr::find_matches(), SvtxTrackMap::get(), G4Eval::ClusCntr::get_PHG4_clusters(), G4Eval::ClusCntr::get_SVTX_clusters(), TrkrClusterContainer::getClusters(), TrkrClusterContainer::getHitSetKeys(), TrkrDefs::getLayer(), TrkrTruthTrackContainer::getMap(), EmbRecoMatchContainer::getMatches(), PHG4TruthInfoContainer::GetPrimaryParticleRange(), TrkrTruthTrackContainer::getTruthTrack(), h2_G4_nPixelsPhi, h2_G4_nPixelsZ, h2_Sv_nPixelsPhi, h2_Sv_nPixelsZ, EmbRecoMatchContainer::ids_TruthUnmatched(), layer, loc, m_cluscntr, m_EmbRecoMatchContainer, m_fill_clusters, m_fill_SvU, m_PHG4TruthInfoContainer, m_SvtxTrackMap, m_TrkrTruthTrackContainer, m_ttree, nevent, nphg4, nphg4_part, nsvtx, ntrackmatches, G4Eval::ClusCntr::phg4_clusloc_all(), G4Eval::ClusCntr::phg4_clusloc_unmatched(), G4Eval::ClusCntr::phg4_cnt_matchedclus(), G4Eval::ClusCntr::phg4_cntclus(), print_mvtx_diagnostics(), SvtxTrackMap::size(), G4Eval::ClusCntr::svtx_clusloc_all(), G4Eval::ClusCntr::svtx_clusloc_unmatched(), G4Eval::ClusCntr::svtx_cntclus(), G4Eval::unmatchedSvtxTrkIds(), Fun4AllBase::Verbosity(), ambiguity_solver_full_chain::x, and y.
|
private |
Definition at line 157 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 157 of file FillTruthRecoMatchTree.h
Referenced by clear_clusvecs(), and process_event().
|
private |
Definition at line 158 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 158 of file FillTruthRecoMatchTree.h
Referenced by clear_clusvecs(), and process_event().
|
private |
Definition at line 159 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 159 of file FillTruthRecoMatchTree.h
Referenced by clear_clusvecs(), and process_event().
|
private |
Definition at line 156 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 156 of file FillTruthRecoMatchTree.h
Referenced by clear_clusvecs(), and process_event().
|
private |
Definition at line 153 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 153 of file FillTruthRecoMatchTree.h
Referenced by clear_clusvecs(), and process_event().
|
private |
Definition at line 154 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 154 of file FillTruthRecoMatchTree.h
Referenced by clear_clusvecs(), and process_event().
|
private |
Definition at line 155 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 155 of file FillTruthRecoMatchTree.h
Referenced by clear_clusvecs(), and process_event().
|
private |
Definition at line 152 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 152 of file FillTruthRecoMatchTree.h
Referenced by clear_clusvecs(), and process_event().
|
private |
Definition at line 134 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 134 of file FillTruthRecoMatchTree.h
Referenced by process_event().
|
private |
Definition at line 136 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 136 of file FillTruthRecoMatchTree.h
Referenced by process_event().
|
private |
Definition at line 135 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 135 of file FillTruthRecoMatchTree.h
Referenced by process_event().
|
private |
Definition at line 147 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 147 of file FillTruthRecoMatchTree.h
Referenced by process_event().
|
private |
Definition at line 148 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 148 of file FillTruthRecoMatchTree.h
Referenced by process_event().
|
private |
Definition at line 149 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 149 of file FillTruthRecoMatchTree.h
Referenced by process_event().
|
private |
Definition at line 150 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 150 of file FillTruthRecoMatchTree.h
Referenced by process_event().
|
private |
Definition at line 142 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 142 of file FillTruthRecoMatchTree.h
Referenced by process_event().
|
private |
Definition at line 145 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 145 of file FillTruthRecoMatchTree.h
Referenced by process_event().
|
private |
Definition at line 144 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 144 of file FillTruthRecoMatchTree.h
Referenced by process_event().
|
private |
Definition at line 143 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 143 of file FillTruthRecoMatchTree.h
Referenced by process_event().
|
private |
Definition at line 133 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 133 of file FillTruthRecoMatchTree.h
Referenced by process_event().
|
private |
Definition at line 140 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 140 of file FillTruthRecoMatchTree.h
Referenced by process_event().
|
private |
Definition at line 139 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 139 of file FillTruthRecoMatchTree.h
Referenced by process_event().
|
private |
Definition at line 138 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 138 of file FillTruthRecoMatchTree.h
Referenced by process_event().
|
private |
Definition at line 114 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 114 of file FillTruthRecoMatchTree.h
|
private |
Definition at line 127 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 127 of file FillTruthRecoMatchTree.h
Referenced by End(), and process_event().
|
private |
Definition at line 128 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 128 of file FillTruthRecoMatchTree.h
Referenced by End(), and process_event().
|
private |
Definition at line 129 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 129 of file FillTruthRecoMatchTree.h
Referenced by End(), and process_event().
|
private |
Definition at line 130 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 130 of file FillTruthRecoMatchTree.h
Referenced by End(), and process_event().
|
private |
Definition at line 92 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 92 of file FillTruthRecoMatchTree.h
Referenced by print_mvtx_diagnostics(), and process_event().
|
private |
Definition at line 91 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 91 of file FillTruthRecoMatchTree.h
Referenced by InitRun().
|
private |
Definition at line 95 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 95 of file FillTruthRecoMatchTree.h
Referenced by createNodes(), and process_event().
|
private |
Definition at line 104 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 104 of file FillTruthRecoMatchTree.h
Referenced by process_event().
|
private |
Definition at line 105 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 105 of file FillTruthRecoMatchTree.h
Referenced by process_event().
|
private |
Definition at line 106 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 106 of file FillTruthRecoMatchTree.h
Referenced by End().
|
private |
Definition at line 96 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 96 of file FillTruthRecoMatchTree.h
Referenced by createNodes(), and process_event().
|
private |
Definition at line 97 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 97 of file FillTruthRecoMatchTree.h
Referenced by createNodes(), print_mvtx_diagnostics(), and process_event().
|
private |
Definition at line 100 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 100 of file FillTruthRecoMatchTree.h
Referenced by createNodes(), print_mvtx_diagnostics(), and process_event().
|
private |
Definition at line 103 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 103 of file FillTruthRecoMatchTree.h
Referenced by End(), and process_event().
|
private |
Definition at line 109 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 109 of file FillTruthRecoMatchTree.h
Referenced by process_event().
|
private |
Definition at line 110 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 110 of file FillTruthRecoMatchTree.h
Referenced by process_event().
|
private |
Definition at line 113 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 113 of file FillTruthRecoMatchTree.h
Referenced by process_event().
|
private |
Definition at line 111 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 111 of file FillTruthRecoMatchTree.h
Referenced by process_event().
|
private |
Definition at line 112 of file FillTruthRecoMatchTree.h.
View newest version in sPHENIX GitHub at line 112 of file FillTruthRecoMatchTree.h
Referenced by process_event().