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

#include <TrackExtensionAlg.h>

Inheritance diagram for ActsTrk::TrackExtensionAlg:
Collaboration 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 unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
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
virtual void setFilterPassed (bool state, const EventContext &ctx) const
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
PublicToolHandle< ActsTrk::ITrackingGeometryToolm_trackingGeometryTool
ToolHandle< ActsTrk::IExtrapolationToolm_extrapolationTool
ToolHandle< ActsTrk::IOnTrackCalibratorTool< detail::RecoTrackStateContainer > > m_pixelCalibTool
ToolHandle< ActsTrk::IOnTrackCalibratorTool< detail::RecoTrackStateContainer > > m_stripCalibTool
ToolHandle< ActsTrk::IOnTrackCalibratorTool< 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 50 of file TrackExtensionAlg.h.

Member Typedef Documentation

◆ CKFOptions

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

Definition at line 56 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

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::cardinality ( ) const
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64{
65 return 0;
66}

◆ 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 SG::ReadCondHandle<InDet::BeamSpotData> beamSpotHandle = SG::makeHandle( m_beamSpotKey, context );
127 ATH_CHECK( beamSpotHandle.isValid() );
128 const InDet::BeamSpotData* beamSpotData = beamSpotHandle.cptr();
129
130 // Beam Spot Position
131 Acts::Vector3 beamPos( beamSpotData->beamPos().x() * Acts::UnitConstants::mm,
132 beamSpotData->beamPos().y() * Acts::UnitConstants::mm,
133 0 );
134
135 // Construct a perigee surface as the target surface
136 std::shared_ptr<Acts::PerigeeSurface> perigeeSurface = Acts::Surface::makeShared<Acts::PerigeeSurface>(beamPos);
137
138 const Acts::GeometryContext tgContext = m_trackingGeometryTool->getGeometryContext(context).context();
139 const Acts::MagneticFieldContext mfContext = m_extrapolationTool->getMagneticFieldContext(context);
140 const Acts::CalibrationContext calContext{getCalibrationContext(context)};
141
142 detail::xAODUncalibMeasSurfAcc surfAcc{m_trackingGeometryTool.get()};
143
144 SG::ReadHandle<xAOD::PixelClusterContainer> pixelClustersHandle = SG::makeHandle(m_pixelClusters, context);
145 ATH_MSG_DEBUG("Measurements (pixels only) size: " << pixelClustersHandle->size());
146 // potential TODO: filtering only certain layers
147 detail::TrackFindingMeasurements measurements(1ul /* number of measurement containers*/);
148 measurements.addMeasurements(0, *pixelClustersHandle, *m_trackingGeometryTool->surfaceIdMap());
149 std::optional<detail::MeasurementIndex> measurementIndex;
150
151 if (m_trackStatePrinter.isSet()) {
152 measurementIndex.emplace(1ul);
153 measurementIndex->addMeasurements(*pixelClustersHandle);
154 }
155
156 using DefaultTrackStateCreator = Acts::TrackStateCreator<ActsTrk::detail::UncalibSourceLinkAccessor::Iterator,detail::RecoTrackContainer>;
157
158 ActsTrk::detail::UncalibSourceLinkAccessor slAccessor(measurements.measurementRanges());
159 DefaultTrackStateCreator::SourceLinkAccessor slAccessorDelegate;
160 slAccessorDelegate.connect<&ActsTrk::detail::UncalibSourceLinkAccessor::range>(&slAccessor);
161
162 Acts::PropagatorPlainOptions plainOptions(tgContext, mfContext);
163 plainOptions.maxSteps = 1000;
164 plainOptions.direction= m_propagateForward ? Acts::Direction::Forward() : Acts::Direction::Backward();
165
166
167
169 mfContext,
170 calContext,
171 m_ckfConfig->ckfExtensions,
172 plainOptions,
173 perigeeSurface.get());
174
175 options.targetSurface = perigeeSurface.get();
176
177 auto calibrator = detail::OnTrackCalibrator<detail::RecoTrackStateContainer>(
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
SG::ReadHandleKey< xAOD::PixelClusterContainer > m_pixelClusters
ToolHandle< ActsTrk::IOnTrackCalibratorTool< detail::RecoTrackStateContainer > > m_hgtdCalibTool
SG::WriteHandleKey< ActsTrk::TrackContainer > m_trackContainerKey
PublicToolHandle< ActsTrk::ITrackingGeometryTool > m_trackingGeometryTool
SG::ReadHandleKey< ActsTrk::ProtoTrackCollection > m_protoTrackCollectionKey
Acts::CombinatorialKalmanFilterOptions< detail::RecoTrackContainer > CKFOptions
std::unique_ptr< detail::CKF_config > m_ckfConfig
ToolHandle< ActsTrk::IFitterTool > m_actsFitter
ToolHandle< ActsTrk::IOnTrackCalibratorTool< detail::RecoTrackStateContainer > > m_pixelCalibTool
ToolHandle< ActsTrk::IExtrapolationTool > m_extrapolationTool
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthParticlesKey
ToolHandle< ActsTrk::IOnTrackCalibratorTool< detail::RecoTrackStateContainer > > m_stripCalibTool
Gaudi::Property< bool > m_propagateForward
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
std::pair< Iterator, Iterator > range(const Acts::Surface &surface) const
const Amg::Vector3D & beamPos() const noexcept
const_pointer_type cptr()
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::CalibrationContext getCalibrationContext(const EventContext &ctx)
The Acts::Calibration context is piped through the Acts fitters to (re)calibrate the Acts::SourceLink...
Acts::TrackStateCreator< ActsTrk::detail::UncalibSourceLinkAccessor::Iterator, detail::RecoTrackContainer > DefaultTrackStateCreator
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 & AthCommonReentrantAlgorithm< 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 94 of file AthCommonReentrantAlgorithm.cxx.

90{
91 // If we didn't find any symlinks to add, just return the collection
92 // from the base class. Otherwise, return the extended collection.
93 if (!m_extendedExtraObjects.empty()) {
95 }
97}
An algorithm that can be simultaneously executed in multiple threads.

◆ filterPassed()

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

Definition at line 96 of file AthCommonReentrantAlgorithm.h.

96 {
97 return execState( ctx ).filterPassed();
98 }
virtual bool filterPassed(const EventContext &ctx) const

◆ 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());
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_trackingGeometryTool->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()

