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

#include <TrackFindingGNNAlg.h>

Inheritance diagram for ActsTrk::TrackFindingGNNAlg:
Collaboration diagram for ActsTrk::TrackFindingGNNAlg:

Public Member Functions

 TrackFindingGNNAlg (const std::string &name, ISvcLocator *pSvcLocator)
virtual ~TrackFindingGNNAlg ()
virtual StatusCode initialize () override
virtual StatusCode execute (const EventContext &ctx) 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

const Acts::Logger & logger () const
 Private access to the logger.
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

ToolHandle< GenericMonitoringTool > m_monTool
ServiceHandle< ActsTrk::ITrackingGeometrySvc > m_trackingGeometrySvc {this, "TrackingGeometrySvc", "ActsTrackingGeometrySvc"}
ToolHandle< ITrackParamsEstimationTool > m_paramEstimationTool
ToolHandle< IFitterTool > m_fitterTool
ToolHandle< ActsTrk::IGnnPipelineTool > m_gnnPipelineTool
ContextUtility m_ctxProvider {this}
 Utility to fetch the geometry, magnetic field and calibration context in the event.
ServiceHandle< IChronoStatSvc > m_chronoSvc {"ChronoStatSvc", name()}
detail::xAODUncalibMeasSurfAcc m_uncalibMeasSurfAccessor {}
detail::OnTrackCalibrator< MutableTrackStateBackend > m_uncalibMeasCalibrator {}
SG::ReadHandleKey< xAOD::SpacePointContainer > m_xaodPixelSpacePointContainerKey
SG::ReadHandleKey< xAOD::SpacePointContainer > m_xaodStripSpacePointContainerKey
SG::ReadHandleKey< xAOD::SpacePointContainer > m_xaodStripSpacePointOverlapContainerKey
SG::WriteHandleKey< TrackContainer > m_trackContainerKey
Gaudi::Property< unsigned int > m_maxPropagationStep
Gaudi::Property< double > m_varianceInflation
Gaudi::Property< bool > m_tightSeeds
Gaudi::Property< bool > m_relaxCentralHoleSel
Gaudi::Property< bool > m_relaxMeasurementSel
Gaudi::Property< bool > m_offlineZ0Sel
Acts::TrackSelector::EtaBinnedConfig m_trackSelectorConfig
std::unique_ptr< const Acts::Logger > m_logger
 logging instance
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 49 of file TrackFindingGNNAlg.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 376 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ TrackFindingGNNAlg()

ActsTrk::TrackFindingGNNAlg::TrackFindingGNNAlg ( const std::string & name,
ISvcLocator * pSvcLocator )

Definition at line 38 of file TrackFindingGNNAlg.cxx.

40 : AthReentrantAlgorithm(name, pSvcLocator) {}

◆ ~TrackFindingGNNAlg()

ActsTrk::TrackFindingGNNAlg::~TrackFindingGNNAlg ( )
virtualdefault

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 ActsTrk::TrackFindingGNNAlg::execute ( const EventContext & ctx) const
overridevirtual

Definition at line 113 of file TrackFindingGNNAlg.cxx.

113 {
114 ACTS_DEBUG("TrackFindingGNNAlg::execute() - begin");
115
116 std::optional<Athena::Chrono> timer;
117 timer.emplace("GNN get spacepoint handles", m_chronoSvc.get());
118
119 const Acts::GeometryContext gctx = m_ctxProvider.getGeometryContext(ctx);
120 const Acts::MagneticFieldContext mctx = m_ctxProvider.getMagneticFieldContext(ctx);
121 const Acts::CalibrationContext cctx = m_ctxProvider.getCalibrationContext(ctx);
122
123 auto detElToGeoIdMap = m_trackingGeometrySvc->surfaceIdMap();
124
125 // Collect the spacepoint containers and hand them to the GNN pipeline
126 auto pixelSPHandle = SG::makeHandle(m_xaodPixelSpacePointContainerKey, ctx);
127 ATH_CHECK(pixelSPHandle.isValid());
128 auto stripSPHandle = SG::makeHandle(m_xaodStripSpacePointContainerKey, ctx);
129 ATH_CHECK(stripSPHandle.isValid());
130 auto stripSPOVHandle =
132 ATH_CHECK(stripSPOVHandle.isValid());
133
134 std::vector<const xAOD::SpacePointContainer*> spacePointCollections{
135 pixelSPHandle.cptr(), stripSPHandle.cptr(), stripSPOVHandle.cptr()};
136
137 timer.reset();
138 timer.emplace("GNN seed building", m_chronoSvc.get());
139
140 ActsTrk::SeedContainer gnnSeeds;
141 ATH_CHECK(m_gnnPipelineTool->buildSeed(spacePointCollections, gnnSeeds));
142
143 ACTS_DEBUG("GNN produced " << gnnSeeds.size() << " seed candidates");
144
145 timer.reset();
146 timer.emplace("GNN parameter estimation + fit", m_chronoSvc.get());
147
148 Acts::VectorTrackContainer trackBackend;
149 Acts::VectorMultiTrajectory trackStateBackend;
150 constexpr std::size_t nTracksExpected = 3000;
151 trackBackend.reserve(nTracksExpected);
152 trackStateBackend.reserve(nTracksExpected * 30);
153 detail::RecoTrackContainer tracks(trackBackend, trackStateBackend);
155
156 auto retrieveSurface = [&](const ActsTrk::Seed& seed, bool useTopSp) -> const Acts::Surface& {
157 const xAOD::SpacePoint* sp = useTopSp ? seed.sp().front() : seed.sp().back();
158 auto geoId = ActsTrk::getSurfaceGeometryIdOfMeasurement(*detElToGeoIdMap, *sp->measurements().front());
159 const auto* surface = m_trackingGeometrySvc->trackingGeometry()->findSurface(geoId);
160 if (!surface) {
161 throw std::runtime_error("retrieveSurface: no Acts surface for GeometryIdentifier " + std::to_string(geoId.value()));
162 }
163 return *surface;
164 };
165
166 for (const ActsTrk::Seed gnnSeed : gnnSeeds) {
167 ActsTrk::SpacePointRange cand = gnnSeed.sp();
168
169 // The parameter estimation tool selects the SPs used for the estimate (see its parameterEstimationMode property)
170 const auto& [initialParamsOpt, estimationStatus] = m_paramEstimationTool->estimateTrackParameters(
171 gnnSeed, /*useTopSp=*/true, gctx, mctx, cctx, retrieveSurface);
172 if (!initialParamsOpt.has_value()) continue;
173
174 // Space points are already ordered by radius by the GNN pipeline tool
175 std::vector<const xAOD::UncalibratedMeasurement*> measList;
176 measList.reserve(cand.size() * 2);
177 for (const xAOD::SpacePoint* sp : cand) {
178 for (const xAOD::UncalibratedMeasurement* m : sp->measurements()) {
179 measList.push_back(m);
180 }
181 }
182
183 auto fitted = m_fitterTool->fit(measList, *initialParamsOpt, gctx, mctx, cctx);
184 if (fitted) {
185 for (auto track : *fitted) {
186 auto newTrack = tracks.makeTrack();
187 newTrack.copyFrom(track);
188 }
189 }
190 }
191
192 ACTS_DEBUG("After track fit: " << tracks.size() << " / " << gnnSeeds.size()
193 << " successfull");
194
195 timer.reset();
196 timer.emplace("Track selection & conversion", m_chronoSvc.get());
197
198 Acts::VectorTrackContainer selTrackBackend;
199 selTrackBackend.reserve(trackBackend.size());
200 detail::RecoTrackContainer selectedTracks(selTrackBackend, trackStateBackend);
202
203 Acts::TrackSelector selector(m_trackSelectorConfig);
204 for (auto track : tracks) {
205 if (selector.isValidTrack(track)) {
206 auto newTrack = selectedTracks.makeTrack();
207
208 // v45: copyFrom now copies everything including tip/stem indices
209 newTrack.copyFrom(track);
210 }
211 }
212
213 ACTS_DEBUG("GNN seeds: " << gnnSeeds.size() << ", fitted: " << tracks.size()
214 << ", selected: " << selectedTracks.size());
215
216 // Write tracks to storage again
217 Acts::ConstVectorTrackContainer constTrackBackend(std::move(selTrackBackend));
218 Acts::ConstVectorMultiTrajectory constTrackStateBackend(std::move(trackStateBackend));
219 std::unique_ptr<ActsTrk::TrackContainer> constTracksContainer
220 = std::make_unique<ActsTrk::TrackContainer>(std::move(constTrackBackend), std::move(constTrackStateBackend) );
221
222 ACTS_DEBUG("Storing track collection with key '" << m_trackContainerKey.key() << "'");
223 SG::WriteHandle<ActsTrk::TrackContainer> trackContainerHandle = SG::makeHandle(m_trackContainerKey, ctx);
224 ATH_CHECK(trackContainerHandle.record(std::move(constTracksContainer)));
225
226 return StatusCode::SUCCESS;
227}
#define ATH_CHECK
Evaluate an expression and check for errors.
static Double_t sp
Acts::TrackSelector::EtaBinnedConfig m_trackSelectorConfig
ToolHandle< ITrackParamsEstimationTool > m_paramEstimationTool
SG::ReadHandleKey< xAOD::SpacePointContainer > m_xaodStripSpacePointOverlapContainerKey
SG::ReadHandleKey< xAOD::SpacePointContainer > m_xaodPixelSpacePointContainerKey
ServiceHandle< ActsTrk::ITrackingGeometrySvc > m_trackingGeometrySvc
SG::WriteHandleKey< TrackContainer > m_trackContainerKey
ContextUtility m_ctxProvider
Utility to fetch the geometry, magnetic field and calibration context in the event.
ServiceHandle< IChronoStatSvc > m_chronoSvc
SG::ReadHandleKey< xAOD::SpacePointContainer > m_xaodStripSpacePointContainerKey
ToolHandle< ActsTrk::IGnnPipelineTool > m_gnnPipelineTool
ToolHandle< IFitterTool > m_fitterTool
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
Acts::TrackContainer< Acts::VectorTrackContainer, Acts::VectorMultiTrajectory > RecoTrackContainer
Acts::GeometryIdentifier getSurfaceGeometryIdOfMeasurement(const DetectorElementToActsGeometryIdMap &detector_element_to_geoid, const xAOD::UncalibratedMeasurement &measurement)
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
timer(name, disabled=False)
UncalibratedMeasurement_v1 UncalibratedMeasurement
Define the version of the uncalibrated measurement class.
std::size_t size() const noexcept
static void addFitterTypeProperty(track_container_t &tracksContainer)
add fitter column to the track container

◆ 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 ActsTrk::TrackFindingGNNAlg::initialize ( )
overridevirtual

Definition at line 46 of file TrackFindingGNNAlg.cxx.

46 {
47 // Athena tools
48 m_logger = makeActsAthenaLogger(this, "Acts GNN Algorithm");
49 ACTS_DEBUG("TrackFindingGNNAlg::initialize() - begin");
51 ATH_CHECK(m_trackContainerKey.initialize());
52 ATH_CHECK(m_ctxProvider.initialize());
56 ATH_CHECK(m_trackContainerKey.initialize());
57 ATH_CHECK(m_chronoSvc.retrieve());
59 ATH_CHECK(m_fitterTool.retrieve());
60 ATH_CHECK(m_gnnPipelineTool.retrieve());
61
63 detail::xAODUncalibMeasSurfAcc{m_trackingGeometrySvc.get()};
67
68 using TSC = Acts::TrackSelector::Config;
69 m_trackSelectorConfig = Acts::TrackSelector::EtaBinnedConfig(0.0);
70
71 auto commonConfig = [&](TSC &config) {
72 config.requireReferenceSurface = true;
73 config.loc1Min = m_offlineZ0Sel.value() ? -200_mm : -150_mm; // z0 min
74 config.loc1Max = m_offlineZ0Sel.value() ? 200_mm : 150_mm; // z0 max
75 };
76
78 .addCuts(2.0,
79 [&](TSC &config) {
80 commonConfig(config);
81 config.maxHoles = m_relaxCentralHoleSel.value() ? 4 : 2;
82 config.minMeasurements = m_relaxMeasurementSel.value() ? 7 : 9;
83 config.ptMin = 900_MeV;
84 config.loc0Max = 2_mm; // d0 max
85 config.loc0Min = -2_mm; // d0 min
86 })
87 .addCuts(2.6,
88 [&](TSC &config) {
89 commonConfig(config);
90 config.maxHoles = m_relaxCentralHoleSel.value() ? 4 : 2;
91 config.minMeasurements = m_relaxMeasurementSel.value() ? 7 : 8;
92 config.ptMin = 400_MeV;
93 config.loc0Max = 2_mm; // d0 max
94 config.loc0Min = -2_mm; // d0 min
95 })
96 .addCuts([&](TSC &config) {
97 commonConfig(config);
98 config.maxHoles = 2;
99 config.minMeasurements = 7;
100 config.ptMin = 400_MeV;
101 config.loc0Max = 10_mm; // d0 max
102 config.loc0Min = -10_mm; // d0 min
103 });
104
105 ACTS_INFO("Track selector config:\n" << m_trackSelectorConfig);
106
107 ACTS_DEBUG("TrackFindingGNNAlg::initialize() - end");
108 return StatusCode::SUCCESS;
109}
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
Gaudi::Property< bool > m_relaxCentralHoleSel
std::unique_ptr< const Acts::Logger > m_logger
logging instance
detail::OnTrackCalibrator< MutableTrackStateBackend > m_uncalibMeasCalibrator
Gaudi::Property< bool > m_relaxMeasurementSel
Gaudi::Property< bool > m_offlineZ0Sel
detail::xAODUncalibMeasSurfAcc m_uncalibMeasSurfAccessor
static OnTrackCalibrator NoCalibration(const ActsTrk::ITrackingGeometrySvc *trackGeoSvc)
Constructs a calibrator which copies the local position & covariance of the ITk measurements onto the...

