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

virtual StatusCode initialize () override
virtual StatusCode convert (xAOD::TrackParticle &trackParticle, const EventContext &ctx, const ActsTrk::TrackContainer::ConstTrackProxy &track, const Acts::Surface &perigeeSurface, const InDet::BeamSpotData *beamspotData=nullptr) const override

Private Member Functions

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

Private Attributes

ToolHandle< ActsTrk::IExtrapolationToolm_extrapolationTool {this, "ExtrapolationTool", ""}
PublicToolHandle< MuonR4::ITrackSummaryToolm_muonSummaryTool {this, "MuonSummaryTool", ""}
ContextUtility m_ctxProvider {this}
 Utility to fetch the geometry, magnetic field and calibration context in the event.
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
Gaudi::Property< int > m_hgtdDecorationLevel {this, "HgtdDecorationLevel", false, "HGTD specific decorations: 0 = none, >0 time and hits, >=200 mean time, chi2." }
Gaudi::Property< int > m_itkDecorationLevel {this, "ITkDecorationLevel", 1, ">=200 split counts for inclined and flat barrel." }

Static Private Attributes

static constexpr int s_expertLevel = 200

Detailed Description

Definition at line 30 of file TrackToTrackParticleCnvTool.h.

Member Function Documentation

◆ convert()

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

Definition at line 108 of file TrackToTrackParticleCnvTool.cxx.

