Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FillClusMatchTree Class Reference

#include <coresoftware/blob/master/simulation/g4simulation/g4eval/FillClusMatchTree.h>

+ Inheritance diagram for FillClusMatchTree:
+ Collaboration diagram for FillClusMatchTree:

Public Member Functions

 FillClusMatchTree (TrkrClusterIsMatcher *_ismatcher, const std::string &tfile_name="trackclusmatch.root", bool _fill_clusters=true, bool _fill_clusverbose=true, bool _fill_svtxnomatch=false)
 
virtual ~FillClusMatchTree ()
 
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.
 

Public Attributes

TrkrClusterIsMatcherm_ismatcher
 
bool m_fill_clusters
 
bool m_fill_clusverbose
 
bool m_fill_SvUnmatched
 

Private Types

using VecVecInt = std::vector< std::vector< int >>
 

Private Member Functions

int createNodes (PHCompositeNode *topNode)
 
void fill_cluster_branches (TrkrClusLoc &, bool isPHG4=true)
 

Private Attributes

TrackClusEvaluator m_TCEval
 
EmbRecoMatchContainerm_EmbRecoMatchContainer {nullptr}
 
PHG4TruthInfoContainerm_PHG4TruthInfoContainer {nullptr}
 
SvtxTrackMapm_SvtxTrackMap {nullptr}
 
TrkrTruthTrackContainerm_TrkrTruthTrackContainer {nullptr}
 
ClusHitsVerbosem_PHG4ClusHitVerb {nullptr}
 
ClusHitsVerbosem_SvtxClusHitVerb {nullptr}
 
TTree * m_ttree
 
std::string m_outfile_name
 
int nevent {-1}
 
int nphg4 {0}
 
int nsvtx {0}
 
int ntrackmatches {0}
 
int nphg4_part {0}
 
float centrality {0.}
 
TH2D * h2_G4_nPixelsPhi
 
TH2D * h2_G4_nPixelsZ
 
TH2D * h2_Sv_nPixelsPhi
 
TH2D * h2_Sv_nPixelsZ
 
int b_trackid
 
bool b_is_g4track
 
bool b_is_Svtrack
 
bool b_is_matched
 
float b_trkpt
 
float b_trkphi
 
float b_trketa
 
int b_nclus {}
 
int b_nclustpc {}
 
int b_nclusmvtx {}
 
int b_nclusintt {}
 
float b_matchrat {}
 
float b_matchrat_intt {}
 
float b_matchrat_mvtx {}
 
float b_matchrat_tpc {}
 
std::vector< bool > b_clusmatch {}
 
std::vector< float > b_clus_x {}
 
std::vector< float > b_clus_y {}
 
std::vector< float > b_clus_z {}
 
std::vector< float > b_clus_r {}
 
std::vector< int > b_clus_layer {}
 
std::vector< float > b_clus_lphi {}
 
std::vector< float > b_clus_lphisize {}
 
std::vector< float > b_clus_lz {}
 
std::vector< float > b_clus_lzsize {}
 
VecVecInt b_phibins
 
VecVecInt b_phibins_cut
 
VecVecInt b_zbins
 
VecVecInt b_zbins_cut
 
VecVecInt b_phibinsE
 
VecVecInt b_phibinsE_cut
 
VecVecInt b_zbinsE
 
VecVecInt b_zbinsE_cut
 

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")
 

Detailed Description

Definition at line 74 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 74 of file FillClusMatchTree.h

Member Typedef Documentation

using FillClusMatchTree::VecVecInt = std::vector<std::vector<int>>
private

Definition at line 182 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 182 of file FillClusMatchTree.h

Constructor & Destructor Documentation

FillClusMatchTree::FillClusMatchTree ( TrkrClusterIsMatcher _ismatcher,
const std::string &  tfile_name = "trackclusmatch.root",
bool  _fill_clusters = true,
bool  _fill_clusverbose = true,
bool  _fill_svtxnomatch = false 
)

Definition at line 34 of file FillClusMatchTree.cc.

View newest version in sPHENIX GitHub at line 34 of file FillClusMatchTree.cc

virtual FillClusMatchTree::~FillClusMatchTree ( )
virtual

Member Function Documentation

void FillClusMatchTree::clear_clusvecs ( const std::string &  tag = "")
int FillClusMatchTree::createNodes ( PHCompositeNode topNode)
private
int FillClusMatchTree::End ( PHCompositeNode )
overridevirtual

Called at the end of all processing.

Reimplemented from SubsysReco.

void FillClusMatchTree::fill_cluster_branches ( TrkrClusLoc ,
bool  isPHG4 = true 
)
private
int FillClusMatchTree::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.

int FillClusMatchTree::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.

void FillClusMatchTree::print_mvtx_diagnostics ( )
int FillClusMatchTree::process_event ( PHCompositeNode )
overridevirtual

Called for each event. This is where you do the real work.

Reimplemented from SubsysReco.

Member Data Documentation

std::vector<int> FillClusMatchTree::b_clus_layer {}
private

Definition at line 171 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 171 of file FillClusMatchTree.h

std::vector<float> FillClusMatchTree::b_clus_lphi {}
private

Definition at line 175 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 175 of file FillClusMatchTree.h

std::vector<float> FillClusMatchTree::b_clus_lphisize {}
private

Definition at line 176 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 176 of file FillClusMatchTree.h

std::vector<float> FillClusMatchTree::b_clus_lz {}
private

Definition at line 177 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 177 of file FillClusMatchTree.h

std::vector<float> FillClusMatchTree::b_clus_lzsize {}
private

Definition at line 178 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 178 of file FillClusMatchTree.h

std::vector<float> FillClusMatchTree::b_clus_r {}
private

Definition at line 170 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 170 of file FillClusMatchTree.h

std::vector<float> FillClusMatchTree::b_clus_x {}
private

Definition at line 167 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 167 of file FillClusMatchTree.h

std::vector<float> FillClusMatchTree::b_clus_y {}
private

Definition at line 168 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 168 of file FillClusMatchTree.h

std::vector<float> FillClusMatchTree::b_clus_z {}
private

Definition at line 169 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 169 of file FillClusMatchTree.h

std::vector<bool> FillClusMatchTree::b_clusmatch {}
private

Definition at line 166 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 166 of file FillClusMatchTree.h

bool FillClusMatchTree::b_is_g4track
private

Definition at line 148 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 148 of file FillClusMatchTree.h

bool FillClusMatchTree::b_is_matched
private

Definition at line 150 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 150 of file FillClusMatchTree.h

bool FillClusMatchTree::b_is_Svtrack
private

Definition at line 149 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 149 of file FillClusMatchTree.h

float FillClusMatchTree::b_matchrat {}
private

Definition at line 161 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 161 of file FillClusMatchTree.h

float FillClusMatchTree::b_matchrat_intt {}
private

Definition at line 162 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 162 of file FillClusMatchTree.h

float FillClusMatchTree::b_matchrat_mvtx {}
private

Definition at line 163 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 163 of file FillClusMatchTree.h

float FillClusMatchTree::b_matchrat_tpc {}
private

Definition at line 164 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 164 of file FillClusMatchTree.h

int FillClusMatchTree::b_nclus {}
private

Definition at line 156 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 156 of file FillClusMatchTree.h

int FillClusMatchTree::b_nclusintt {}
private

Definition at line 159 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 159 of file FillClusMatchTree.h

int FillClusMatchTree::b_nclusmvtx {}
private

Definition at line 158 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 158 of file FillClusMatchTree.h

int FillClusMatchTree::b_nclustpc {}
private

Definition at line 157 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 157 of file FillClusMatchTree.h

VecVecInt FillClusMatchTree::b_phibins
private

Definition at line 184 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 184 of file FillClusMatchTree.h

VecVecInt FillClusMatchTree::b_phibins_cut
private

Definition at line 185 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 185 of file FillClusMatchTree.h

VecVecInt FillClusMatchTree::b_phibinsE
private

Definition at line 189 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 189 of file FillClusMatchTree.h

VecVecInt FillClusMatchTree::b_phibinsE_cut
private

Definition at line 190 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 190 of file FillClusMatchTree.h

int FillClusMatchTree::b_trackid
private

Definition at line 147 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 147 of file FillClusMatchTree.h

float FillClusMatchTree::b_trketa
private

Definition at line 154 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 154 of file FillClusMatchTree.h

float FillClusMatchTree::b_trkphi
private

Definition at line 153 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 153 of file FillClusMatchTree.h

float FillClusMatchTree::b_trkpt
private

Definition at line 152 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 152 of file FillClusMatchTree.h

VecVecInt FillClusMatchTree::b_zbins
private

Definition at line 186 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 186 of file FillClusMatchTree.h

VecVecInt FillClusMatchTree::b_zbins_cut
private

Definition at line 187 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 187 of file FillClusMatchTree.h

VecVecInt FillClusMatchTree::b_zbinsE
private

Definition at line 191 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 191 of file FillClusMatchTree.h

VecVecInt FillClusMatchTree::b_zbinsE_cut
private

Definition at line 192 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 192 of file FillClusMatchTree.h

float FillClusMatchTree::centrality {0.}
private

Definition at line 128 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 128 of file FillClusMatchTree.h

TH2D* FillClusMatchTree::h2_G4_nPixelsPhi
private

Definition at line 141 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 141 of file FillClusMatchTree.h

TH2D* FillClusMatchTree::h2_G4_nPixelsZ
private

Definition at line 142 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 142 of file FillClusMatchTree.h

TH2D* FillClusMatchTree::h2_Sv_nPixelsPhi
private

Definition at line 143 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 143 of file FillClusMatchTree.h

TH2D* FillClusMatchTree::h2_Sv_nPixelsZ
private

Definition at line 144 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 144 of file FillClusMatchTree.h

EmbRecoMatchContainer* FillClusMatchTree::m_EmbRecoMatchContainer {nullptr}
private

Definition at line 103 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 103 of file FillClusMatchTree.h

bool FillClusMatchTree::m_fill_clusters

Definition at line 117 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 117 of file FillClusMatchTree.h

bool FillClusMatchTree::m_fill_clusverbose

Definition at line 118 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 118 of file FillClusMatchTree.h

bool FillClusMatchTree::m_fill_SvUnmatched

Definition at line 119 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 119 of file FillClusMatchTree.h

TrkrClusterIsMatcher* FillClusMatchTree::m_ismatcher

Definition at line 96 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 96 of file FillClusMatchTree.h

std::string FillClusMatchTree::m_outfile_name
private

Definition at line 115 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 115 of file FillClusMatchTree.h

ClusHitsVerbose* FillClusMatchTree::m_PHG4ClusHitVerb {nullptr}
private

Definition at line 107 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 107 of file FillClusMatchTree.h

PHG4TruthInfoContainer* FillClusMatchTree::m_PHG4TruthInfoContainer {nullptr}
private

Definition at line 104 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 104 of file FillClusMatchTree.h

ClusHitsVerbose* FillClusMatchTree::m_SvtxClusHitVerb {nullptr}
private

Definition at line 108 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 108 of file FillClusMatchTree.h

SvtxTrackMap* FillClusMatchTree::m_SvtxTrackMap {nullptr}
private

Definition at line 105 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 105 of file FillClusMatchTree.h

TrackClusEvaluator FillClusMatchTree::m_TCEval
private

Definition at line 100 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 100 of file FillClusMatchTree.h

TrkrTruthTrackContainer* FillClusMatchTree::m_TrkrTruthTrackContainer {nullptr}
private

Definition at line 106 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 106 of file FillClusMatchTree.h

TTree* FillClusMatchTree::m_ttree
private

Definition at line 114 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 114 of file FillClusMatchTree.h

int FillClusMatchTree::nevent {-1}
private

Definition at line 123 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 123 of file FillClusMatchTree.h

int FillClusMatchTree::nphg4 {0}
private

Definition at line 124 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 124 of file FillClusMatchTree.h

int FillClusMatchTree::nphg4_part {0}
private

Definition at line 127 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 127 of file FillClusMatchTree.h

int FillClusMatchTree::nsvtx {0}
private

Definition at line 125 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 125 of file FillClusMatchTree.h

int FillClusMatchTree::ntrackmatches {0}
private

Definition at line 126 of file FillClusMatchTree.h.

View newest version in sPHENIX GitHub at line 126 of file FillClusMatchTree.h


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