ATLAS Offline Software
Loading...
Searching...
No Matches
ActsTrk::TrackToTrackParticleCnvTool Class Reference

#include <TrackToTrackParticleCnvTool.h>

Inheritance diagram for ActsTrk::TrackToTrackParticleCnvTool:
Collaboration diagram for ActsTrk::TrackToTrackParticleCnvTool:

Public Member Functions

 TrackToTrackParticleCnvTool (const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode initialize () override
virtual StatusCode convert (xAOD::TrackParticle &trackParticle, const EventContext &ctx, const ActsTrk::TrackContainer::ConstTrackProxy &track, const Acts::PerigeeSurface *perigeeSurface=nullptr, const InDet::BeamSpotData *beamspotData=nullptr) const override

Private Types

using Stepper = Acts::EigenStepper<>
using Navigator = Acts::Navigator
using Propagator = Acts::Propagator<Stepper, Navigator>

Private Member Functions

Acts::BoundTrackParameters parametersAtPerigee (const EventContext &ctx, const ActsTrk::TrackContainer::ConstTrackProxy &track, const Acts::PerigeeSurface &perigee_surface) const

Static Private Member Functions

static xAOD::ParticleHypothesis convertParticleHypothesis (Acts::PdgParticle abs_pdg_id)

Private Attributes

ToolHandle< ActsTrk::IExtrapolationToolm_extrapolationTool {this, "ExtrapolationTool", ""}
PublicToolHandle< ActsTrk::ITrackingGeometryToolm_trackingGeometryTool {this, "TrackingGeometryTool", "ActsTrackingGeometryTool"}
SG::ReadCondHandleKey< AtlasFieldCacheCondObjm_fieldCacheCondObjInputKey
SG::ReadCondHandleKeyArray< InDetDD::SiDetectorElementCollectionm_siDetEleCollKey
Gaudi::Property< std::vector< unsigned int > > m_siDetEleCollToMeasurementType
Gaudi::Property< double > m_paramExtrapolationParLimit
Gaudi::Property< bool > m_firstAndLastParamOnly
Gaudi::Property< bool > m_computeExpectedLayerPattern
Gaudi::Property< bool > m_expectIfPixelContributes
Gaudi::Property< double > m_pixelExpectLayerPathLimitInMM
Gaudi::Property< unsigned long > m_patternRecognitionInfo
Gaudi::Property< int > m_trackFitter
std::unique_ptr< Propagatorm_propagator

Detailed Description

Definition at line 30 of file TrackToTrackParticleCnvTool.h.

Member Typedef Documentation

◆ Navigator

using ActsTrk::TrackToTrackParticleCnvTool::Navigator = Acts::Navigator
private

Definition at line 48 of file TrackToTrackParticleCnvTool.h.

◆ Propagator

Definition at line 49 of file TrackToTrackParticleCnvTool.h.

◆ Stepper

using ActsTrk::TrackToTrackParticleCnvTool::Stepper = Acts::EigenStepper<>
private

Definition at line 47 of file TrackToTrackParticleCnvTool.h.

Constructor & Destructor Documentation

◆ TrackToTrackParticleCnvTool()

ActsTrk::TrackToTrackParticleCnvTool::TrackToTrackParticleCnvTool ( const std::string & type,
const std::string & name,
const IInterface * parent )

Definition at line 101 of file TrackToTrackParticleCnvTool.cxx.

104 : base_class(type, name, parent)
105 {
106 }

Member Function Documentation

◆ convert()

StatusCode ActsTrk::TrackToTrackParticleCnvTool::convert ( xAOD::TrackParticle & trackParticle,
const EventContext & ctx,
const ActsTrk::TrackContainer::ConstTrackProxy & track,
const Acts::PerigeeSurface * perigeeSurface = nullptr,
const InDet::BeamSpotData * beamspotData = nullptr ) const
overridevirtual

Definition at line 148 of file TrackToTrackParticleCnvTool.cxx.

154 {
155 using namespace Acts::UnitLiterals;
156
157 SG::ReadCondHandle<AtlasFieldCacheCondObj> fieldHandle = SG::makeHandle(m_fieldCacheCondObjInputKey, ctx);
158 ATH_CHECK(fieldHandle.isValid());
159 const AtlasFieldCacheCondObj* field_cond_data = fieldHandle.cptr();
160 MagField::AtlasFieldCache fieldCache;
161 field_cond_data->getInitializedCache(fieldCache);
162
163 const GeometryContext& gctx = m_trackingGeometryTool->getNominalGeometryContext();
164
165 std::array<const InDetDD::SiDetectorElementCollection*, ActsTrk::detail::to_underlying(xAOD::UncalibMeasType::nTypes)> siDetEleColl{};
166 for (unsigned int idx = 0; idx < m_siDetEleCollToMeasurementType.size(); ++idx) {
167 SG::ReadCondHandle<InDetDD::SiDetectorElementCollection> detHandle = SG::makeHandle(m_siDetEleCollKey[idx], ctx);
168 ATH_CHECK(detHandle.isValid());
169 siDetEleColl[m_siDetEleCollToMeasurementType[idx]] = detHandle.cptr();
170 }
171
172 static const std::array<unsigned short, ActsTrk::detail::to_underlying(xAOD::UncalibMeasType::nTypes)>
173 measurementToSummaryType ATLAS_THREAD_SAFE (makeMeasurementToSummaryTypeMap());
174
175 // re-used temporaries
176 std::vector<float> tmp_cov_vector;
177 std::vector<ActsTrk::TrackStateBackend::ConstTrackStateProxy::IndexType> tmp_param_state_idx;
178 tmp_param_state_idx.reserve(30);
179 Amg::Vector3D magnFieldVect;
180 std::vector<std::vector<float>> parametersVec;
181 ActsTrk::detail::HitSummaryData hitInfo;
182
183 // convert defining parameters
184 Acts::BoundTrackParameters perigeeParam = [&] {
185 if (perigeeSurface == nullptr) {
186 return track.createParametersAtReference();
187 } else {
188 return parametersAtPerigee(ctx, track, *perigeeSurface);
189 }
190 }();
191
192 Acts::BoundVector boundParams = perigeeParam.parameters();
193 track_particle.setDefiningParameters(boundParams[Acts::eBoundLoc0],
194 boundParams[Acts::eBoundLoc1],
195 boundParams[Acts::eBoundPhi],
196 boundParams[Acts::eBoundTheta],
197 boundParams[Acts::eBoundQOverP] * 1_MeV);
198
199 if (perigeeParam.covariance().has_value()) {
200 lowerTriangleToVectorScaleLastRow(perigeeParam.covariance().value(), tmp_cov_vector, 5, 1_MeV);
201 track_particle.setDefiningParametersCovMatrixVec(tmp_cov_vector);
202 }
203
204 // optional beam tilt
205 if (beamspot_data) {
206 track_particle.setBeamlineTiltX(beamspot_data->beamTilt(0));
207 track_particle.setBeamlineTiltY(beamspot_data->beamTilt(1));
208 }
209
210 // fit info, quality
211 track_particle.setFitQuality(track.chi2(), track.nDoF());
212 track_particle.setPatternRecognitionInfo(m_patternRecognitionInfo.value());
213 track_particle.setTrackFitter(static_cast<xAOD::TrackFitter>(m_trackFitter.value()));
214
215 const Acts::ParticleHypothesis& hypothesis = track.particleHypothesis();
216 track_particle.setParticleHypothesis(convertParticleHypothesis(hypothesis.absolutePdg()));
217 constexpr float inv_1_MeV = 1 / 1_MeV;
218
221
222 ActsTrk::detail::SumOfValues chi2_stat;
224 siDetEleColl,
225 measurementToSummaryType,
226 chi2_stat,
227 hitInfo,
228 tmp_param_state_idx,
229 specialHitCounts);
230
231 // pixel summaries
232 std::array<std::tuple<uint8_t, uint8_t, uint8_t, bool>, 4> copy_summary {
233 std::make_tuple(static_cast<uint8_t>(ActsTrk::detail::HitSummaryData::pixelTotal),
235 static_cast<uint8_t>(xAOD::numberOfPixelHits),
236 false),
237
238 std::make_tuple(static_cast<uint8_t>(ActsTrk::detail::HitSummaryData::pixelBarrelFlat),
241 true),
242
246 true),
247
248 std::make_tuple(static_cast<uint8_t>(ActsTrk::detail::HitSummaryData::pixelEndcap),
251 true) };
252
253 for (auto [src_region, dest_xaod_summary_layer, dest_xaod_summary_hits, add_outlier] : copy_summary) {
254 setSummaryValue(track_particle,
256 static_cast<xAOD::SummaryType>(dest_xaod_summary_layer));
257 setSummaryValue(track_particle,
259 + (add_outlier
261 : 0),
262 static_cast<xAOD::SummaryType>(dest_xaod_summary_hits));
263 }
264 setSummaryValue(track_particle,
268 setSummaryValue(track_particle,
271 setSummaryValue(track_particle,
277 setSummaryValue(track_particle,
281 setSummaryValue(track_particle,
284 setSummaryValue(track_particle,
287 setSummaryValue(track_particle,
290 setSummaryValue(track_particle,
294 setSummaryValue(track_particle,
297
298 // expected layer pattern
299 std::array<unsigned int, 4> expect_layer_pattern{};
301 expect_layer_pattern = detail::ExpectedLayerPatternHelper::get(track);
302 } else {
303 expect_layer_pattern = (m_computeExpectedLayerPattern.value()
304 && (!m_expectIfPixelContributes.value()
308 perigeeParam,
309 m_pixelExpectLayerPathLimitInMM.value() * Acts::UnitConstants::mm)
310 : std::array<unsigned int, 4>{0u, 0u, 0u, 0u});
311 }
312
313 // @TODO consider end-caps for inner most pixel hits ?
314 setSummaryValue(track_particle,
315 static_cast<uint8_t>((expect_layer_pattern[0] & (1<<0)) != 0),
317 setSummaryValue(track_particle,
318 static_cast<uint8_t>((expect_layer_pattern[0] & (1<<1)) != 0),
320 setSummaryValue(track_particle,
323 setSummaryValue(track_particle,
326 setSummaryValue(track_particle,
329 setSummaryValue(track_particle,
332 setSummaryValue(track_particle,
335 setSummaryValue(track_particle,
338
339 // Strip summaries
340 setSummaryValue(track_particle,
343 setSummaryValue(track_particle,
346 setSummaryValue(track_particle,
349 setSummaryValue(track_particle,
352
353 double biased_chi2_variance = chi2_stat.biasedVariance();
354 setSummaryValue(track_particle,
355 static_cast<uint8_t>(biased_chi2_variance > 0.
356 ? std::min(static_cast<unsigned int>(std::sqrt(biased_chi2_variance) * 100), 255u)
357 : 0u),
359
360 setSummaryValue(track_particle,
364
365 // @TODO select states for which parameters are stored
366 if (m_firstAndLastParamOnly && tmp_param_state_idx.size() > 2) {
367 tmp_param_state_idx[1] = tmp_param_state_idx.back();
368 tmp_param_state_idx.erase(tmp_param_state_idx.begin() + 2, tmp_param_state_idx.end());
369 }
370
371 // store track parameters and covariances for selected states
372 parametersVec.clear();
373 parametersVec.reserve(tmp_param_state_idx.size());
374
375 for (std::vector<ActsTrk::TrackStateBackend::ConstTrackStateProxy::IndexType>::const_reverse_iterator
376 idx_iter = tmp_param_state_idx.rbegin();
377 idx_iter != tmp_param_state_idx.rend();
378 ++idx_iter) {
379 ActsTrk::TrackStateBackend::ConstTrackStateProxy
380 state = track.container().trackStateContainer().getTrackState(*idx_iter);
381 const Acts::BoundTrackParameters actsParam = track.createParametersFromState(state);
382
383 Acts::Vector3 position = actsParam.position(gctx.context());
384 Acts::Vector3 momentum = actsParam.momentum();
385
386 // scaling from Acts momentum units (GeV) to Athena Units (MeV)
387 for (unsigned int i = 0; i < momentum.rows(); ++i) {
388 momentum(i) *= inv_1_MeV;
389 }
390
391 if (actsParam.covariance()) {
392 Acts::MagneticFieldContext mfContext = m_extrapolationTool->getMagneticFieldContext(ctx);
393 Acts::GeometryContext tgContext = gctx.context();
394
395 magnFieldVect.setZero();
396 fieldCache.getField(position.data(), magnFieldVect.data());
397 // scaling from Athena magnetic field units kT to Acts units T
398 {
399 using namespace Acts::UnitLiterals;
400 magnFieldVect *= 1000_T;
401 }
402
403 auto curvilinear_cov_result = ActsTrk::detail::convertActsBoundCovToCurvilinearParam(tgContext, actsParam, magnFieldVect, hypothesis);
404 if (curvilinear_cov_result.has_value()) {
405 Acts::BoundMatrix& curvilinear_cov = curvilinear_cov_result.value();
406
407 // convert q/p components from GeV (Acts) to MeV (Athena)
408 for (unsigned int col_i = 0; col_i < 4; ++col_i) {
409 curvilinear_cov(col_i, 4) *= 1_MeV;
410 curvilinear_cov(4, col_i) *= 1_MeV;
411 }
412 curvilinear_cov(4, 4) *= (1_MeV * 1_MeV);
413
414 std::size_t param_idx = parametersVec.size();
415 // only use the 5x5 sub-matrix of the full covariance matrix
416 lowerTriangleToVector(curvilinear_cov, tmp_cov_vector, 5);
417 if (tmp_cov_vector.size() != 15) {
418 ATH_MSG_ERROR("Invalid size of lower triangle cov " << tmp_cov_vector.size() << " != 15"
419 << " input matrix : " << curvilinear_cov.rows() << " x " << curvilinear_cov.cols());
420 }
421 track_particle.setTrackParameterCovarianceMatrix(param_idx, tmp_cov_vector);
422 }
423 }
424 parametersVec.emplace_back(std::vector<float>{
425 static_cast<float>(position[0]), static_cast<float>(position[1]), static_cast<float>(position[2]),
426 static_cast<float>(momentum[0]), static_cast<float>(momentum[1]), static_cast<float>(momentum[2]) });
427 }
428 for (const std::vector<float>& param : parametersVec) {
429 if (param.size() != 6) {
430 ATH_MSG_ERROR("Invalid size of param element " << param.size() << " != 6");
431 }
432 }
433
434 track_particle.setTrackParameters(parametersVec);
435 if( !parametersVec.empty() ) {
436 track_particle.setParameterPosition(0, xAOD::ParameterPosition::FirstMeasurement);
437 track_particle.setParameterPosition(parametersVec.size()-1, xAOD::ParameterPosition::LastMeasurement);
438 }
439
440
441 return StatusCode::SUCCESS;
442 }
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
#define ATLAS_THREAD_SAFE
ToolHandle< ActsTrk::IExtrapolationTool > m_extrapolationTool
Acts::BoundTrackParameters parametersAtPerigee(const EventContext &ctx, const ActsTrk::TrackContainer::ConstTrackProxy &track, const Acts::PerigeeSurface &perigee_surface) const
Gaudi::Property< double > m_pixelExpectLayerPathLimitInMM
SG::ReadCondHandleKeyArray< InDetDD::SiDetectorElementCollection > m_siDetEleCollKey
Gaudi::Property< unsigned long > m_patternRecognitionInfo
SG::ReadCondHandleKey< AtlasFieldCacheCondObj > m_fieldCacheCondObjInputKey
Gaudi::Property< std::vector< unsigned int > > m_siDetEleCollToMeasurementType
PublicToolHandle< ActsTrk::ITrackingGeometryTool > m_trackingGeometryTool
static xAOD::ParticleHypothesis convertParticleHypothesis(Acts::PdgParticle abs_pdg_id)
DetectorRegion
Regions for which hit counts are computed.
uint8_t contributingSharedHits(DetectorRegion region) const
return the number of shared hits in a certain detector region.
uint8_t sum(DetectorRegion region, uint8_t layer) const
return the total number of hits, outliers, and/or shared hits in the givrn detector region and layer.
uint8_t contributingOutlierHits(DetectorRegion region) const
return the number of outliers in a certain detector region.
uint8_t contributingHits(DetectorRegion region) const
return the number of hits in a certain detector region.
uint8_t contributingLayers(DetectorRegion region) const
return the number of layers contributing to the hit collection in the given detector region.
void getInitializedCache(MagField::AtlasFieldCache &cache) const
get B field cache for evaluation as a function of 2-d or 3-d position.
void getField(const double *ATH_RESTRICT xyz, double *ATH_RESTRICT bxyz, double *ATH_RESTRICT deriv=nullptr)
get B field value at given position xyz[3] is in mm, bxyz[3] is in kT if deriv[9] is given,...
const_pointer_type cptr()
void gatherTrackSummaryData(const typename ActsTrk::TrackContainer::ConstTrackProxy &track, const std::array< const InDetDD::SiDetectorElementCollection *, to_underlying(xAOD::UncalibMeasType::nTypes)> &siDetEleColl, const std::array< unsigned short, to_underlying(xAOD::UncalibMeasType::nTypes)> &measurement_to_summary_type, SumOfValues &chi2_stat_out, HitSummaryData &hit_info_out, std::vector< ActsTrk::TrackStateBackend::ConstTrackStateProxy::IndexType > &param_state_idx_out, std::array< std::array< uint8_t, to_underlying(HitCategory::N)>, to_underlying(xAOD::UncalibMeasType::nTypes)> &special_hit_counts_out)
Helper to gather track summary information from the track states of the specified track.
constexpr std::underlying_type< T_EnumClass >::type to_underlying(T_EnumClass an_enum)
Helper to convert class enum into an integer.
std::array< unsigned int, 4 > expectedLayerPattern(const EventContext &ctx, const IExtrapolationTool &extrapolator, const Acts::BoundTrackParameters &perigee_parameters, double pathLimit)
Extrapolate from the perigee outwards and gather information which detector layers should have hits.
std::optional< Acts::BoundMatrix > convertActsBoundCovToCurvilinearParam(const Acts::GeometryContext &tgContext, const Acts::BoundTrackParameters &param, const Acts::Vector3 &magnFieldVect, const Acts::ParticleHypothesis &particle_hypothesis)
Convert the covariance of the given Acts track parameters into curvilinear parameterisation.
Eigen::Matrix< double, 3, 1 > Vector3D
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
const Amg::Vector3D & position() const
Method to retrieve the position of the Intersection.
TrackFitter
Enums to identify who created this track and which properties does it have.
SummaryType
Enumerates the different types of information stored in Summary.
@ numberOfInnermostPixelLayerSharedEndcapHits
number of Pixel 0th layer endcap hits shared by several tracks.
@ expectInnermostPixelLayerHit
Do we expect a 0th-layer barrel hit for this track?
@ numberOfPixelHoles
number of pixel layers on track with absence of hits [unit8_t].
@ numberOfInnermostPixelLayerEndcapHits
these are the hits in the 0th pixel layer endcap [unit8_t].
@ numberOfNextToInnermostPixelLayerSharedHits
number of Pixel 1st layer barrel hits shared by several tracks.
@ numberOfNextToInnermostPixelLayerSharedEndcapHits
number of Pixel 1st layer endcap hits shared by several tracks.
@ numberOfContribPixelLayers
number of contributing layers of the pixel detector [unit8_t].
@ standardDeviationOfChi2OS
100 times the standard deviation of the chi2 from the surfaces [unit8_t].
@ numberOfInnermostPixelLayerEndcapOutliers
number of 0th layer endcap outliers
@ numberOfInnermostPixelLayerSharedHits
number of Pixel 0th layer barrel hits shared by several tracks.
@ numberOfPixelOutliers
these are the pixel outliers, including the b-layer [unit8_t].
@ numberOfContribPixelBarrelFlatLayers
number of contributing barrel flat layers of the pixel detector [unit8_t].
@ numberOfNextToInnermostPixelLayerHits
these are the hits in the 1st pixel barrel layer
@ numberOfContribPixelBarrelInclinedLayers
number of contributing barrel inclined layers of the pixel detector [unit8_t].
@ numberOfPixelEndcapHits
these are the pixel hits, in the endcap layers [unit8_t].
@ numberOfInnermostPixelLayerOutliers
number of 0th layer barrel outliers
@ numberOfOutliersOnTrack
number of measurements flaged as outliers in TSOS [unit8_t].
@ numberOfNextToInnermostPixelLayerEndcapHits
these are the hits in the 0.5th and 1st pixel layer endcap rings [unit8_t].
@ expectNextToInnermostPixelLayerHit
Do we expect a 1st-layer barrel hit for this track?
@ numberOfContribPixelEndcap
number of contributing endcap layers of the pixel detector [unit8_t].
@ numberOfNextToInnermostPixelLayerEndcapOutliers
number of 1st layer endcap disk outliers
@ numberOfSCTHits
number of hits in SCT [unit8_t].
@ numberOfPixelBarrelInclinedHits
these are the pixel hits, in the barrel inclined layers [unit8_t].
@ numberOfSCTOutliers
number of SCT outliers [unit8_t].
@ numberOfPixelBarrelFlatHits
these are the pixel hits, in the barrel flat layers [unit8_t].
@ numberOfInnermostPixelLayerHits
these are the hits in the 0th pixel barrel layer
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].
@ numberOfPixelSharedHits
number of Pixel all-layer hits shared by several tracks [unit8_t].
@ numberOfSCTSharedHits
number of SCT hits shared by several tracks [unit8_t].
@ numberOfNextToInnermostPixelLayerOutliers
number of 1st pixel layer barrel outliers
@ numberOfSCTHoles
number of SCT holes [unit8_t].
@ FirstMeasurement
Parameter defined at the position of the 1st measurement.
@ LastMeasurement
Parameter defined at the position of the last measurement.
static std::array< unsigned int, 4 > get(const track_proxy_t &track)
static bool exists(track_container_t &trackContainer)

◆ convertParticleHypothesis()

xAOD::ParticleHypothesis ActsTrk::TrackToTrackParticleCnvTool::convertParticleHypothesis ( Acts::PdgParticle abs_pdg_id)
staticprivate

Definition at line 83 of file TrackToTrackParticleCnvTool.cxx.

83 {
84 static const std::array map {
85 std::pair{Acts::eElectron, xAOD::electron},
86 std::pair{Acts::eMuon, xAOD::muon},
87 std::pair{Acts::ePionPlus, xAOD::pion},
88 std::pair{Acts::eProton, xAOD::proton},
89 std::pair{Acts::ePionZero, xAOD::pi0},
90 std::pair{Acts::eNeutron, xAOD::neutron},
91 std::pair{Acts::eGamma, xAOD::photon},
92 };
93 auto iter = std::find_if(
94 map.begin(), map.end(),
95 [abs_pdg_id](const auto& elm) {
96 return abs_pdg_id == elm.first;
97 });
98 return (iter != map.end() ? iter->second : xAOD::noHypothesis);
99 }
@ pi0
for Fatras usage
@ noHypothesis
For material collection.
@ neutron
for Fatras usage

◆ initialize()

StatusCode ActsTrk::TrackToTrackParticleCnvTool::initialize ( )
overridevirtual

Definition at line 108 of file TrackToTrackParticleCnvTool.cxx.

109 {
110 ATH_CHECK( m_trackingGeometryTool.retrieve() );
111 ATH_CHECK( m_extrapolationTool.retrieve() );
113 ATH_CHECK( m_siDetEleCollKey.initialize() );
114
116 unsigned int collection_idx = 0;
117 for (int type : m_siDetEleCollToMeasurementType) {
118 if (type < 1 || type > 2) {
119 ATH_MSG_ERROR("Invalid measurement type (" << type << ") given for collection " << collection_idx << " : "
120 << m_siDetEleCollKey[collection_idx].key()
121 << ". Expected 1 for pixel, 2 for strips.");
122 return StatusCode::FAILURE;
123 }
124 ++collection_idx;
125 }
126 } else {
127 ATH_MSG_ERROR("Expected exactly one value in SiDetEleCollToMeasurementType per SiDetectorElementCollection. But got "
128 << m_siDetEleCollToMeasurementType.size() << " instead of " << m_siDetEleCollKey.size() << ".");
129 return StatusCode::FAILURE;
130 }
131
132 // propagator for conversion to curvilinear parameters
133 {
134 auto logger = makeActsAthenaLogger(this, "Prop");
135 Navigator::Config cfg{m_trackingGeometryTool->trackingGeometry()};
136 cfg.resolvePassive = false;
137 cfg.resolveMaterial = true;
138 cfg.resolveSensitive = true;
139 auto navigtor_logger = logger->cloneWithSuffix("Navigator");
140 m_propagator = std::make_unique<Propagator>(Stepper(std::make_shared<ATLASMagneticFieldWrapper>()),
141 Navigator(cfg, std::move(navigtor_logger)),
142 std::move(logger));
143 }
144
145 return StatusCode::SUCCESS;
146 }
std::unique_ptr< const Acts::Logger > makeActsAthenaLogger(IMessageSvc *svc, const std::string &name, int level, std::optional< std::string > parent_name)
static Root::TMsgLogger logger("iLumiCalc")

◆ parametersAtPerigee()

Acts::BoundTrackParameters ActsTrk::TrackToTrackParticleCnvTool::parametersAtPerigee ( const EventContext & ctx,
const ActsTrk::TrackContainer::ConstTrackProxy & track,
const Acts::PerigeeSurface & perigee_surface ) const
private

Definition at line 444 of file TrackToTrackParticleCnvTool.cxx.

448 {
449 const Acts::BoundTrackParameters trackParam = track.createParametersAtReference();
450
451 Acts::Result<Acts::BoundTrackParameters>
452 perigeeParam = m_extrapolationTool->propagate(ctx,
453 trackParam,
454 perigee_surface,
455 Acts::Direction::Backward(),
457 if (!perigeeParam.ok()) {
458 ATH_MSG_WARNING("Failed to extrapolate to perigee, started from \n" << trackParam << " " << trackParam.referenceSurface().name());
459 return trackParam;
460 }
461
462 return perigeeParam.value();
463 }
#define ATH_MSG_WARNING(x)

Member Data Documentation

◆ m_computeExpectedLayerPattern

Gaudi::Property<bool> ActsTrk::TrackToTrackParticleCnvTool::m_computeExpectedLayerPattern
private
Initial value:
{this, "ComputeExpectedLayerPattern", true,
"Compute the expected layer pattern. CPU expensive"}

Definition at line 83 of file TrackToTrackParticleCnvTool.h.

84 {this, "ComputeExpectedLayerPattern", true,
85 "Compute the expected layer pattern. CPU expensive"};

◆ m_expectIfPixelContributes

Gaudi::Property<bool> ActsTrk::TrackToTrackParticleCnvTool::m_expectIfPixelContributes
private
Initial value:
{this, "expectIfPixelContribution", true,
"Only expect pixel hits if there are pixel hits on track."}

Definition at line 87 of file TrackToTrackParticleCnvTool.h.

88 {this, "expectIfPixelContribution", true,
89 "Only expect pixel hits if there are pixel hits on track."};

◆ m_extrapolationTool

ToolHandle<ActsTrk::IExtrapolationTool> ActsTrk::TrackToTrackParticleCnvTool::m_extrapolationTool {this, "ExtrapolationTool", ""}
private

Definition at line 57 of file TrackToTrackParticleCnvTool.h.

58{this, "ExtrapolationTool", ""};

◆ m_fieldCacheCondObjInputKey

SG::ReadCondHandleKey<AtlasFieldCacheCondObj> ActsTrk::TrackToTrackParticleCnvTool::m_fieldCacheCondObjInputKey
private
Initial value:
{this, "AtlasFieldCacheCondObj", "fieldCondObj",
"Name of the Magnetic Field conditions object key"}

Definition at line 63 of file TrackToTrackParticleCnvTool.h.

64 {this, "AtlasFieldCacheCondObj", "fieldCondObj",
65 "Name of the Magnetic Field conditions object key"};

◆ m_firstAndLastParamOnly

Gaudi::Property<bool> ActsTrk::TrackToTrackParticleCnvTool::m_firstAndLastParamOnly
private
Initial value:
{this, "FirstAndLastParameterOnly", true,
"Only convert the first and the last parameter."}

Definition at line 79 of file TrackToTrackParticleCnvTool.h.

80 {this, "FirstAndLastParameterOnly", true,
81 "Only convert the first and the last parameter."};

◆ m_paramExtrapolationParLimit

Gaudi::Property<double> ActsTrk::TrackToTrackParticleCnvTool::m_paramExtrapolationParLimit
private
Initial value:
{this, "ExtrapolationPathLimit", std::numeric_limits<double>::max(),
"PathLimit for extrapolating track parameters."}

Definition at line 75 of file TrackToTrackParticleCnvTool.h.

76 {this, "ExtrapolationPathLimit", std::numeric_limits<double>::max(),
77 "PathLimit for extrapolating track parameters."};

◆ m_patternRecognitionInfo

Gaudi::Property<unsigned long> ActsTrk::TrackToTrackParticleCnvTool::m_patternRecognitionInfo
private
Initial value:
{this, "PatternRecognitionInfo", (1ul << xAOD::SiSPSeededFinder),
"Pattern recognition info bitmask to store on converted track particles."}
@ SiSPSeededFinder
Tracks from SiSPSeedFinder.

Definition at line 95 of file TrackToTrackParticleCnvTool.h.

96 {this, "PatternRecognitionInfo", (1ul << xAOD::SiSPSeededFinder),
97 "Pattern recognition info bitmask to store on converted track particles."};

◆ m_pixelExpectLayerPathLimitInMM

Gaudi::Property<double> ActsTrk::TrackToTrackParticleCnvTool::m_pixelExpectLayerPathLimitInMM
private
Initial value:
{this, "PixelExpectLayerPathLimitInMM", 1000,
"PathLimit for extrapolating to get the expected pixel layer pattern in mm."}

Definition at line 91 of file TrackToTrackParticleCnvTool.h.

92 {this, "PixelExpectLayerPathLimitInMM", 1000,
93 "PathLimit for extrapolating to get the expected pixel layer pattern in mm."};

◆ m_propagator

std::unique_ptr<Propagator> ActsTrk::TrackToTrackParticleCnvTool::m_propagator
private

Definition at line 103 of file TrackToTrackParticleCnvTool.h.

◆ m_siDetEleCollKey

SG::ReadCondHandleKeyArray<InDetDD::SiDetectorElementCollection> ActsTrk::TrackToTrackParticleCnvTool::m_siDetEleCollKey
private
Initial value:
{this, "SiDetectorElementCollections", {},
"Pixel and strip element collections to get geometry information about measurements."}

Definition at line 67 of file TrackToTrackParticleCnvTool.h.

68 {this, "SiDetectorElementCollections", {},
69 "Pixel and strip element collections to get geometry information about measurements."};

◆ m_siDetEleCollToMeasurementType

Gaudi::Property<std::vector<unsigned int> > ActsTrk::TrackToTrackParticleCnvTool::m_siDetEleCollToMeasurementType
private
Initial value:
{this, "SiDetEleCollToMeasurementType", {},
"One value per si detector collection: Pixel = 1, Strip = 2"}

Definition at line 71 of file TrackToTrackParticleCnvTool.h.

72 {this, "SiDetEleCollToMeasurementType", {},
73 "One value per si detector collection: Pixel = 1, Strip = 2"};

◆ m_trackFitter

Gaudi::Property<int> ActsTrk::TrackToTrackParticleCnvTool::m_trackFitter
private
Initial value:
{this, "TrackFitter", static_cast<int>(xAOD::KalmanFitter),
"Track fitter identifier to store on converted track particles."}
@ KalmanFitter
tracks produced by the Kalman Fitter

Definition at line 99 of file TrackToTrackParticleCnvTool.h.

100 {this, "TrackFitter", static_cast<int>(xAOD::KalmanFitter),
101 "Track fitter identifier to store on converted track particles."};

◆ m_trackingGeometryTool

PublicToolHandle<ActsTrk::ITrackingGeometryTool> ActsTrk::TrackToTrackParticleCnvTool::m_trackingGeometryTool {this, "TrackingGeometryTool", "ActsTrackingGeometryTool"}
private

Definition at line 60 of file TrackToTrackParticleCnvTool.h.

61{this, "TrackingGeometryTool", "ActsTrackingGeometryTool"};

The documentation for this class was generated from the following files: