27 = findNode::getClass<PHG4CylinderGeomContainer>(topNode,
"CYLINDERGEOM_MVTX");
28 if (!geom_container_mvtx) {
29 std::cout <<
PHWHERE <<
" Could not locate CYLINDERGEOM_MVTX " << std::endl;
32 for (
int i=0;
i<3; ++
i) {
41 = findNode::getClass<PHG4CylinderGeomContainer>(topNode,
"CYLINDERGEOM_INTT");
42 if (!geom_container_intt) {
43 std::cout <<
PHWHERE <<
" Could not locate CYLINDERGEOM_INTT " << std::endl;
47 for (
int i=3;
i<7; ++
i) {
55 findNode::getClass<PHG4TpcCylinderGeomContainer>(topNode,
"CYLINDERCELLGEOM_SVTX");
58 std::cout <<
PHWHERE <<
" Could not locate CYLINDERCELLGEOM_SVTX node " << std::endl;
61 for (
int i=7;
i<55; ++
i) {
68 findNode::getClass<TrkrClusterContainer>(topNode, name_phg4_clusters.c_str());
71 std::cout <<
PHWHERE <<
" Could not locate " << name_phg4_clusters <<
" node" << std::endl;
76 findNode::getClass<TrkrClusterContainer>(topNode, name_reco_clusters.c_str());
79 std::cout <<
PHWHERE <<
" Could not locate " << name_reco_clusters <<
" node" << std::endl;
83 m_ActsGeometry = findNode::getClass<ActsGeometry>(topNode,
"ActsGeometry");
86 std::cout <<
PHWHERE <<
" Could not locate ActsGeometry node" << std::endl;
103 for (
int i=0;
i<3; ++
i) {
116 for (
int i=3;
i<7; ++
i) {
123 for (
int i=7;
i<55; ++
i) {
133 bool TrkrClusterIsMatcher::operator()
139 std::cout <<
" Error! Trying to compar cluster in layer > 55, "
140 <<
"which is not programmed yet!" << std::endl;
144 clus_T = m_TruthClusters ->findCluster(key_T);
145 clus_R = m_RecoClusters ->findCluster(key_R);
151 if (single_pixel_phi_MVTX) {
152 if (
dphi > tol_pitch_phi[
layer])
return false;
154 if (
dphi > tol_pitch_phi[
layer]*std::max(clus_T->getPhiSize(),clus_R->getPhiSize()))
return false;
156 const float delta_z = fabs(clus_T->getPosition(1)-clus_R->getPosition(1));
157 if (single_pixel_z_MVTX) {
158 if (delta_z > tol_pitch_z_MVTX)
return false;
160 if (delta_z > tol_pitch_z_MVTX*std::max(clus_T->getZSize(), clus_R->getZSize()))
return false;
166 if (single_pixel_phi_INTT) {
167 if (
dphi > tol_pitch_phi[
layer])
return false;
169 if (
dphi > tol_pitch_phi[
layer] * std::max(clus_T->getPhiSize(), clus_R->getPhiSize()))
return false;
175 if (single_bin_phi_TPC) {
176 if (
dphi > tol_pitch_phi[
layer])
return false;
178 if (
dphi > tol_pitch_phi[
layer] * std::max(clus_T->getPhiSize(), clus_R->getPhiSize()))
return false;
180 const float delta_t = fabs(clus_T->getPosition(1)-clus_R->getPosition(1));
181 if (single_bin_t_TPC) {
182 if (delta_t > tol_step_t_TPC)
return false;
184 if (delta_t > tol_step_t_TPC * std::max(clus_T->getZSize(), clus_R->getZSize()))
return false;