68 os <<
"TrackSeed_v1 object ";
70 os <<
"(pt,pz) = (" <<
get_pt()
71 <<
", " <<
get_pz() <<
")" << std::endl;
74 os <<
"(X0,Y0,Z0) = (" <<
m_X0 <<
", " <<
m_Y0 <<
", " <<
m_Z0
76 os <<
"R and slope " << fabs(1. /
m_qOverR) <<
", " <<
m_slope << std::endl;
77 os <<
"list of cluster keys size: " <<
m_cluster_keys.size() << std::endl;
86 os << cluster_key <<
", ";
99 std::map<TrkrDefs::cluskey, Acts::Vector3>
positions;
104 if (layer < startLayer or layer > endLayer)
111 if (clus->getEdge() > 0)
118 positions.insert(std::make_pair(key, pos));
120 if (positions.size() < 3)
133 std::map<TrkrDefs::cluskey, Acts::Vector3>
positions;
138 if (layer < startLayer or layer > endLayer)
146 positions.insert(std::make_pair(key, pos));
149 lineFit(positions, startLayer, endLayer);
160 if (layer < startLayer or layer > endLayer)
165 const auto iter = positions.find(key);
168 if (iter == positions.end())
175 positions_2d.emplace_back(pos.x(), pos.y());
187 const auto& firstpos = positions_2d.at(0);
188 const auto& secondpos = positions_2d.at(1);
190 const auto firstphi = atan2(firstpos.second, firstpos.first);
191 const auto secondphi = atan2(secondpos.second, secondpos.first);
192 auto dphi = secondphi - firstphi;
215 if (layer < startLayer or layer > endLayer)
220 const auto iter = positions.find(key);
223 if (iter == positions.end())
230 positions_2d.emplace_back(std::sqrt(
square(pos.x()) +
square(pos.y())), pos.z());
264 const float x = (std::abs(minx) < std::abs(minx2)) ? minx : minx2;
265 const float y = (std::abs(miny) < std::abs(miny2)) ? miny : miny2;
266 return std::make_pair(x, y);
287 return 0.3 * 1.4 / 100. * fabs(1. /
m_qOverR);
297 double dx0 = pos0(0) -
m_X0;
298 double dy0 = pos0(1) -
m_Y0;
299 double phi0 = atan2(dy0, dx0);
300 double dx1 = pos1(0) -
m_X0;
301 double dy1 = pos1(1) -
m_Y0;
302 double phi1 = atan2(dy1, dx1);
303 double dphi = phi1 - phi0;
334 if (!clus1 or !clus2)
344 std::map<TrkrDefs::cluskey, Acts::Vector3>
positions;
345 positions.insert(std::make_pair(*(
m_cluster_keys.begin()), pos0));
346 positions.insert(std::make_pair(key, pos1));