◆ 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 }

◆ logger()

const Acts::Logger & ActsTrk::TrackFindingGNNAlg::logger ( ) const
inlineprivate

Private access to the logger.

Definition at line 118 of file TrackFindingGNNAlg.h.

118{ return *m_logger; }

◆ 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_chronoSvc

ServiceHandle<IChronoStatSvc> ActsTrk::TrackFindingGNNAlg::m_chronoSvc {"ChronoStatSvc", name()}
private

Definition at line 71 of file TrackFindingGNNAlg.h.

71{"ChronoStatSvc", name()};

◆ m_ctxProvider

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

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

Definition at line 70 of file TrackFindingGNNAlg.h.

70{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_fitterTool

ToolHandle<IFitterTool> ActsTrk::TrackFindingGNNAlg::m_fitterTool
private
Initial value:
{
this, "FitterTool", "", "Track fitting tool"}

Definition at line 64 of file TrackFindingGNNAlg.h.

64 {
65 this, "FitterTool", "", "Track fitting tool"};

◆ m_gnnPipelineTool

ToolHandle<ActsTrk::IGnnPipelineTool> ActsTrk::TrackFindingGNNAlg::m_gnnPipelineTool
private
Initial value:
{
this, "GnnPipelineTool", "", "GNN seeding pipeline"}

Definition at line 66 of file TrackFindingGNNAlg.h.

66 {
67 this, "GnnPipelineTool", "", "GNN seeding pipeline"};

◆ m_logger

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

logging instance

Definition at line 121 of file TrackFindingGNNAlg.h.

◆ m_maxPropagationStep

Gaudi::Property<unsigned int> ActsTrk::TrackFindingGNNAlg::m_maxPropagationStep
private
Initial value:
{
this, "maxPropagationStep", 1000,
"Maximum number of steps for one propagate call"}

Definition at line 94 of file TrackFindingGNNAlg.h.

94 {
95 this, "maxPropagationStep", 1000,
96 "Maximum number of steps for one propagate call"};

◆ m_monTool

ToolHandle<GenericMonitoringTool> ActsTrk::TrackFindingGNNAlg::m_monTool
private
Initial value:
{this, "MonTool", "",
"Monitoring tool"}

Definition at line 59 of file TrackFindingGNNAlg.h.

59 {this, "MonTool", "",
60 "Monitoring tool"};

◆ m_offlineZ0Sel

Gaudi::Property<bool> ActsTrk::TrackFindingGNNAlg::m_offlineZ0Sel
private
Initial value:
{
this, "offlineZ0Sel", false, "Apply offline z0 selection"}

Definition at line 112 of file TrackFindingGNNAlg.h.

112 {
113 this, "offlineZ0Sel", false, "Apply offline z0 selection"};

◆ m_paramEstimationTool

ToolHandle<ITrackParamsEstimationTool> ActsTrk::TrackFindingGNNAlg::m_paramEstimationTool
private
Initial value:
{
this, "TrackParamsEstimationTool", "", "Track Param Estimation from Seeds"}

Definition at line 62 of file TrackFindingGNNAlg.h.

62 {
63 this, "TrackParamsEstimationTool", "", "Track Param Estimation from Seeds"};

◆ m_relaxCentralHoleSel

Gaudi::Property<bool> ActsTrk::TrackFindingGNNAlg::m_relaxCentralHoleSel
private
Initial value:
{
this, "relaxCentralHoleSel", false, "Relax holes from 2 to 4 in central region"}

Definition at line 106 of file TrackFindingGNNAlg.h.

106 {
107 this, "relaxCentralHoleSel", false, "Relax holes from 2 to 4 in central region"};

◆ m_relaxMeasurementSel

Gaudi::Property<bool> ActsTrk::TrackFindingGNNAlg::m_relaxMeasurementSel
private
Initial value:
{
this, "relaxMeasurementSel", true, "Apply 7,7,7 measurement sel"}

Definition at line 109 of file TrackFindingGNNAlg.h.

109 {
110 this, "relaxMeasurementSel", true, "Apply 7,7,7 measurement sel"};

◆ m_tightSeeds

Gaudi::Property<bool> ActsTrk::TrackFindingGNNAlg::m_tightSeeds
private
Initial value:
{
this, "tightSeeds", false,
"Use tight seeds instead of spread seeds for param estimation"}

Definition at line 102 of file TrackFindingGNNAlg.h.

102 {
103 this, "tightSeeds", false,
104 "Use tight seeds instead of spread seeds for param estimation"};

◆ m_trackContainerKey

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

Definition at line 89 of file TrackFindingGNNAlg.h.

89 {
90 this, "ACTSTracksLocation", "",
91 "Output track collection (ActsTrk variant)"};

◆ m_trackingGeometrySvc

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

Definition at line 61 of file TrackFindingGNNAlg.h.

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

◆ m_trackSelectorConfig

Acts::TrackSelector::EtaBinnedConfig ActsTrk::TrackFindingGNNAlg::m_trackSelectorConfig
private

Definition at line 115 of file TrackFindingGNNAlg.h.

◆ m_uncalibMeasCalibrator

detail::OnTrackCalibrator<MutableTrackStateBackend> ActsTrk::TrackFindingGNNAlg::m_uncalibMeasCalibrator {}
private

Definition at line 75 of file TrackFindingGNNAlg.h.

75{};

◆ m_uncalibMeasSurfAccessor

detail::xAODUncalibMeasSurfAcc ActsTrk::TrackFindingGNNAlg::m_uncalibMeasSurfAccessor {}
private

Definition at line 73 of file TrackFindingGNNAlg.h.

73{};

◆ m_varHandleArraysDeclared

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

Definition at line 387 of file AthCommonDataStore.h.

◆ m_varianceInflation

Gaudi::Property<double> ActsTrk::TrackFindingGNNAlg::m_varianceInflation
private
Initial value:
{
this, "varianceInflation", 1.0,
"Factor that is multiplied to all initial variances"}

Definition at line 98 of file TrackFindingGNNAlg.h.

98 {
99 this, "varianceInflation", 1.0,
100 "Factor that is multiplied to all initial variances"};

◆ m_vhka

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

Definition at line 386 of file AthCommonDataStore.h.

◆ m_xaodPixelSpacePointContainerKey

SG::ReadHandleKey<xAOD::SpacePointContainer> ActsTrk::TrackFindingGNNAlg::m_xaodPixelSpacePointContainerKey
private
Initial value:
{this, "xAODInputPixelSpacePoints",
"ITkPixelSpacePoints"}

Definition at line 79 of file TrackFindingGNNAlg.h.

79 {this, "xAODInputPixelSpacePoints",
80 "ITkPixelSpacePoints"};

◆ m_xaodStripSpacePointContainerKey

SG::ReadHandleKey<xAOD::SpacePointContainer> ActsTrk::TrackFindingGNNAlg::m_xaodStripSpacePointContainerKey
private
Initial value:
{
this, "xAODInputSpacePointsContainerKey", "ITkStripSpacePoints"}

Definition at line 82 of file TrackFindingGNNAlg.h.

82 {
83 this, "xAODInputSpacePointsContainerKey", "ITkStripSpacePoints"};

◆ m_xaodStripSpacePointOverlapContainerKey

SG::ReadHandleKey<xAOD::SpacePointContainer> ActsTrk::TrackFindingGNNAlg::m_xaodStripSpacePointOverlapContainerKey
private
Initial value:
{
this, "xAODInputSpacePointsOverlapContainerKey",
"ITkStripOverlapSpacePoints"}

Definition at line 85 of file TrackFindingGNNAlg.h.

85 {
86 this, "xAODInputSpacePointsOverlapContainerKey",
87 "ITkStripOverlapSpacePoints"};

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