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< StoreGateSvcStoreGateSvc_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::PixelClusterContainerm_pixelClusters
SG::ReadHandleKey< ActsTrk::ProtoTrackCollectionm_protoTrackCollectionKey
SG::ReadHandleKey< xAOD::TruthParticleContainerm_truthParticlesKey
SG::WriteHandleKey< ActsTrk::TrackContainerm_trackContainerKey
ActsTrk::MutableTrackContainerHandlesHelper m_tracksBackendHandlesHelper {this}
SG::ReadCondHandleKey< InDet::BeamSpotDatam_beamSpotKey
ServiceHandle< ActsTrk::ITrackingGeometrySvcm_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::TrackStatePrinterToolm_trackStatePrinter
ToolHandle< ActsTrk::IFitterToolm_actsFitter
Gaudi::Property< bool > m_propagateForward
std::unique_ptr< detail::CKF_configm_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 388 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 112 of file TrackExtensionAlg.cxx.

112 {
113 SG::ReadHandle<ActsTrk::ProtoTrackCollection> protoTracksHandle = SG::makeHandle(m_protoTrackCollectionKey, context);
114 ATH_CHECK(protoTracksHandle.isValid());
115
116 Acts::VectorTrackContainer tback;
117 Acts::VectorMultiTrajectory tsBack;
118 detail::RecoTrackContainer trackContainer(tback, tsBack);
119
120 // track finding goes here
121 Acts::VectorTrackContainer trackBackend;
122 Acts::VectorMultiTrajectory trackStateBackend;
123 detail::RecoTrackContainer tracksContainerTemp(trackBackend, trackStateBackend);
124
125 // Get Beam pos and make pSurface
126 const InDet::BeamSpotData* beamSpotData{};
127 ATH_CHECK(SG::get(beamSpotData, m_beamSpotKey, context));
128
129 // Beam Spot Position
130 Acts::Vector3 beamPos( beamSpotData->beamPos().x() * Acts::UnitConstants::mm,
131 beamSpotData->beamPos().y() * Acts::UnitConstants::mm,
132 0 );
133
134 // Construct a perigee surface as the target surface
135 std::shared_ptr<Acts::PerigeeSurface> perigeeSurface = Acts::Surface::makeShared<Acts::PerigeeSurface>(beamPos);
136
137 const Acts::GeometryContext tgContext{m_ctxProvider.getGeometryContext(context)};
138 const Acts::MagneticFieldContext mfContext{m_ctxProvider.getMagneticFieldContext(context)};
139 const Acts::CalibrationContext calContext{m_ctxProvider.getCalibrationContext(context)};
140
141 detail::xAODUncalibMeasSurfAcc surfAcc{m_trackingGeometrySvc.get()};
142
143 SG::ReadHandle<xAOD::PixelClusterContainer> pixelClustersHandle = SG::makeHandle(m_pixelClusters, context);
144 ATH_MSG_DEBUG("Measurements (pixels only) size: " << pixelClustersHandle->size());
145 // potential TODO: filtering only certain layers
146 detail::TrackFindingMeasurements measurements(1ul /* number of measurement containers*/);
147 measurements.addMeasurements(0, *pixelClustersHandle, *m_trackingGeometrySvc->surfaceIdMap());
148 std::optional<detail::MeasurementIndex> measurementIndex;
149
150 if (m_trackStatePrinter.isSet()) {
151 measurementIndex.emplace(1ul);
152 measurementIndex->addMeasurements(*pixelClustersHandle);
153 }
154
155 using DefaultTrackStateCreator = Acts::TrackStateCreator<ActsTrk::detail::UncalibSourceLinkAccessor::Iterator,detail::RecoTrackContainer>;
156
157 ActsTrk::detail::UncalibSourceLinkAccessor slAccessor(measurements.measurementRanges());
158 DefaultTrackStateCreator::SourceLinkAccessor slAccessorDelegate;
159 slAccessorDelegate.connect<&ActsTrk::detail::UncalibSourceLinkAccessor::range>(&slAccessor);
160
161 Acts::PropagatorPlainOptions plainOptions(tgContext, mfContext);
162 plainOptions.maxSteps = 1000;
163 plainOptions.direction= m_propagateForward ? Acts::Direction::Forward() : Acts::Direction::Backward();
164
165
166
168 mfContext,
169 calContext,
170 m_ckfConfig->ckfExtensions,
171 plainOptions,
172 perigeeSurface.get());
173
174 options.targetSurface = perigeeSurface.get();
175
176 auto calibrator = detail::OnTrackCalibrator<detail::RecoTrackStateContainer>(
177 context,
182
183 DefaultTrackStateCreator defaultTrackStateCreator{};
184 defaultTrackStateCreator.sourceLinkAccessor = slAccessorDelegate;
185 defaultTrackStateCreator.calibrator.template connect<&detail::OnTrackCalibrator<detail::RecoTrackStateContainer>::calibrate>(&calibrator);
186
187 options.extensions.createTrackStates.template connect<
188 &DefaultTrackStateCreator
189 ::createTrackStates>(&defaultTrackStateCreator);
190
191 if ( not m_truthParticlesKey.empty() ) {
192 auto truthHandle = SG::ReadHandle(m_truthParticlesKey, context);
193 for ( auto truthParticle: *truthHandle ) {
194 ATH_MSG_DEBUG("truth: eta: " << truthParticle->eta() << " phi: " << truthParticle->phi() << " pt: " << truthParticle->pt());
195 }
196 }
197
198 ATH_MSG_DEBUG("Size of proto tracks collection " << protoTracksHandle->size());
199 for (const ActsTrk::ProtoTrack& protoTrack : *protoTracksHandle) {
200 if(protoTrack.measurements.empty()) continue;
201
202 const Acts::Surface* refSurface = surfAcc.get(protoTrack.measurements[0]);
203
204 auto res = m_actsFitter->fit(protoTrack.measurements, *protoTrack.parameters,
205 tgContext, mfContext, calContext, refSurface);
206 if(!res) continue;
207 if (res->size() == 0 ) continue;
208 ATH_MSG_DEBUG(".......Done fit of track with "<< protoTrack.measurements.size() << " measurements");
209 const auto trackProxy = res->getTrack(0);
210 if (not trackProxy.hasReferenceSurface()) {
211 ATH_MSG_INFO("There is not reference surface for this track");
212 continue;
213 }
214
215 Acts::BoundTrackParameters parametersAtRefSurface( trackProxy.referenceSurface().getSharedPtr(),
216 trackProxy.parameters(),
217 trackProxy.covariance(),
218 trackProxy.particleHypothesis());
219
220
221
222 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())));
223 ATH_MSG_DEBUG("Extending proto track of " << protoTrack.measurements.size() << " measurements");
224 auto result = m_ckfConfig->ckf.findTracks(parametersAtRefSurface, options,
225 tracksContainerTemp);
226
227
228 ATH_MSG_DEBUG("Built " << tracksContainerTemp.size() << " tracks from it");
229 for (detail::RecoTrackContainer::TrackProxy tempTrackProxy : tracksContainerTemp) {
230 auto destTrackProxy = trackContainer.makeTrack();
231 ATH_MSG_DEBUG("Reco MTJ size " << trackStateBackend.size() );
232 for ( size_t stateIndex=0; stateIndex < trackStateBackend.size(); ++stateIndex) {
233 auto state = trackStateBackend.getTrackState(stateIndex);
234 if (m_trackStatePrinter.isSet()) m_trackStatePrinter->printTrackState(tgContext, state, *measurementIndex, false);
235 }
236 ATH_MSG_DEBUG("Track has: " << tempTrackProxy.nMeasurements() << " measurements ");
237 ATH_MSG_DEBUG("track: eta: " << -1 * log(tan( tempTrackProxy.theta() * 0.5)) << " phi: " << tempTrackProxy.phi() << " pt:" << abs(1./tempTrackProxy.qOverP() * sin(protoTrack.parameters->theta())));
238
239 destTrackProxy.copyFrom(tempTrackProxy);
240 }
241 }
242
243
244
245 // convert to const version
246 Acts::ConstVectorTrackContainer ctback( std::move(tback) );
247 Acts::ConstVectorMultiTrajectory ctsBack( std::move(tsBack) );
248 std::unique_ptr< ActsTrk::TrackContainer > ctrackContainer = std::make_unique< ActsTrk::TrackContainer >( std::move(ctback), std::move(ctsBack) );
249
250 SG::WriteHandle<ActsTrk::TrackContainer> trackContainerHandle = SG::makeHandle( m_trackContainerKey, context );
251 ATH_CHECK(trackContainerHandle.record(std::move(ctrackContainer)));
252
253 return StatusCode::SUCCESS;
254 }
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_INFO(x)
#define ATH_MSG_DEBUG(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{trackingGeometry};
79 cfg.resolvePassive = false;
80 cfg.resolveMaterial = true;
81 cfg.resolveSensitive = true;
82 detail::Navigator navigator(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 std::move(extrapolator),
101 detail::CKF{std::move(propagator), m_logger->cloneWithSuffix("CKF")},
102 {},
103 Acts::TrackSelector{trackSelectorCfg}};
104
105 m_ckfConfig = std::make_unique<detail::CKF_config>(std::move(ckfConfig));
106 return StatusCode::SUCCESS;
107 }
std::unique_ptr< const Acts::Logger > makeActsAthenaLogger(IMessageSvc *svc, const std::string &name, int level, std::optional< std::string > parent_name)
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 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
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 364 of file AthCommonDataStore.h.

364 {
366 }

◆ setFilterPassed()

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

Set filter decision:

Reimplemented in AthFilterAlgorithm.

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, AthFilterAlgorithm, 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 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }

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 393 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 390 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 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


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