41 std::set< Acts::GeometryIdentifier> transient_id_set,
44 if(
m_verbosity > 1) { std::cout <<
"Entering MakeSourceLinks::getSourceLinks " << std::endl; }
54 PHTimer SLTrackTimer(
"SLTrackTimer");
59 std::vector<TrkrDefs::cluskey> cluster_vec;
70 std::cout <<
"MakeSourceLinks: Failed to get cluster with key " << key <<
" for track seed" << std::endl;
72 std::cout <<
"MakeSourceLinks: Key " << key <<
" for track seed " << std::endl;
86 if(
m_verbosity > 1) { std::cout <<
" Cluster key " << key <<
" trkrid " << trkrid <<
" crossing " << crossing << std::endl; }
114 auto correction_translation = (global - global_in) * 10.0;
124 auto corrected_transform = tcorr * transformMap->
getTransform(
id);
126 transient_id_set.insert(
id);
131 cluster_vec.push_back(key);
136 for (
unsigned int i = 0;
i < cluster_vec.size(); ++
i)
144 std::cout <<
PHWHERE <<
"skipping cluster in layer "
151 auto cluster = clusterContainer->
findCluster(cluskey);
160 std::array<Acts::BoundIndices, 2> indices;
167 double clusRadius = sqrt(global[0] * global[0] + global[1] * global[1]);
181 std::cout <<
"source link " << sl.index() <<
", loc : "
182 << loc.transpose() << std::endl
183 <<
", cov : " << cov.transpose() << std::endl
184 <<
" geo id " << sl.geometryId() << std::endl;
185 std::cout <<
"Surface : " << std::endl;
187 std::cout << std::endl;
188 std::cout <<
"Corrected surface transform:" << std::endl;
189 std::cout << transformMapTransient->
getTransform(surf->geometryId()).matrix() << std::endl;
190 std::cout <<
"Cluster error " << cluster->getRPhiError() <<
" , " << cluster->getZError() << std::endl;
191 std::cout <<
"For key " << cluskey <<
" with local pos " << std::endl
192 << localPos(0) <<
", " << localPos(1)
193 << std::endl << std::endl;
196 sourcelinks.push_back(actsSL);
197 measurements.push_back(meas);
204 std::cout <<
"PHActsTrkFitter Source Links generation time: "
205 << SLTime << std::endl;
212 std::set< Acts::GeometryIdentifier>& transient_id_set,
216 for(
auto it = transient_id_set.begin();
it != transient_id_set.end(); ++
it)
224 transient_id_set.clear();