#include <TrackContainerHandlesHelper.h>
◆ build()
std::unique_ptr< ActsTrk::TrackContainer > ActsTrk::ConstTrackContainerHandlesHelper::build |
( |
const Acts::TrackingGeometry * |
geo, |
|
|
const Acts::GeometryContext & |
geoContext, |
|
|
const EventContext & |
context |
|
) |
| const |
Definition at line 257 of file TrackContainerHandlesHelper.cxx.
261 std::unique_ptr<ActsTrk::MultiTrajectory> mtj =
264 if (mtjHandle.record(std::move(mtj)).isFailure()) {
265 throw std::runtime_error(
266 "ConstTrackContainerHandle<C>::build failed recording MTJ");
270 if (not summaryLink.isValid()) {
271 throw std::runtime_error(
272 "ConstTrackContainerHandle::build, SummaryLink is invalid");
276 if (not surfacesHandle.isValid()) {
277 throw std::runtime_error(
278 "ConstTrackContainerHandle::build, SurfaceHandle is invalid");
281 auto constTrackSummary = std::make_unique<ActsTrk::TrackSummaryContainer>(summaryLink);
282 constTrackSummary->decodeSurfaces( surfacesHandle.cptr(), geoContext);
285 if (summaryHandle.record(std::move(constTrackSummary)).isFailure()) {
286 throw std::runtime_error(
287 "MutableTrackContainerHandle::build, can't record "
291 auto constTrack = std::make_unique<ActsTrk::TrackContainer>(
◆ buildMtj()
std::unique_ptr< ActsTrk::MultiTrajectory > ActsTrk::ConstTrackContainerHandlesHelper::buildMtj |
( |
const Acts::TrackingGeometry * |
geo, |
|
|
const Acts::GeometryContext & |
geoContext, |
|
|
const EventContext & |
context |
|
) |
| const |
|
private |
Definition at line 205 of file TrackContainerHandlesHelper.cxx.
211 if (not statesLink.isValid()) {
212 throw std::runtime_error(
213 "ConstMultiTrajectoryHandle::build, StatesLink is invalid");
223 if (not parametersLink.isValid()) {
224 throw std::runtime_error(
225 "ConstMultiTrajectoryHandle::build, ParametersLink is invalid");
230 if (not jacobiansLink.isValid()) {
231 throw std::runtime_error(
232 "ConstMultiTrajectoryHandle::build, JacobiansLink is invalid");
237 if (not measurementsLink.isValid()) {
238 throw std::runtime_error(
239 "ConstMultiTrajectoryHandle::build, MeasurementsLink is invalid");
244 if (not surfacesLink.isValid()) {
245 throw std::runtime_error(
246 "ConstMultiTrajectoryHandle::build, SurfacesLink is invalid");
250 auto cmtj = std::make_unique<ActsTrk::MultiTrajectory>(
251 statesLink, parametersLink, jacobiansLink, measurementsLink, surfacesLink);
252 cmtj->fillSurfaces(
geo, geoContext);
◆ initialize()
StatusCode ActsTrk::ConstTrackContainerHandlesHelper::initialize |
( |
const std::string & |
prefix | ) |
|
Sets up the handles.
- prefix - common prefix for all the names the value would typically be taken from configurable string property
Definition at line 177 of file TrackContainerHandlesHelper.cxx.
201 return StatusCode::SUCCESS;
◆ restoreUncalibMeasurementPtr()
Definition at line 329 of file TrackContainerHandlesHelper.cxx.
334 const_span<link_t> elementLinks = getElementVector(statesLink, link_accessor);
337 decor(
"uncalibratedMeasurement");
339 std::span<const xAOD::UncalibratedMeasurement *> uncalibratedMeasurements
340 = createDecoration( statesLink, decor);
343 const link_t &
el = elementLinks[
index];
346 if (uncalibratedMeasurements[
index] !=
nullptr && a_measurement != uncalibratedMeasurements[
index]) {
347 throwConflictingUncalibratedMeasurementPointerValue(uncalibratedMeasurements[
index], a_measurement);
349 uncalibratedMeasurements[
index]=a_measurement;
353 std::cerr <<
"WARNING no uncalibratedMeasurementLink aux data " << std::endl;
◆ m_jacobiansKey
◆ m_measurementsKey
◆ m_mtjKey
◆ m_parametersKey
◆ m_statesKey
◆ m_surfacesKey
◆ m_trackSummaryKey
◆ m_trackSurfacesKey
◆ m_xAODTrackSummaryKey
The documentation for this class was generated from the following files: