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

#include <TrackExtensionAlg.h>

Inheritance diagram for ActsTrk::TrackExtensionAlg:

Public Types

using CKFOptions = Acts::CombinatorialKalmanFilterOptions<detail::RecoTrackContainer>

Public Member Functions

virtual StatusCode initialize () override
virtual StatusCode execute (const EventContext &context) const override
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
virtual bool filterPassed (const EventContext &ctx) const
 Get filter decision:
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 Set filter decision:
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Private Types

typedef ServiceHandle< StoreGateSvc > StoreGateSvc_t

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

SG::ReadHandleKey< xAOD::PixelClusterContainer > m_pixelClusters
SG::ReadHandleKey< ActsTrk::ProtoTrackCollection > m_protoTrackCollectionKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthParticlesKey
SG::WriteHandleKey< ActsTrk::TrackContainer > m_trackContainerKey
ActsTrk::MutableTrackContainerHandlesHelper m_tracksBackendHandlesHelper {this}
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
ServiceHandle< ActsTrk::ITrackingGeometrySvc > m_trackingGeometrySvc {this, "TrackingGeometrySvc", "ActsTrackingGeometrySvc"}
ContextUtility m_ctxProvider {this}
 Utility to fetch the geometry, magnetic field and calibration context in the event.
ToolHandle< ActsTrk::IPixelOnTrackCalibratorTool< detail::RecoTrackStateContainer > > m_pixelCalibTool
ToolHandle< ActsTrk::IStripOnTrackCalibratorTool< detail::RecoTrackStateContainer > > m_stripCalibTool
ToolHandle< ActsTrk::IHGTDOnTrackCalibratorTool< detail::RecoTrackStateContainer > > m_hgtdCalibTool
ToolHandle< ActsTrk::TrackStatePrinterTool > m_trackStatePrinter
ToolHandle< ActsTrk::IFitterTool > m_actsFitter
Gaudi::Property< bool > m_propagateForward
std::unique_ptr< detail::CKF_config > m_ckfConfig
std::unique_ptr< const Acts::Logger > m_logger
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default).
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default).
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Definition at line 48 of file TrackExtensionAlg.h.

Member Typedef Documentation

◆ CKFOptions

using ActsTrk::TrackExtensionAlg::CKFOptions = Acts::CombinatorialKalmanFilterOptions<detail::RecoTrackContainer>

Definition at line 54 of file TrackExtensionAlg.h.

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 376 of file AthCommonDataStore.h.

Member Function Documentation

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ execute()

StatusCode TrackExtensionAlg::execute ( const EventContext & context) const
overridevirtual

Definition at line 115 of file TrackExtensionAlg.cxx.

115 {
116 SG::ReadHandle<ActsTrk::ProtoTrackCollection> protoTracksHandle = SG::makeHandle(m_protoTrackCollectionKey, context);
117 ATH_CHECK(protoTracksHandle.isValid());
118
119 Acts::VectorTrackContainer tback;
120 Acts::VectorMultiTrajectory tsBack;
121 detail::RecoTrackContainer trackContainer(tback, tsBack);
122
123 // track finding goes here
124 Acts::VectorTrackContainer trackBackend;
125 Acts::VectorMultiTrajectory trackStateBackend;
126 detail::RecoTrackContainer tracksContainerTemp(trackBackend, trackStateBackend);
127
128 // Get Beam pos and make pSurface
129 const InDet::BeamSpotData* beamSpotData{};
130 ATH_CHECK(SG::get(beamSpotData, m_beamSpotKey, context));
131
132 // Beam Spot Position
133 Acts::Vector3 beamPos( beamSpotData->beamPos().x() * Acts::UnitConstants::mm,
134 beamSpotData->beamPos().y() * Acts::UnitConstants::mm,
135 0 );
136
137 // Construct a perigee surface as the target surface
138 std::shared_ptr<Acts::PerigeeSurface> perigeeSurface = Acts::Surface::makeShared<Acts::PerigeeSurface>(beamPos);
139
140 const Acts::GeometryContext tgContext{m_ctxProvider.getGeometryContext(context)};
141 const Acts::MagneticFieldContext mfContext{m_ctxProvider.getMagneticFieldContext(context)};
142 const Acts::CalibrationContext calContext{m_ctxProvider.getCalibrationContext(context)};
143
144 detail::xAODUncalibMeasSurfAcc surfAcc{m_trackingGeometrySvc.get()};
145
146 SG::ReadHandle<xAOD::PixelClusterContainer> pixelClustersHandle = SG::makeHandle(m_pixelClusters, context);
147 ATH_MSG_DEBUG("Measurements (pixels only) size: " << pixelClustersHandle->size());
148 // potential TODO: filtering only certain layers
149 detail::TrackFindingMeasurements measurements(1ul /* number of measurement containers*/);
150 measurements.addMeasurements(0, *pixelClustersHandle, *m_trackingGeometrySvc->surfaceIdMap());
151 std::optional<detail::MeasurementIndex> measurementIndex;
152
153 if (m_trackStatePrinter.isSet()) {
154 measurementIndex.emplace(1ul);
155 measurementIndex->addMeasurements(*pixelClustersHandle);
156 }
157
158 using DefaultTrackStateCreator = Acts::TrackStateCreator<ActsTrk::detail::UncalibSourceLinkAccessor::Iterator,detail::RecoTrackContainer>;
159
160 ActsTrk::detail::UncalibSourceLinkAccessor slAccessor(measurements.measurementRanges());
161 DefaultTrackStateCreator::SourceLinkAccessor slAccessorDelegate;
162 slAccessorDelegate.connect<&ActsTrk::detail::UncalibSourceLinkAccessor::range>(&slAccessor);
163
164 Acts::PropagatorPlainOptions plainOptions(tgContext, mfContext);
165 plainOptions.maxSteps = 1000;
166 plainOptions.direction= m_propagateForward ? Acts::Direction::Forward() : Acts::Direction::Backward();
167
168
169
171 mfContext,
172 calContext,
173 m_ckfConfig->ckfExtensions,
174 plainOptions,
175 perigeeSurface.get());
176
177 options.targetSurface = perigeeSurface.get();
178
179 auto calibrator = detail::OnTrackCalibrator<detail::RecoTrackStateContainer>(
180 context,
185
186 DefaultTrackStateCreator defaultTrackStateCreator{};
187 defaultTrackStateCreator.sourceLinkAccessor = slAccessorDelegate;
188 defaultTrackStateCreator.calibrator.template connect<&detail::OnTrackCalibrator<detail::RecoTrackStateContainer>::calibrate>(&calibrator);
189
190 options.extensions.createTrackStates.template connect<
191 &DefaultTrackStateCreator
192 ::createTrackStates>(&defaultTrackStateCreator);
193
194 if ( not m_truthParticlesKey.empty() ) {
195 auto truthHandle = SG::ReadHandle(m_truthParticlesKey, context);
196 for ( auto truthParticle: *truthHandle ) {
197 ATH_MSG_DEBUG("truth: eta: " << truthParticle->eta() << " phi: " << truthParticle->phi() << " pt: " << truthParticle->pt());
198 }
199 }
200
201 ATH_MSG_DEBUG("Size of proto tracks collection " << protoTracksHandle->size());
202 for (const ActsTrk::ProtoTrack& protoTrack : *protoTracksHandle) {
203 if(protoTrack.measurements.empty()) continue;
204
205 const Acts::Surface* refSurface = surfAcc.get(protoTrack.measurements[0]);
206
207 auto res = m_actsFitter->fit(protoTrack.measurements, *protoTrack.parameters,
208 tgContext, mfContext, calContext, refSurface);
209 if(!res) continue;
210 if (res->size() == 0 ) continue;
211 ATH_MSG_DEBUG(".......Done fit of track with "<< protoTrack.measurements.size() << " measurements");
212 const auto trackProxy = res->getTrack(0);
213 if (not trackProxy.hasReferenceSurface()) {
214 ATH_MSG_INFO("There is not reference surface for this track");
215 continue;
216 }
217
218 Acts::BoundTrackParameters parametersAtRefSurface( trackProxy.referenceSurface().getSharedPtr(),
219 trackProxy.parameters(),
220 trackProxy.covariance(),
221 trackProxy.particleHypothesis());
222
223
224
225 ATH_MSG_DEBUG("proto track: eta: " << -1 * log(tan( parametersAtRefSurface.theta() * 0.5)) << " phi: " << parametersAtRefSurface.phi() << " pt:" << abs(1./protoTrack.parameters->qOverP() * sin(protoTrack.parameters->theta())));
226 ATH_MSG_DEBUG("Extending proto track of " << protoTrack.measurements.size() << " measurements");
227 auto result = m_ckfConfig->ckf.findTracks(parametersAtRefSurface, options,
228 tracksContainerTemp);
229
230
231 ATH_MSG_DEBUG("Built " << tracksContainerTemp.size() << " tracks from it");
232 for (detail::RecoTrackContainer::TrackProxy tempTrackProxy : tracksContainerTemp) {
233 auto destTrackProxy = trackContainer.makeTrack();
234 ATH_MSG_DEBUG("Reco MTJ size " << trackStateBackend.size() );
235 for ( size_t stateIndex=0; stateIndex < trackStateBackend.size(); ++stateIndex) {
236 auto state = trackStateBackend.getTrackState(stateIndex);
237 if (m_trackStatePrinter.isSet()) m_trackStatePrinter->printTrackState(tgContext, state, *measurementIndex, false);
238 }
239 ATH_MSG_DEBUG("Track has: " << tempTrackProxy.nMeasurements() << " measurements ");
240 ATH_MSG_DEBUG("track: eta: " << -1 * log(tan( tempTrackProxy.theta() * 0.5)) << " phi: " << tempTrackProxy.phi() << " pt:" << abs(1./tempTrackProxy.qOverP() * sin(protoTrack.parameters->theta())));
241
242 destTrackProxy.copyFrom(tempTrackProxy);
243 }
244 }
245
246
247
248 // convert to const version
249 Acts::ConstVectorTrackContainer ctback( std::move(tback) );
250 Acts::ConstVectorMultiTrajectory ctsBack( std::move(tsBack) );
251 std::unique_ptr< ActsTrk::TrackContainer > ctrackContainer = std::make_unique< ActsTrk::TrackContainer >( std::move(ctback), std::move(ctsBack) );
252
253 SG::WriteHandle<ActsTrk::TrackContainer> trackContainerHandle = SG::makeHandle( m_trackContainerKey, context );
254 ATH_CHECK(trackContainerHandle.record(std::move(ctrackContainer)));
255
256 return StatusCode::SUCCESS;
257 }
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_INFO(x,...)
std::pair< std::vector< unsigned int >, bool > res
ToolHandle< ActsTrk::TrackStatePrinterTool > m_trackStatePrinter
ToolHandle< ActsTrk::IPixelOnTrackCalibratorTool< detail::RecoTrackStateContainer > > m_pixelCalibTool
SG::ReadHandleKey< xAOD::PixelClusterContainer > m_pixelClusters
ServiceHandle< ActsTrk::ITrackingGeometrySvc > m_trackingGeometrySvc
SG::WriteHandleKey< ActsTrk::TrackContainer > m_trackContainerKey
SG::ReadHandleKey< ActsTrk::ProtoTrackCollection > m_protoTrackCollectionKey
Acts::CombinatorialKalmanFilterOptions< detail::RecoTrackContainer > CKFOptions
std::unique_ptr< detail::CKF_config > m_ckfConfig
ContextUtility m_ctxProvider
Utility to fetch the geometry, magnetic field and calibration context in the event.
ToolHandle< ActsTrk::IFitterTool > m_actsFitter
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthParticlesKey
ToolHandle< ActsTrk::IHGTDOnTrackCalibratorTool< detail::RecoTrackStateContainer > > m_hgtdCalibTool
Gaudi::Property< bool > m_propagateForward
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
ToolHandle< ActsTrk::IStripOnTrackCalibratorTool< detail::RecoTrackStateContainer > > m_stripCalibTool
std::pair< Iterator, Iterator > range(const Acts::Surface &surface) const
const Amg::Vector3D & beamPos() const noexcept
virtual bool isValid() override final
Can the handle be successfully dereferenced?
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
GenUncalibSourceLinkAccessor< MeasurementRangeList > UncalibSourceLinkAccessor
Acts::TrackContainer< Acts::VectorTrackContainer, Acts::VectorMultiTrajectory > RecoTrackContainer
Acts::TrackStateCreator< ActsTrk::detail::UncalibSourceLinkAccessor::Iterator, detail::RecoTrackContainer > DefaultTrackStateCreator
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ extraOutputDeps()

const DataObjIDColl & AthCommonAlgorithm< Gaudi::Algorithm >::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 89 of file AthCommonAlgorithm.cxx.

54{
55 // If we didn't find any symlinks to add, just return the collection
56 // from the base class. Otherwise, return the extended collection.
57 if (!m_extendedExtraObjects.empty()) {
59 }
61}
Common base class for algorithms.

◆ filterPassed()

virtual bool AthCommonAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext & ctx) const
inlinevirtualinherited

Get filter decision:

Definition at line 93 of file AthCommonAlgorithm.h.

93 {
94 return execState( ctx ).filterPassed();
95 }
virtual bool filterPassed(const EventContext &ctx) const
Get filter decision:

◆ initialize()

StatusCode TrackExtensionAlg::initialize ( )
overridevirtual

Definition at line 57 of file TrackExtensionAlg.cxx.

57 {
58 ATH_CHECK(m_pixelClusters.initialize());
60 ATH_CHECK(m_trackContainerKey.initialize());
64 ATH_CHECK(m_ctxProvider.initialize());
65 ATH_CHECK(m_pixelCalibTool.retrieve(EnableTool{not m_pixelCalibTool.empty()}));
66 ATH_CHECK(m_stripCalibTool.retrieve(EnableTool{not m_stripCalibTool.empty()}));
67 ATH_CHECK(m_hgtdCalibTool.retrieve(EnableTool{not m_hgtdCalibTool.empty()}));
69 ATH_CHECK(m_trackStatePrinter.retrieve(EnableTool{not m_trackStatePrinter.empty()}));
70 ATH_CHECK(m_actsFitter.retrieve());
71 ATH_CHECK(m_beamSpotKey.initialize());
73
74 auto magneticField = std::make_unique<ATLASMagneticFieldWrapper>();
75 std::shared_ptr<const Acts::TrackingGeometry> trackingGeometry = m_trackingGeometrySvc->trackingGeometry();
76
77 detail::Stepper stepper(std::move(magneticField));
78 detail::Navigator::Config cfg{std::move(trackingGeometry)};
79 cfg.resolvePassive = false;
80 cfg.resolveMaterial = true;
81 cfg.resolveSensitive = true;
82 detail::Navigator navigator(std::move(cfg), m_logger->cloneWithSuffix("Navigator"));
83 detail::Propagator propagator(std::move(stepper), std::move(navigator), m_logger->cloneWithSuffix("Prop"));
84
85 // Using the CKF propagator as extrapolator
86 detail::Extrapolator extrapolator = propagator;
87
88
89 // update once shared code for configuring this is available
90 Acts::TrackSelector::EtaBinnedConfig trackSelectorCfg(std::vector<double>({0, 4}));
91 trackSelectorCfg.cutSets[0].ptMin = 1000;
92 trackSelectorCfg.cutSets[0].ptMax = 1000000;
93 trackSelectorCfg.cutSets[0].minMeasurements = 3;
94 trackSelectorCfg.cutSets[0].maxHoles = 1;
95 trackSelectorCfg.cutSets[0].maxOutliers = 1;
96 trackSelectorCfg.cutSets[0].maxSharedHits = 1;
97 trackSelectorCfg.cutSets[0].maxChi2 = 25.;
98
99 detail::CKF_config ckfConfig{
100 {
101 std::move(extrapolator),
102 Acts::TrackSelector{trackSelectorCfg}
103 },
104 detail::CKF{std::move(propagator), m_logger->cloneWithSuffix("CKF")},
105 {}
106 };
107
108 m_ckfConfig = std::make_unique<detail::CKF_config>(std::move(ckfConfig));
109 return StatusCode::SUCCESS;
110 }
std::unique_ptr< const Acts::Logger > makeActsAthenaLogger(IMessageSvc *svc, const std::string &name, int level, std::optional< std::string > parent_name)
Definition Logger.cxx:64
ActsTrk::MutableTrackContainerHandlesHelper m_tracksBackendHandlesHelper
std::unique_ptr< const Acts::Logger > m_logger
Acts::SympyStepper Stepper
Adapted from Acts Examples/Algorithms/TrackFinding/src/TrackFindingAlgorithmFunction....
Acts::CombinatorialKalmanFilter< Propagator, RecoTrackContainer > CKF
std::string prefixFromTrackContainerName(const std::string &tracks)
Parse TrackContainer name to get the prefix for backends The name has to contain XYZTracks,...

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ isClonable()

virtual bool AthCommonAlgorithm< Gaudi::Algorithm >::isClonable ( ) const
inlineoverridevirtualinherited

Specify if the algorithm is clonable.

Only relevant for non-reentrant algorithms. Actual number of clones needs to be set via the "Cardinality" property.

Reimplemented in AFP_DigiTop, AlgB, AlgT, BCM_Digitization, CscDigitBuilder, CscDigitToCscRDO, G4AtlasAlg, G4RunAlg, HGTD_Digitization, HiveAlgBase, InDet::GNNSeedingTrackMaker, InDet::SCT_Clusterization, InDet::SiSPGNNTrackMaker, InDet::SiSPSeededTrackFinder, InDet::SiTrackerSpacePointFinder, ISF::SimKernelMT, ITk::StripDigitization, ITkPixelCablingAlg, ITkStripCablingAlg, LArHitEMapMaker, LArTTL1Maker, LUCID_DigiTop, LVL1::L1TopoSimulation, MergeCalibHits, MergeGenericMuonSimHitColl, MergeHijingPars, MergeMcEventCollection, MergeTrackRecordCollection, MergeTruthJets, MergeTruthParticles, MuonDigitizer, PileUpMTAlg, PixelDigitization, RoIBResultToxAOD, SCT_ByteStreamErrorsTestAlg, SCT_CablingCondAlgFromCoraCool, SCT_CablingCondAlgFromText, SCT_ConditionsParameterTestAlg, SCT_ConditionsSummaryTestAlg, SCT_ConfigurationConditionsTestAlg, SCT_Digitization, SCT_FlaggedConditionTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_PrepDataToxAOD, SCT_RawDataToxAOD, SCT_ReadCalibChipDataTestAlg, SCT_ReadCalibDataTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_SiliconConditionsTestAlg, SCT_StripVetoTestAlg, SCT_TdaqEnabledTestAlg, SCT_TestCablingAlg, SCTEventFlagWriter, SCTRawDataProvider, SCTSiLorentzAngleTestAlg, SCTSiPropertiesTestAlg, SGInputLoader, Simulation::BeamEffectsAlg, TileHitVecToCnt, TileMuonFitter, TilePulseForTileMuonReceiver, TileRawChannelMaker, TRTDigitization, and ZDC_DigiTop.

Definition at line 68 of file AthCommonAlgorithm.h.

68 {
69 return true;
70 }

◆ msg()

MsgStream & AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< Gaudi::Algorithm >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ renounce()

std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 368 of file AthCommonDataStore.h.

369 {
370 h.renounce();
372 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 352 of file AthCommonDataStore.h.

352 {
354 }

◆ setFilterPassed()

virtual void AthCommonAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Set filter decision:

Definition at line 99 of file AthCommonAlgorithm.h.

99 {
101 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const
Set filter decision:

◆ sysExecute()

StatusCode AthCommonAlgorithm< Gaudi::Algorithm >::sysExecute ( const EventContext & ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Reimplemented in AthAnalysisAlgorithm.

Definition at line 80 of file AthCommonAlgorithm.cxx.

41{
42 return BaseAlg::sysExecute (ctx);
43}

◆ sysInitialize()

StatusCode AthCommonAlgorithm< Gaudi::Algorithm >::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in AthAnalysisAlgorithm, AthHistogramAlgorithm, HypoBase, InputMakerBase, and PyAthena::Alg.

Definition at line 60 of file AthCommonAlgorithm.cxx.

71 {
73
74 if (sc.isFailure()) {
75 return sc;
76 }
77
78 ServiceHandle<ICondSvc> cs("CondSvc",name());
79 for (auto h : outputHandles()) {
80 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
81 // do this inside the loop so we don't create the CondSvc until needed
82 if ( cs.retrieve().isFailure() ) {
83 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
85 }
86 if (cs->regHandle(this,*h).isFailure()) {
88 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
89 << " with CondSvc");
90 }
91 }
92 }
93 return sc;
94}
#define ATH_MSG_ERROR(x,...)
#define ATH_MSG_WARNING(x,...)
virtual StatusCode sysInitialize() override
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 298 of file AthCommonDataStore.h.

298 {
299 for (auto &a : m_vhka) {
301 for (auto k : keys) {
302 k->setOwner(this);
303 }
304 }
305 }

Member Data Documentation

◆ m_actsFitter

ToolHandle<ActsTrk::IFitterTool> ActsTrk::TrackExtensionAlg::m_actsFitter
private
Initial value:
{
this, "ActsFitter", "", "Choice of Acts Fitter (Kalman by default)"}

Definition at line 87 of file TrackExtensionAlg.h.

87 {
88 this, "ActsFitter", "", "Choice of Acts Fitter (Kalman by default)"};

◆ m_beamSpotKey

SG::ReadCondHandleKey< InDet::BeamSpotData > ActsTrk::TrackExtensionAlg::m_beamSpotKey
private
Initial value:
{
this, "BeamSpotKey", "BeamSpotData",
"SG key for beam spot"}

Definition at line 69 of file TrackExtensionAlg.h.

69 {
70 this, "BeamSpotKey", "BeamSpotData",
71 "SG key for beam spot"};

◆ m_ckfConfig

std::unique_ptr<detail::CKF_config> ActsTrk::TrackExtensionAlg::m_ckfConfig
private

Definition at line 93 of file TrackExtensionAlg.h.

◆ m_ctxProvider

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

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

Definition at line 75 of file TrackExtensionAlg.h.

75{this};

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default).

Definition at line 381 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default).

Definition at line 378 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 108 of file AthCommonAlgorithm.h.

◆ m_hgtdCalibTool

ToolHandle<ActsTrk::IHGTDOnTrackCalibratorTool<detail::RecoTrackStateContainer> > ActsTrk::TrackExtensionAlg::m_hgtdCalibTool
private
Initial value:
{this, "HGTDCalibrator", "",
"Opt. HGTD measurement calibrator"}

Definition at line 83 of file TrackExtensionAlg.h.

83 {this, "HGTDCalibrator", "",
84 "Opt. HGTD measurement calibrator"};

◆ m_logger

std::unique_ptr<const Acts::Logger> ActsTrk::TrackExtensionAlg::m_logger
private

Definition at line 94 of file TrackExtensionAlg.h.

◆ m_pixelCalibTool

ToolHandle<ActsTrk::IPixelOnTrackCalibratorTool<detail::RecoTrackStateContainer> > ActsTrk::TrackExtensionAlg::m_pixelCalibTool
private
Initial value:
{this, "PixelCalibrator", "",
"Opt. pixel measurement calibrator"}

Definition at line 77 of file TrackExtensionAlg.h.

77 {this, "PixelCalibrator", "",
78 "Opt. pixel measurement calibrator"};

◆ m_pixelClusters

SG::ReadHandleKey<xAOD::PixelClusterContainer> ActsTrk::TrackExtensionAlg::m_pixelClusters
private
Initial value:
{
this, "PixelClusterContainer", "", "the pix clusters"}

Definition at line 57 of file TrackExtensionAlg.h.

57 {
58 this, "PixelClusterContainer", "", "the pix clusters"};

◆ m_propagateForward

Gaudi::Property<bool> ActsTrk::TrackExtensionAlg::m_propagateForward
private
Initial value:
{this, "PropagateForward", false,
"If true propagate forward"}

Definition at line 90 of file TrackExtensionAlg.h.

90 {this, "PropagateForward", false,
91 "If true propagate forward"};

◆ m_protoTrackCollectionKey

SG::ReadHandleKey<ActsTrk::ProtoTrackCollection> ActsTrk::TrackExtensionAlg::m_protoTrackCollectionKey
private
Initial value:
{
this, "ProtoTracksLocation", "", "Input proto tracks"}

Definition at line 59 of file TrackExtensionAlg.h.

59 {
60 this, "ProtoTracksLocation", "", "Input proto tracks"};

◆ m_stripCalibTool

ToolHandle<ActsTrk::IStripOnTrackCalibratorTool<detail::RecoTrackStateContainer> > ActsTrk::TrackExtensionAlg::m_stripCalibTool
private
Initial value:
{this, "StripCalibrator", "",
"Opt. strip measurement calibrator"}

Definition at line 80 of file TrackExtensionAlg.h.

80 {this, "StripCalibrator", "",
81 "Opt. strip measurement calibrator"};

◆ m_trackContainerKey

SG::WriteHandleKey<ActsTrk::TrackContainer> ActsTrk::TrackExtensionAlg::m_trackContainerKey
private
Initial value:
{
this, "ACTSTracksLocation", "",
"Output track collection (ActsTrk variant)"}

Definition at line 64 of file TrackExtensionAlg.h.

64 {
65 this, "ACTSTracksLocation", "",
66 "Output track collection (ActsTrk variant)"};

◆ m_trackingGeometrySvc

ServiceHandle<ActsTrk::ITrackingGeometrySvc> ActsTrk::TrackExtensionAlg::m_trackingGeometrySvc {this, "TrackingGeometrySvc", "ActsTrackingGeometrySvc"}
private

Definition at line 73 of file TrackExtensionAlg.h.

73{this, "TrackingGeometrySvc", "ActsTrackingGeometrySvc"};

◆ m_tracksBackendHandlesHelper

ActsTrk::MutableTrackContainerHandlesHelper ActsTrk::TrackExtensionAlg::m_tracksBackendHandlesHelper {this}
private

Definition at line 67 of file TrackExtensionAlg.h.

67{this};

◆ m_trackStatePrinter

ToolHandle<ActsTrk::TrackStatePrinterTool> ActsTrk::TrackExtensionAlg::m_trackStatePrinter
private
Initial value:
{
this, "TrackStatePrinter", "", "optional track state printer"}

Definition at line 85 of file TrackExtensionAlg.h.

85 {
86 this, "TrackStatePrinter", "", "optional track state printer"};

◆ m_truthParticlesKey

SG::ReadHandleKey<xAOD::TruthParticleContainer> ActsTrk::TrackExtensionAlg::m_truthParticlesKey
private
Initial value:
{
this, "TruthLocation", "",
"Truth container (to be enabled only for debugging)"}

Definition at line 61 of file TrackExtensionAlg.h.

61 {
62 this, "TruthLocation", "",
63 "Truth container (to be enabled only for debugging)"};

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 387 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
privateinherited

Definition at line 386 of file AthCommonDataStore.h.


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