112 {
113 using namespace Acts::UnitLiterals;
114
115 MagField::AtlasFieldCache fieldCache;
116 m_ctxProvider.getMagneticFieldContext(ctx).get<const AtlasFieldCacheCondObj*>()->getInitializedCache(fieldCache);
117
118 if (m_muonSummaryTool.isEnabled()) {
119 m_muonSummaryTool->copySummary(m_muonSummaryTool->makeSummary(ctx, track),
120 track_particle);
121 }
122 const Acts::GeometryContext tgContext = m_ctxProvider.getGeometryContext(ctx);
123
124 static const std::array<unsigned short, Acts::toUnderlying(xAOD::UncalibMeasType::nTypes)>
125 measurementToSummaryType ATLAS_THREAD_SAFE (makeMeasurementToSummaryTypeMap());
126
127 // re-used temporaries
128 std::vector<float> tmp_cov_vector;
129 std::vector<ActsTrk::TrackStateBackend::ConstTrackStateProxy::IndexType> tmp_param_state_idx;
130 tmp_param_state_idx.reserve(30);
131 Amg::Vector3D magnFieldVect;
132 std::vector<std::vector<float>> parametersVec;
133 ActsTrk::detail::HitSummaryData hitInfo;
134
135 // convert defining parameters
136 Acts::BoundTrackParameters perigeeParam = [&] {
137 if (&perigeeSurface == &track.referenceSurface()) {
138 return track.createParametersAtReference();
139 } else {
140 return parametersAtPerigee(ctx, track, perigeeSurface);
141 }
142 }();
143
144 Acts::BoundVector boundParams = perigeeParam.parameters();
145 track_particle.setDefiningParameters(boundParams[Acts::eBoundLoc0],
146 boundParams[Acts::eBoundLoc1],
147 boundParams[Acts::eBoundPhi],
148 boundParams[Acts::eBoundTheta],
149 boundParams[Acts::eBoundQOverP] * 1_MeV);
150
151 if (m_hgtdDecorationLevel>0) {
152 static const SG::Accessor<float> perigeeTime("time");
153 perigeeTime(track_particle) = ActsTrk::timeToAthena(boundParams[Acts::eBoundTime]);
154 }
155
156 if (perigeeParam.covariance().has_value()) {
157 lowerTriangleToVectorScaleQOverP<5>(perigeeParam.covariance().value(), tmp_cov_vector, 1_MeV);
158 track_particle.setDefiningParametersCovMatrixVec(tmp_cov_vector);
159 if (m_hgtdDecorationLevel>0) {
160 static const SG::Accessor<float> perigeeTimeResolution("timeResolution");
161 perigeeTimeResolution(track_particle) = ActsTrk::timeToAthena(perigeeParam.covariance().value()(Acts::eBoundTime,Acts::eBoundTime));
162 }
163 }
164
165 // optional beam tilt
166 if (beamspot_data) {
167 track_particle.setBeamlineTiltX(beamspot_data->beamTilt(0));
168 track_particle.setBeamlineTiltY(beamspot_data->beamTilt(1));
169 }
170
171 // fit info, quality
172 track_particle.setFitQuality(track.chi2(), track.nDoF());
173 track_particle.setPatternRecognitionInfo(m_patternRecognitionInfo.value());
175 track_particle.setTrackFitter(ActsTrk::TrackContainerUtils::fitterType(track));
176 }
177 else {
178 track_particle.setTrackFitter(static_cast<xAOD::TrackFitter>(m_trackFitter.value()));
179 }
180
181 const Acts::ParticleHypothesis& hypothesis = track.particleHypothesis();
182 track_particle.setParticleHypothesis(ParticleHypothesis::convert(hypothesis));
183 constexpr float inv_1_MeV = 1 / 1_MeV;
184
185 std::array<std::array<uint8_t, Acts::toUnderlying(ActsTrk::detail::HitCategory::N)>,
186 Acts::toUnderlying(xAOD::UncalibMeasType::nTypes)> specialHitCounts{};
187
188 ActsTrk::detail::TimeInfo time_info;
189 ActsTrk::detail::SumOfValues chi2_stat;
191 measurementToSummaryType,
192 chi2_stat,
193 hitInfo,
194 tmp_param_state_idx,
195 specialHitCounts,
196 time_info);
197
198 // pixel summaries
199 static constexpr std::array<std::tuple<uint8_t, uint8_t, uint8_t, bool>, 5> copy_summary {
200 std::make_tuple(static_cast<uint8_t>(ActsTrk::detail::HitSummaryData::pixelTotal),
202 static_cast<uint8_t>(xAOD::numberOfPixelHits),
203 false),
204 std::make_tuple(static_cast<uint8_t>(ActsTrk::detail::HitSummaryData::pixelBarrel),
207 true),
208 std::make_tuple(static_cast<uint8_t>(ActsTrk::detail::HitSummaryData::pixelEndcap),
211 true),
212 std::make_tuple(static_cast<uint8_t>(ActsTrk::detail::HitSummaryData::pixelBarrelFlat),
215 true),
219 true)
220 };
221
222 // if not adding expert level decorations only set the total
223 for (auto [src_region, dest_xaod_summary_layer, dest_xaod_summary_hits, add_outlier] : std::span(copy_summary.begin(),
225 ? copy_summary.end()
226 : copy_summary.begin()+1)) {
227 setSummaryValue(track_particle,
229 static_cast<xAOD::SummaryType>(dest_xaod_summary_layer));
230 setSummaryValue(track_particle,
232 + (add_outlier
234 : 0),
235 static_cast<xAOD::SummaryType>(dest_xaod_summary_hits));
236 }
237
238 // map to xAOD::summaryType from [barrel, endcap] x [innermost, next-to-innerost] x [Hits,Outlier,Shared,Split]
239 static constexpr std::array<std::array<std::array<xAOD::SummaryType,4>,2>,2> summaryTypeMap
240 {
241 std::array<std::array<xAOD::SummaryType,4>,2>{ // Pixel barrel
242 std::array<xAOD::SummaryType,4>{ // innermost
247 std::array<xAOD::SummaryType,4>{ // next-to-innermost
252
253 std::array<std::array<xAOD::SummaryType,4>,2>{ // Pixel endcap
254 std::array<xAOD::SummaryType,4>{// innermost
259 std::array<xAOD::SummaryType,4>{// next-to-innermost
264 };
265
266 // counts for the innermost barrel and endcap layers
267 std::array< std::array< std::array<uint8_t,4>,3>, 2> pixel_counts {
268 std::array< std::array<uint8_t,4>,3>{ // barrel counts
271 std::array<std::uint8_t,4>{}},
272 std::array< std::array<uint8_t,4>,3>{ // endcap counts
276 };
277
278 static constexpr std::array<std::array<std::array<unsigned int,2>,2>,2> innerlayer_range{
279 std::array<std::array<unsigned int,2>,2> { // barrel
280 std::array<unsigned int,2>{0u,1u}, // layer range [a,b) considered for innermost barrel: 0
281 std::array<unsigned int,2>{1u,2u} // layer range [a,b) considered for next-to-innermost barrel: 1
282 },
283 std::array<std::array<unsigned int,2>,2> { // endcap
284 std::array<unsigned int,2>{0u,1u}, // layer range [a,b) considered for innermost endcap: 0
285 std::array<unsigned int,2>{1u,3u} // layer range [a,b) considered for next-to-innermost endcap: 1,2
286 }
287 };
288
289 // iterate over barrel,endcap:
290 for (unsigned int barrel_endcap_i=0; barrel_endcap_i<2; ++barrel_endcap_i) {
291 // iterate over inner and next-to-inner most:
292 for (unsigned int innerlayer_range_i=0; innerlayer_range_i<2; ++innerlayer_range_i) {
293 // iterate over hit, outlier, shared, split
294 for (unsigned int count_type_i=0;
295 count_type_i<static_cast<unsigned int>(ActsTrk::detail::HitSummaryData::CountType::NCountTypes);
296 ++count_type_i) {
297 unsigned int count=0;
298 // iterate over layers to be considered for innermost and next-to-innermost
299 for (unsigned int innerlayer_i=innerlayer_range[barrel_endcap_i][innerlayer_range_i][0];
300 innerlayer_i < innerlayer_range[barrel_endcap_i][innerlayer_range_i][1];
301 ++innerlayer_i) {
302 assert( barrel_endcap_i < pixel_counts.size());
303 assert( innerlayer_i < pixel_counts[barrel_endcap_i].size());
304 assert( count_type_i < pixel_counts[barrel_endcap_i][innerlayer_i].size());
305 count += pixel_counts[barrel_endcap_i][innerlayer_i][count_type_i];
306 }
307 if (barrel_endcap_i==1) {
308 if (count_type_i==static_cast<unsigned int>(ActsTrk::detail::HitSummaryData::CountType::Hit)) {
309 // "hit" count for end-caps in summary is hit+outlier
310 for (unsigned int innerlayer_i=innerlayer_range[barrel_endcap_i][innerlayer_range_i][0];
311 innerlayer_i < innerlayer_range[barrel_endcap_i][innerlayer_range_i][1];
312 ++innerlayer_i) {
313 assert( static_cast<unsigned int>(ActsTrk::detail::HitSummaryData::CountType::Outlier) < pixel_counts[barrel_endcap_i][innerlayer_i].size());
314 count += pixel_counts[barrel_endcap_i][innerlayer_i][static_cast<unsigned int>(ActsTrk::detail::HitSummaryData::CountType::Outlier)];
315 }
316 }
317 }
318 assert( barrel_endcap_i < summaryTypeMap.size());
319 assert( innerlayer_range_i < summaryTypeMap[barrel_endcap_i].size());
320 assert( count_type_i < summaryTypeMap[barrel_endcap_i][innerlayer_range_i].size());
321 setSummaryValue(track_particle, count, summaryTypeMap[barrel_endcap_i][innerlayer_range_i][count_type_i]);
322 }
323 }
324 }
325
326 setSummaryValue(track_particle,
327 specialHitCounts[Acts::toUnderlying(xAOD::UncalibMeasType::PixelClusterType)][Acts::toUnderlying(ActsTrk::detail::HitCategory::Hole)],
329 setSummaryValue(track_particle,
330 specialHitCounts[Acts::toUnderlying(xAOD::UncalibMeasType::PixelClusterType)][Acts::toUnderlying(ActsTrk::detail::HitCategory::DeadSensor)],
332
333 // expected layer pattern
334 std::array<unsigned int, 4> expect_layer_pattern{};
336 expect_layer_pattern = detail::ExpectedLayerPatternHelper::get(track);
337 } else {
338 expect_layer_pattern = (m_computeExpectedLayerPattern.value()
339 && (!m_expectIfPixelContributes.value()
343 perigeeParam,
344 m_pixelExpectLayerPathLimitInMM.value() * Acts::UnitConstants::mm)
345 : std::array<unsigned int, 4>{0u, 0u, 0u, 0u});
346 }
347
348 // @TODO consider end-caps for inner most pixel hits ?
349 setSummaryValue(track_particle,
350 static_cast<uint8_t>((expect_layer_pattern[0] & (1<<0)) != 0),
352 setSummaryValue(track_particle,
353 static_cast<uint8_t>((expect_layer_pattern[0] & (1<<1)) != 0),
355
356 // Strip, HGTD and seom pixel summaries
359 xAOD::SummaryType> ,9 > copy_summary_types = {
360 // pixel _hits_ are copied above
364
368
372 };
373
374 for (auto [region,count_type,dest_summary_type] : std::span(copy_summary_types.begin(),
375 copy_summary_types.begin()+(m_hgtdDecorationLevel>0
376 ? copy_summary_types.size()
377 : copy_summary_types.size()-3) )) {
378 setSummaryValue(track_particle,hitInfo.contributingHits(region, count_type),dest_summary_type);
379 }
380 setSummaryValue(track_particle,
381 specialHitCounts[Acts::toUnderlying(xAOD::UncalibMeasType::StripClusterType)][Acts::toUnderlying(ActsTrk::detail::HitCategory::Hole)],
383 setSummaryValue(track_particle,
384 specialHitCounts[Acts::toUnderlying(xAOD::UncalibMeasType::StripClusterType)][Acts::toUnderlying(ActsTrk::detail::HitCategory::DeadSensor)],
386 if (m_hgtdDecorationLevel>0) {
387 setSummaryValue(
388 track_particle,
389 specialHitCounts[Acts::toUnderlying(xAOD::UncalibMeasType::HGTDClusterType)][Acts::toUnderlying(ActsTrk::detail::HitCategory::Hole)],
391 }
392
393 double biased_chi2_variance = chi2_stat.biasedVariance();
394 setSummaryValue(track_particle,
395 static_cast<uint8_t>(biased_chi2_variance > 0.
396 ? std::min(static_cast<unsigned int>(std::sqrt(biased_chi2_variance) * 100), 255u)
397 : 0u),
399
400 setSummaryValue(track_particle,
404
405 if (m_hgtdDecorationLevel>0) {
406 static const SG::Accessor<uint8_t> hasValidTime("hasValidTime");
407 static const SG::Accessor<uint32_t> hgtdSummary("HGTDSummaryinfo");
408 using HitSummaryData=ActsTrk::detail::HitSummaryData;
409 unsigned int n_hgtd_hits = hitInfo.contributingHits(static_cast<HitSummaryData::DetectorRegion>(HitSummaryData::hgtdTotal));
410 unsigned int n_hgtd_outliers = hitInfo.contributingOutlierHits(static_cast<HitSummaryData::DetectorRegion>(HitSummaryData::hgtdTotal));
411 hasValidTime(track_particle) = n_hgtd_hits > 2 || n_hgtd_hits>n_hgtd_outliers;
412 unsigned int hgtd_hit_pattern = (n_hgtd_hits>0u
413 ? hitInfo.layerPattern(static_cast<HitSummaryData::DetectorRegion>(HitSummaryData::hgtdTotal),
414 true /* include outlier */)
415 : 0u);
416 hgtdSummary(track_particle) = hgtd_hit_pattern;
418 static const SG::Accessor<float> meanTime("HGTDMeanTime");
419 static const SG::Accessor<float> timeResolution("HGTDMeanTimeResolution");
420 static const SG::Accessor<float> hgtdChi2("HGTDChi2");
421 meanTime(track_particle) = time_info.mean;
422 timeResolution(track_particle) = time_info.resolution;
423 hgtdChi2(track_particle) = static_cast<float>(time_info.chi2);
424 }
425 }
426
427 // @TODO select states for which parameters are stored
428 if (m_firstAndLastParamOnly && tmp_param_state_idx.size() > 2) {
429 tmp_param_state_idx[1] = tmp_param_state_idx.back();
430 tmp_param_state_idx.erase(tmp_param_state_idx.begin() + 2, tmp_param_state_idx.end());
431 }
432
433 // store track parameters and covariances for selected states
434 parametersVec.clear();
435 parametersVec.reserve(tmp_param_state_idx.size());
436
437 // Check if this is a seed track (TSOS mask = None, no Predicted/Filtered/Calibrated)
438 // For seed tracks, perigee parameters are already set from SeedsToTrackParamsAlg, skip per-TSOS loop
439 bool isSeedTrack = tmp_param_state_idx.empty() ? false
440 : track.container().trackStateContainer().getTrackState(tmp_param_state_idx.front()).getMask() == Acts::TrackStatePropMask::None;
441
442 if (isSeedTrack) {
443 ATH_MSG_DEBUG("Seed track detected, skipping per-TSOS parameter extraction");
444 }
445 else {
446 for (std::vector<ActsTrk::TrackStateBackend::ConstTrackStateProxy::IndexType>::const_reverse_iterator
447 idx_iter = tmp_param_state_idx.rbegin();
448 idx_iter != tmp_param_state_idx.rend();
449 ++idx_iter) {
450 ActsTrk::TrackStateBackend::ConstTrackStateProxy
451 state = track.container().trackStateContainer().getTrackState(*idx_iter);
452 const Acts::BoundTrackParameters actsParam = track.createParametersFromState(state);
453
454 Acts::Vector3 position = actsParam.position(tgContext);
455 Acts::Vector3 momentum = actsParam.momentum();
456
457 // scaling from Acts momentum units (GeV) to Athena Units (MeV)
458 for (unsigned int i = 0; i < momentum.rows(); ++i) {
459 momentum(i) *= inv_1_MeV;
460 }
461
462 if (actsParam.covariance()) {
463 const Acts::MagneticFieldContext mfContext = m_ctxProvider.getMagneticFieldContext(ctx);
464
465
466 magnFieldVect.setZero();
467 fieldCache.getField(position.data(), magnFieldVect.data());
468 // scaling from Athena magnetic field units kT to Acts units T
469 {
470 using namespace Acts::UnitLiterals;
471 magnFieldVect *= 1000_T;
472 }
473
474 auto curvilinear_cov_result = ActsTrk::detail::convertActsBoundCovToCurvilinearParam(tgContext, actsParam, magnFieldVect, hypothesis);
475 if (curvilinear_cov_result.has_value()) {
476 Acts::BoundMatrix& curvilinear_cov = curvilinear_cov_result.value();
477
478 // convert q/p components from GeV (Acts) to MeV (Athena)
479 for (unsigned int col_i = 0; col_i < 4; ++col_i) {
480 curvilinear_cov(col_i, 4) *= 1_MeV;
481 curvilinear_cov(4, col_i) *= 1_MeV;
482 }
483 curvilinear_cov(4, 4) *= (1_MeV * 1_MeV);
484
485 std::size_t param_idx = parametersVec.size();
486 // only use the 5x5 sub-matrix of the full covariance matrix
487 lowerTriangleToVector<5>(curvilinear_cov, tmp_cov_vector);
488 if (tmp_cov_vector.size() != 15) {
489 ATH_MSG_ERROR("Invalid size of lower triangle cov " << tmp_cov_vector.size() << " != 15"
490 << " input matrix : " << curvilinear_cov.rows() << " x " << curvilinear_cov.cols());
491 }
492 track_particle.setTrackParameterCovarianceMatrix(param_idx, tmp_cov_vector);
493 }
494 }
495 parametersVec.emplace_back(std::vector<float>{
496 static_cast<float>(position[0]), static_cast<float>(position[1]), static_cast<float>(position[2]),
497 static_cast<float>(momentum[0]), static_cast<float>(momentum[1]), static_cast<float>(momentum[2]) });
498 }
499 } // end else (isSeedTrack)
500 for (const std::vector<float>& param : parametersVec) {
501 if (param.size() != 6) {
502 ATH_MSG_ERROR("Invalid size of param element " << param.size() << " != 6");
503 }
504 }
505
506 track_particle.setTrackParameters(parametersVec);
507 if( !parametersVec.empty() ) {
508 track_particle.setParameterPosition(0, xAOD::ParameterPosition::FirstMeasurement);
509 track_particle.setParameterPosition(parametersVec.size()-1, xAOD::ParameterPosition::LastMeasurement);
510 }
511
512
513 return StatusCode::SUCCESS;
514 }
#define ATH_MSG_ERROR(x)
#define ATH_MSG_DEBUG(x)
size_t size() const
Number of registered mappings.
#define ATLAS_THREAD_SAFE
Acts::BoundTrackParameters parametersAtPerigee(const EventContext &ctx, const ActsTrk::TrackContainer::ConstTrackProxy &track, const Acts::Surface &perigee_surface) const
ToolHandle< ActsTrk::IExtrapolationTool > m_extrapolationTool
Gaudi::Property< double > m_pixelExpectLayerPathLimitInMM
ContextUtility m_ctxProvider
Utility to fetch the geometry, magnetic field and calibration context in the event.
PublicToolHandle< MuonR4::ITrackSummaryTool > m_muonSummaryTool
Gaudi::Property< unsigned long > m_patternRecognitionInfo
unsigned int layerPattern(DetectorRegion region, bool include_outlier) const
Get a bit pattern with one bit set per layer which is set if the layer has a hit or optionally an out...
DetectorRegion
Regions for which hit counts are computed.
std::array< uint8_t, 4 > sumPerCountType(DetectorRegion region, uint8_t layer) const
return the total number of hits, outliers, shared hits and split hits in the given detector region an...
uint8_t contributingHits(DetectorRegion region, CountType hit_type=CountType::Hit) const
return the number of hits in a certain detector region.
uint8_t contributingOutlierHits(DetectorRegion region) const
return the number of outliers 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 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,...
int count(std::string s, const std::string &regx)
count how many occurances of a regx are in a string
Definition hcg.cxx:148
xAOD::ParticleHypothesis convert(Acts::ParticleHypothesis h)
void gatherTrackSummaryData(const typename ActsTrk::TrackContainer::ConstTrackProxy &track, const std::array< unsigned short, Acts::toUnderlying(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, Acts::toUnderlying(HitCategory::N)>, Acts::toUnderlying(xAOD::UncalibMeasType::nTypes)> &special_hit_counts_out, TimeInfo &time_info)
Helper to gather track summary information from the track states of the specified track.
std::array< unsigned int, 4 > expectedLayerPattern(const EventContext &ctx, const ActsTrk::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.
constexpr double timeToAthena(T actsT)
Converts a time unit from Acts to Athena units.
Eigen::Matrix< double, 3, 1 > Vector3D
uint8_t hasValidTime(const U &p)
SG::Accessor< T, ALLOC > Accessor
Definition AuxElement.h:573
@ u
Enums for curvilinear frames.
Definition ParamDefs.h:77
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?
@ numberOfHGTDHoles
number of HGTD layers on track with absence of hits [unit8_t].
@ numberOfHGTDSharedHits
number of HGTD all-layer hits shared by several tracks [unit8_t].
@ 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].
@ numberOfNextToInnermostPixelLayerSplitHits
number of Pixel 1st layer barrel hits split by cluster splitting
@ numberOfPixelSplitHits
number of Pixel all-layer hits split by cluster splitting [unit8_t].
@ numberOfInnermostPixelLayerEndcapOutliers
number of 0th layer endcap outliers
@ numberOfPixelBarrelHits
these are the pixel hits, in the barrel flat layers [unit8_t].
@ 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].
@ numberOfSCTDeadSensors
number of dead SCT sensors crossed [unit8_t].
@ numberOfInnermostPixelLayerSplitHits
number of Pixel 0th layer barrel hits split by cluster splitting
@ numberOfPixelEndcapHits
these are the pixel hits, in the endcap layers [unit8_t].
@ numberOfInnermostPixelLayerOutliers
number of 0th layer barrel outliers
@ numberOfNextToInnermostPixelLayerSplitEndcapHits
number of Pixel 1st layer endcap hits split by cluster splitting
@ 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
@ numberOfHGTDHits
number of HGTD hits [unit8_t].
@ 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].
@ numberOfInnermostPixelLayerSplitEndcapHits
number of Pixel 0th layer endcap hits shared by several tracks.
@ numberOfHGTDOutliers
number of HGTD outliers [unit8_t].
@ numberOfContribPixelBarrelLayers
number of contributing barrel flat layers of the pixel detector [unit8_t].
@ numberOfPixelDeadSensors
number of dead pixel sensors crossed [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 xAOD::TrackFitter fitterType(const consttrackproxy_t &trackProxy)
get fitter type of a track
static bool hasFitterType(const consttrackproxy_t &trackProxy)
test whether a track has a fitter type
static std::array< unsigned int, 4 > get(const track_proxy_t &track)
static bool exists(track_container_t &trackContainer)

◆ initialize()

StatusCode ActsTrk::TrackToTrackParticleCnvTool::initialize ( )
overridevirtual

Definition at line 99 of file TrackToTrackParticleCnvTool.cxx.

99 {
100
101 ATH_CHECK( m_extrapolationTool.retrieve() );
102 ATH_CHECK( m_muonSummaryTool.retrieve(EnableTool{!m_muonSummaryTool.empty()}));
103 ATH_CHECK(m_ctxProvider.initialize());
104
105 return StatusCode::SUCCESS;
106 }
#define ATH_CHECK
Evaluate an expression and check for errors.

◆ parametersAtPerigee()

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

Definition at line 516 of file TrackToTrackParticleCnvTool.cxx.

518 {
519 const Acts::BoundTrackParameters trackParam = track.createParametersAtReference();
520
521 Acts::Result<Acts::BoundTrackParameters>
522 perigeeParam = m_extrapolationTool->propagate(ctx,
523 trackParam,
524 perigee_surface,
525 Acts::Direction::Backward(),
527 if (!perigeeParam.ok()) {
528 ATH_MSG_WARNING("Failed to extrapolate to perigee, started from \n" << trackParam << " " << trackParam.referenceSurface().name());
529 return trackParam;
530 }
531
532 return perigeeParam.value();
533 }
#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 65 of file TrackToTrackParticleCnvTool.h.

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

◆ m_ctxProvider

ContextUtility ActsTrk::TrackToTrackParticleCnvTool::m_ctxProvider {this}
private

Utility to fetch the geometry, magnetic field and calibration context in the event.

Definition at line 55 of file TrackToTrackParticleCnvTool.h.

55{this};

◆ 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 69 of file TrackToTrackParticleCnvTool.h.

70 {this, "expectIfPixelContribution", true,
71 "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 49 of file TrackToTrackParticleCnvTool.h.

49{this, "ExtrapolationTool", ""};

◆ 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 61 of file TrackToTrackParticleCnvTool.h.

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

◆ m_hgtdDecorationLevel

Gaudi::Property<int> ActsTrk::TrackToTrackParticleCnvTool::m_hgtdDecorationLevel {this, "HgtdDecorationLevel", false, "HGTD specific decorations: 0 = none, >0 time and hits, >=200 mean time, chi2." }
private

Definition at line 86 of file TrackToTrackParticleCnvTool.h.

87{this, "HgtdDecorationLevel", false, "HGTD specific decorations: 0 = none, >0 time and hits, >=200 mean time, chi2." };

◆ m_itkDecorationLevel

Gaudi::Property<int> ActsTrk::TrackToTrackParticleCnvTool::m_itkDecorationLevel {this, "ITkDecorationLevel", 1, ">=200 split counts for inclined and flat barrel." }
private

Definition at line 88 of file TrackToTrackParticleCnvTool.h.

89{this, "ITkDecorationLevel", 1, ">=200 split counts for inclined and flat barrel." };

◆ m_muonSummaryTool

PublicToolHandle<MuonR4::ITrackSummaryTool> ActsTrk::TrackToTrackParticleCnvTool::m_muonSummaryTool {this, "MuonSummaryTool", ""}
private

Definition at line 52 of file TrackToTrackParticleCnvTool.h.

52{this, "MuonSummaryTool", ""};

◆ 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 57 of file TrackToTrackParticleCnvTool.h.

58 {this, "ExtrapolationPathLimit", std::numeric_limits<double>::max(),
59 "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 77 of file TrackToTrackParticleCnvTool.h.

78 {this, "PatternRecognitionInfo", (1ul << xAOD::SiSPSeededFinder),
79 "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 73 of file TrackToTrackParticleCnvTool.h.

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

◆ 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 81 of file TrackToTrackParticleCnvTool.h.

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

◆ s_expertLevel

int ActsTrk::TrackToTrackParticleCnvTool::s_expertLevel = 200
staticconstexprprivate

Definition at line 85 of file TrackToTrackParticleCnvTool.h.


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