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

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

+ Collaboration diagram for G4Eval::TrkrClusterComparer:

Public Member Functions

 TrkrClusterComparer (float _nphi_widths=0.5, float _nz_widths=0.5)
 
int init (PHCompositeNode *topNode, const std::string &name_truth_clusters="TRKR_TRUTHCLUSTERCONTAINER", const std::string &name_reco_clusters="TRKR_CLUSTER")
 
std::pair< bool, float > operator() (TrkrDefs::cluskey key_T, TrkrDefs::cluskey key_R)
 
void set_nz_widths (float val)
 
void set_nphi_widths (float val)
 
ClusLoc clusloc_PHG4 (std::pair< TrkrDefs::hitsetkey, TrkrDefs::cluskey >)
 
ClusLoc clusloc_SVTX (std::pair< TrkrDefs::hitsetkey, TrkrDefs::cluskey >)
 

Public Attributes

TrkrClusterclus_T {nullptr}
 
TrkrClusterclus_R {nullptr}
 
bool is_match {false}
 
int layer {INT_MAX}
 
float z_T {FLT_MAX}
 
float z_R {FLT_MAX}
 
float phi_T {FLT_MAX}
 
float phi_R {FLT_MAX}
 
float phisize_R {FLT_MAX}
 
float phisize_T {FLT_MAX}
 
float zsize_R {FLT_MAX}
 
float zsize_T {FLT_MAX}
 
float phi_delta {FLT_MAX}
 
float z_delta {FLT_MAX}
 
bool in_tpc {false}
 
bool in_mvtx {false}
 
bool in_intt {false}
 
bool in_tpot {false}
 
float m_zstep_tpc {0.}
 
float m_zstep_mvtx {0.}
 
TrkrClusterContainerm_TruthClusters {nullptr}
 
TrkrClusterContainerm_RecoClusters {nullptr}
 

Private Attributes

std::array< double, 56 > m_phistep {0.}
 
float m_nphi_widths
 
float m_nz_widths
 
ActsGeometrym_ActsGeometry {nullptr}
 

Detailed Description

Definition at line 38 of file g4evaltools.h.

View newest version in sPHENIX GitHub at line 38 of file g4evaltools.h

Constructor & Destructor Documentation

G4Eval::TrkrClusterComparer::TrkrClusterComparer ( float  _nphi_widths = 0.5,
float  _nz_widths = 0.5 
)

Definition at line 101 of file g4evaltools.cc.

View newest version in sPHENIX GitHub at line 101 of file g4evaltools.cc

Member Function Documentation

ClusLoc G4Eval::TrkrClusterComparer::clusloc_PHG4 ( std::pair< TrkrDefs::hitsetkey, TrkrDefs::cluskey input)

Definition at line 255 of file g4evaltools.cc.

View newest version in sPHENIX GitHub at line 255 of file g4evaltools.cc

References TrkrClusterContainer::findCluster(), ActsGeometry::getGlobalPosition(), TrkrDefs::getLayer(), m_ActsGeometry, and m_TruthClusters.

+ Here is the call graph for this function:

ClusLoc G4Eval::TrkrClusterComparer::clusloc_SVTX ( std::pair< TrkrDefs::hitsetkey, TrkrDefs::cluskey input)

Definition at line 264 of file g4evaltools.cc.

View newest version in sPHENIX GitHub at line 264 of file g4evaltools.cc

References TrkrClusterContainer::findCluster(), ActsGeometry::getGlobalPosition(), TrkrDefs::getLayer(), m_ActsGeometry, and m_RecoClusters.

+ Here is the call graph for this function:

int G4Eval::TrkrClusterComparer::init ( PHCompositeNode topNode,
const std::string &  name_truth_clusters = "TRKR_TRUTHCLUSTERCONTAINER",
const std::string &  name_reco_clusters = "TRKR_CLUSTER" 
)

Definition at line 104 of file g4evaltools.cc.

View newest version in sPHENIX GitHub at line 104 of file g4evaltools.cc

References Fun4AllReturnCodes::ABORTRUN, Fun4AllReturnCodes::EVENT_OK, PHG4TpcCylinderGeom::get_phistep(), CylinderGeom_Mvtx::get_pixel_x(), CylinderGeomIntt::get_strip_y_spacing(), PHG4TpcCylinderGeom::get_zstep(), PHG4CylinderGeomContainer::GetLayerGeom(), G4PLUGDOOR::length, m_ActsGeometry, m_phistep, m_RecoClusters, m_TruthClusters, m_zstep_mvtx, m_zstep_tpc, and PHWHERE.

Referenced by FillTruthRecoMatchTree::InitRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::pair< bool, float > G4Eval::TrkrClusterComparer::operator() ( TrkrDefs::cluskey  key_T,
TrkrDefs::cluskey  key_R 
)

Definition at line 194 of file g4evaltools.cc.

View newest version in sPHENIX GitHub at line 194 of file g4evaltools.cc

References clus_R, clus_T, TrkrClusterContainer::findCluster(), TrkrDefs::getLayer(), TrkrCluster::getPhiSize(), TrkrCluster::getPosition(), TrkrCluster::getZSize(), in_intt, in_mvtx, in_tpc, is_match, layer, m_nphi_widths, m_nz_widths, m_phistep, m_RecoClusters, m_TruthClusters, m_zstep_mvtx, m_zstep_tpc, phi_delta, phi_R, phi_T, phisize_R, phisize_T, z_delta, z_R, z_T, zsize_R, and zsize_T.

+ Here is the call graph for this function:

void G4Eval::TrkrClusterComparer::set_nphi_widths ( float  val)
inline

Definition at line 76 of file g4evaltools.h.

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

References m_nphi_widths.

void G4Eval::TrkrClusterComparer::set_nz_widths ( float  val)
inline

Definition at line 75 of file g4evaltools.h.

View newest version in sPHENIX GitHub at line 75 of file g4evaltools.h

References m_nz_widths.

Member Data Documentation

TrkrCluster* G4Eval::TrkrClusterComparer::clus_R {nullptr}

Definition at line 48 of file g4evaltools.h.

View newest version in sPHENIX GitHub at line 48 of file g4evaltools.h

Referenced by operator()().

TrkrCluster* G4Eval::TrkrClusterComparer::clus_T {nullptr}

Definition at line 47 of file g4evaltools.h.

View newest version in sPHENIX GitHub at line 47 of file g4evaltools.h

Referenced by operator()().

bool G4Eval::TrkrClusterComparer::in_intt {false}

Definition at line 67 of file g4evaltools.h.

View newest version in sPHENIX GitHub at line 67 of file g4evaltools.h

Referenced by operator()().

bool G4Eval::TrkrClusterComparer::in_mvtx {false}

Definition at line 66 of file g4evaltools.h.

View newest version in sPHENIX GitHub at line 66 of file g4evaltools.h

Referenced by operator()().

bool G4Eval::TrkrClusterComparer::in_tpc {false}

Definition at line 65 of file g4evaltools.h.

View newest version in sPHENIX GitHub at line 65 of file g4evaltools.h

Referenced by operator()().

bool G4Eval::TrkrClusterComparer::in_tpot {false}

Definition at line 68 of file g4evaltools.h.

View newest version in sPHENIX GitHub at line 68 of file g4evaltools.h

bool G4Eval::TrkrClusterComparer::is_match {false}

Definition at line 56 of file g4evaltools.h.

View newest version in sPHENIX GitHub at line 56 of file g4evaltools.h

Referenced by operator()().

int G4Eval::TrkrClusterComparer::layer {INT_MAX}

Definition at line 57 of file g4evaltools.h.

View newest version in sPHENIX GitHub at line 57 of file g4evaltools.h

Referenced by operator()().

ActsGeometry* G4Eval::TrkrClusterComparer::m_ActsGeometry {nullptr}
private

Definition at line 90 of file g4evaltools.h.

View newest version in sPHENIX GitHub at line 90 of file g4evaltools.h

Referenced by clusloc_PHG4(), clusloc_SVTX(), and init().

float G4Eval::TrkrClusterComparer::m_nphi_widths
private

Definition at line 87 of file g4evaltools.h.

View newest version in sPHENIX GitHub at line 87 of file g4evaltools.h

Referenced by operator()(), and set_nphi_widths().

float G4Eval::TrkrClusterComparer::m_nz_widths
private

Definition at line 88 of file g4evaltools.h.

View newest version in sPHENIX GitHub at line 88 of file g4evaltools.h

Referenced by operator()(), and set_nz_widths().

std::array<double, 56> G4Eval::TrkrClusterComparer::m_phistep {0.}
private

Definition at line 86 of file g4evaltools.h.

View newest version in sPHENIX GitHub at line 86 of file g4evaltools.h

Referenced by init(), and operator()().

TrkrClusterContainer* G4Eval::TrkrClusterComparer::m_RecoClusters {nullptr}

Definition at line 82 of file g4evaltools.h.

View newest version in sPHENIX GitHub at line 82 of file g4evaltools.h

Referenced by clusloc_SVTX(), init(), and operator()().

TrkrClusterContainer* G4Eval::TrkrClusterComparer::m_TruthClusters {nullptr}

Definition at line 81 of file g4evaltools.h.

View newest version in sPHENIX GitHub at line 81 of file g4evaltools.h

Referenced by clusloc_PHG4(), init(), and operator()().

float G4Eval::TrkrClusterComparer::m_zstep_mvtx {0.}

Definition at line 72 of file g4evaltools.h.

View newest version in sPHENIX GitHub at line 72 of file g4evaltools.h

Referenced by init(), and operator()().

float G4Eval::TrkrClusterComparer::m_zstep_tpc {0.}

Definition at line 71 of file g4evaltools.h.

View newest version in sPHENIX GitHub at line 71 of file g4evaltools.h

Referenced by init(), and operator()().

float G4Eval::TrkrClusterComparer::phi_delta {FLT_MAX}

Definition at line 63 of file g4evaltools.h.

View newest version in sPHENIX GitHub at line 63 of file g4evaltools.h

Referenced by operator()().

float G4Eval::TrkrClusterComparer::phi_R {FLT_MAX}

Definition at line 60 of file g4evaltools.h.

View newest version in sPHENIX GitHub at line 60 of file g4evaltools.h

Referenced by operator()().

float G4Eval::TrkrClusterComparer::phi_T {FLT_MAX}

Definition at line 60 of file g4evaltools.h.

View newest version in sPHENIX GitHub at line 60 of file g4evaltools.h

Referenced by operator()().

float G4Eval::TrkrClusterComparer::phisize_R {FLT_MAX}

Definition at line 61 of file g4evaltools.h.

View newest version in sPHENIX GitHub at line 61 of file g4evaltools.h

Referenced by operator()().

float G4Eval::TrkrClusterComparer::phisize_T {FLT_MAX}

Definition at line 61 of file g4evaltools.h.

View newest version in sPHENIX GitHub at line 61 of file g4evaltools.h

Referenced by operator()().

float G4Eval::TrkrClusterComparer::z_delta {FLT_MAX}

Definition at line 63 of file g4evaltools.h.

View newest version in sPHENIX GitHub at line 63 of file g4evaltools.h

Referenced by operator()().

float G4Eval::TrkrClusterComparer::z_R {FLT_MAX}

Definition at line 59 of file g4evaltools.h.

View newest version in sPHENIX GitHub at line 59 of file g4evaltools.h

Referenced by operator()().

float G4Eval::TrkrClusterComparer::z_T {FLT_MAX}

Definition at line 59 of file g4evaltools.h.

View newest version in sPHENIX GitHub at line 59 of file g4evaltools.h

Referenced by operator()().

float G4Eval::TrkrClusterComparer::zsize_R {FLT_MAX}

Definition at line 62 of file g4evaltools.h.

View newest version in sPHENIX GitHub at line 62 of file g4evaltools.h

Referenced by operator()().

float G4Eval::TrkrClusterComparer::zsize_T {FLT_MAX}

Definition at line 62 of file g4evaltools.h.

View newest version in sPHENIX GitHub at line 62 of file g4evaltools.h

Referenced by operator()().


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