◆ 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 AthCommonReentrantAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100 {
102 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const

◆ sysExecute()

StatusCode AthCommonReentrantAlgorithm< 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.

Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.

77{
78 return BaseAlg::sysExecute (ctx);
79}

◆ sysInitialize()

StatusCode AthCommonReentrantAlgorithm< 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 HypoBase, and InputMakerBase.

Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.

107 {
109
110 if (sc.isFailure()) {
111 return sc;
112 }
113
114 ServiceHandle<ICondSvc> cs("CondSvc",name());
115 for (auto h : outputHandles()) {
116 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
117 // do this inside the loop so we don't create the CondSvc until needed
118 if ( cs.retrieve().isFailure() ) {
119 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
120 return StatusCode::SUCCESS;
121 }
122 if (cs->regHandle(this,*h).isFailure()) {
124 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
125 << " with CondSvc");
126 }
127 }
128 }
129 return sc;
130}
#define ATH_MSG_ERROR(x)
#define ATH_MSG_WARNING(x)
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 90 of file TrackExtensionAlg.h.

90 {
91 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 71 of file TrackExtensionAlg.h.

71 {
72 this, "BeamSpotKey", "BeamSpotData",
73 "SG key for beam spot"};

◆ m_ckfConfig

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

Definition at line 96 of file TrackExtensionAlg.h.

◆ 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 AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

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

Empty if no symlinks were found.

Definition at line 114 of file AthCommonReentrantAlgorithm.h.

◆ m_extrapolationTool

ToolHandle<ActsTrk::IExtrapolationTool> ActsTrk::TrackExtensionAlg::m_extrapolationTool
private
Initial value:
{
this, "ExtrapolationTool", ""}

Definition at line 77 of file TrackExtensionAlg.h.

77 {
78 this, "ExtrapolationTool", ""};

◆ m_hgtdCalibTool

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

Definition at line 86 of file TrackExtensionAlg.h.

86 {this, "HGTDCalibrator", "",
87 "Opt. HGTD measurement calibrator"};

◆ m_logger

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

Definition at line 97 of file TrackExtensionAlg.h.

◆ m_pixelCalibTool

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

Definition at line 80 of file TrackExtensionAlg.h.

80 {this, "PixelCalibrator", "",
81 "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 59 of file TrackExtensionAlg.h.

59 {
60 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 93 of file TrackExtensionAlg.h.

93 {this, "PropagateForward", false,
94 "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 61 of file TrackExtensionAlg.h.

61 {
62 this, "ProtoTracksLocation", "", "Input proto tracks"};

◆ m_stripCalibTool

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

Definition at line 83 of file TrackExtensionAlg.h.

83 {this, "StripCalibrator", "",
84 "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 66 of file TrackExtensionAlg.h.

66 {
67 this, "ACTSTracksLocation", "",
68 "Output track collection (ActsTrk variant)"};

◆ m_trackingGeometryTool

PublicToolHandle<ActsTrk::ITrackingGeometryTool> ActsTrk::TrackExtensionAlg::m_trackingGeometryTool
private
Initial value:
{
this, "TrackingGeometryTool", ""}

Definition at line 75 of file TrackExtensionAlg.h.

75 {
76 this, "TrackingGeometryTool", ""};

◆ m_tracksBackendHandlesHelper

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

Definition at line 69 of file TrackExtensionAlg.h.

69{this};

◆ m_trackStatePrinter

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

Definition at line 88 of file TrackExtensionAlg.h.

88 {
89 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 63 of file TrackExtensionAlg.h.

63 {
64 this, "TruthLocation", "",
65 "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: