24 return Acts::Surface::makeShared<Acts::PerigeeSurface>(
32 return Acts::Surface::makeShared<Acts::PerigeeSurface>(
55 trackCharge / momentum.norm(),
78 Acts::Surface::makeShared<Acts::PerigeeSurface>(vertex);
100 const unsigned int sphenixLayer)
102 unsigned int actsvolume, actslayer;
115 using Actors = Acts::ActionList<>;
116 using Aborters = Acts::AbortList<ActsAborter>;
125 auto result = propagator.propagate(params,
options);
129 auto finalparams = *result.value().endParameters;
130 auto pathlength = result.value().pathLength;
131 auto pair = std::make_pair(pathlength, finalparams);
136 return result.error();
153 auto result = propagator.propagate(params, *surface,
158 auto finalparams = *result.value().endParameters;
159 auto pathlength = result.value().pathLength;
160 auto pair = std::make_pair(pathlength, finalparams);
165 return result.error();
182 auto result = propagator.propagate(params, *surface,
187 auto finalparams = *result.value().endParameters;
188 auto pathlength = result.value().pathLength;
189 auto pair = std::make_pair(pathlength, finalparams);
194 return result.error();
205 std::cout <<
"Using const field of val " <<
m_fieldval << std::endl;
208 field = std::make_shared<Acts::ConstantBField>(fieldVec);
231 field = std::make_shared<Acts::ConstantBField>(fieldVec);
237 cfg.resolvePassive =
false;
238 cfg.resolveMaterial =
true;
239 cfg.resolveSensitive =
true;
253 unsigned int& actsvolume,
254 unsigned int& actslayer)
266 if (sphenixlayer < 3)
269 actslayer = (sphenixlayer + 1) * 2;
273 else if (sphenixlayer < 7)
276 actslayer = ((sphenixlayer - 3) + 1) * 2;
280 else if (sphenixlayer < 55)
283 actslayer = ((sphenixlayer - 7) + 1) * 2;
295 bool foundlayer =
false;
296 bool foundvolume =
false;
300 if (srf !=
nullptr) {
303 if(volume == actsvolume and
layer == actslayer)
311 if (!foundlayer or !foundvolume)
313 std::cout <<
"trackreco::ActsPropagator::checkLayer Could not identify Acts volume and layer to propagate to. Can't continue. "
324 std::cout <<
"Propagating final track fit with momentum: "
325 << params.
momentum() <<
" and position "
328 <<
"track fit phi/eta "