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< StoreGateSvcStoreGateSvc_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< GenericMonitoringToolm_monTool
ServiceHandle< ActsTrk::ITrackingGeometrySvcm_trackingGeometrySvc {this, "TrackingGeometrySvc", "ActsTrackingGeometrySvc"}
ToolHandle< ITrackParamsEstimationToolm_paramEstimationTool
ToolHandle< IFitterToolm_fitterTool
ToolHandle< ActsTrk::IGnnPipelineToolm_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< MutableTrackStateBackendm_uncalibMeasCalibrator {}
SG::ReadHandleKey< xAOD::SpacePointContainerm_xaodPixelSpacePointContainerKey
SG::ReadHandleKey< xAOD::SpacePointContainerm_xaodStripSpacePointContainerKey
SG::ReadHandleKey< xAOD::SpacePointContainerm_xaodStripSpacePointOverlapContainerKey
SG::WriteHandleKey< TrackContainerm_trackContainerKey
Gaudi::Property< unsigned int > m_maxPropagationStep
Gaudi::Property< double > m_varianceInflation
Gaudi::Property< bool > m_tightSeeds
Gaudi::Property< double > m_minDeltaR
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 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ TrackFindingGNNAlg()

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

Definition at line 41 of file TrackFindingGNNAlg.cxx.

43 : 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 116 of file TrackFindingGNNAlg.cxx.

116 {
117 ACTS_DEBUG("TrackFindingGNNAlg::execute() - begin");
118
119 std::optional<Athena::Chrono> timer;
120 timer.emplace("GNN get spacepoint handles", m_chronoSvc.get());
121
122 const Acts::GeometryContext gctx = m_ctxProvider.getGeometryContext(ctx);
123 const Acts::MagneticFieldContext mctx = m_ctxProvider.getMagneticFieldContext(ctx);
124 const Acts::CalibrationContext cctx = m_ctxProvider.getCalibrationContext(ctx);
125
126 auto detElToGeoIdMap = m_trackingGeometrySvc->surfaceIdMap();
127
128 // Collect the spacepoint containers and hand them to the GNN pipeline
129 auto pixelSPHandle = SG::makeHandle(m_xaodPixelSpacePointContainerKey, ctx);
130 ATH_CHECK(pixelSPHandle.isValid());
131 auto stripSPHandle = SG::makeHandle(m_xaodStripSpacePointContainerKey, ctx);
132 ATH_CHECK(stripSPHandle.isValid());
133 auto stripSPOVHandle =
135 ATH_CHECK(stripSPOVHandle.isValid());
136
137 std::vector<const xAOD::SpacePointContainer*> spacePointCollections{
138 pixelSPHandle.cptr(), stripSPHandle.cptr(), stripSPOVHandle.cptr()};
139
140 timer.reset();
141 timer.emplace("GNN seed building", m_chronoSvc.get());
142
143 ActsTrk::SeedContainer gnnSeeds;
144 ATH_CHECK(m_gnnPipelineTool->buildSeed(spacePointCollections, gnnSeeds));
145
146 ACTS_DEBUG("GNN produced " << gnnSeeds.size() << " seed candidates");
147
148 timer.reset();
149 timer.emplace("GNN parameter estimation + fit", m_chronoSvc.get());
150
151 Acts::VectorTrackContainer trackBackend;
152 Acts::VectorMultiTrajectory trackStateBackend;
153 constexpr std::size_t nTracksExpected = 3000;
154 trackBackend.reserve(nTracksExpected);
155 trackStateBackend.reserve(nTracksExpected * 30);
156 detail::RecoTrackContainer tracks(trackBackend, trackStateBackend);
158
159 // v45: Create SeedContainer to hold seeds (Seeds are now proxy objects)
160 ActsTrk::SeedContainer seedContainer;
161 auto R_of = [](const xAOD::SpacePoint* sp) {
162 return Acts::fastHypot(sp->x(), sp->y(), sp->z());
163 };
164
165 // Loop over GNN seeds, to pick SP used to estimate track parameters.
166 auto spacePointSelector = [&](ActsTrk::SpacePointRange cand)
167 -> std::optional<
168 boost::container::small_vector<const xAOD::SpacePoint*, 3>> {
169 // Select at least 3 SPs with deltaR spacing in cylindrical coordinates
170 boost::container::small_vector<const xAOD::SpacePoint*, 3> picked;
171 if (cand.empty()) {
172 return std::nullopt;
173 }
174 const xAOD::SpacePoint* last = cand.front();
175 picked.push_back(last);
176 for (std::size_t i = 1; i < cand.size() && picked.size() < 3; ++i) {
177 const xAOD::SpacePoint* sp = cand[i];
178 if (std::abs(R_of(sp) - R_of(last)) > m_minDeltaR.value()) {
179 picked.push_back(sp);
180 last = sp;
181 }
182 }
183 if (picked.size() < 3)
184 return std::nullopt;
185 return picked;
186 };
187
188 auto retrieveSurface = [&](const ActsTrk::Seed& seed, bool useTopSp) -> const Acts::Surface& {
189 const xAOD::SpacePoint* sp = useTopSp ? seed.sp().front() : seed.sp().back();
190 auto geoId = ActsTrk::getSurfaceGeometryIdOfMeasurement(*detElToGeoIdMap, *sp->measurements().front());
191 const auto* surface = m_trackingGeometrySvc->trackingGeometry()->findSurface(geoId);
192 if (!surface) {
193 throw std::runtime_error("retrieveSurface: no Acts surface for GeometryIdentifier " + std::to_string(geoId.value()));
194 }
195 return *surface;
196 };
197
198 for (const ActsTrk::Seed gnnSeed : gnnSeeds) {
199 ActsTrk::SpacePointRange cand = gnnSeed.sp();
200 auto pickedOpt = spacePointSelector(cand);
201 if (!pickedOpt.has_value()) continue;
202
203 auto picked = *pickedOpt;
204 std::sort(picked.begin(), picked.end(),
205 [&](const xAOD::SpacePoint* a, const xAOD::SpacePoint* b) {
206 return R_of(a) < R_of(b);
207 });
208 constexpr float quality = 0.f; // quality is not computed in the GNN pipeline
209 constexpr float vertexZ = 0.f; // vertexZ is not computed in the GNN pipeline
210 ActsTrk::Seed seed = seedContainer.push_back(
211 ActsTrk::SpacePointRange(picked.data(), picked.size()), quality, vertexZ);
212
213 const auto& [initialParamsOpt, estimationStatus] = m_paramEstimationTool->estimateTrackParameters(
214 seed, /*useTopSp=*/true, gctx, mctx, cctx, retrieveSurface);
215 if (!initialParamsOpt.has_value()) continue;
216
217 boost::container::small_vector<const xAOD::SpacePoint*, 16> sortedSP;
218 sortedSP.reserve(cand.size());
219 for (const xAOD::SpacePoint* sp : cand)
220 sortedSP.push_back(sp);
221 std::sort(sortedSP.begin(), sortedSP.end(),
222 [&](const xAOD::SpacePoint* a, const xAOD::SpacePoint* b) {
223 return R_of(a) < R_of(b);
224 });
225
226 std::vector<const xAOD::UncalibratedMeasurement*> measList;
227 measList.reserve(sortedSP.size() * 2);
228 for (const xAOD::SpacePoint* sp : sortedSP) {
229 for (const xAOD::UncalibratedMeasurement* m : sp->measurements()) {
230 measList.push_back(m);
231 }
232 }
233
234 auto fitted = m_fitterTool->fit(measList, *initialParamsOpt, gctx, mctx, cctx);
235 if (fitted) {
236 for (auto track : *fitted) {
237 auto newTrack = tracks.makeTrack();
238 newTrack.copyFrom(track);
239 }
240 }
241 }
242
243 ACTS_DEBUG("After track fit: " << tracks.size() << " / " << gnnSeeds.size()
244 << " successfull");
245
246 timer.reset();
247 timer.emplace("Track selection & conversion", m_chronoSvc.get());
248
249 Acts::VectorTrackContainer selTrackBackend;
250 selTrackBackend.reserve(trackBackend.size());
251 detail::RecoTrackContainer selectedTracks(selTrackBackend, trackStateBackend);
253
254 Acts::TrackSelector selector(m_trackSelectorConfig);
255 for (auto track : tracks) {
256 if (selector.isValidTrack(track)) {
257 auto newTrack = selectedTracks.makeTrack();
258
259 // v45: copyFrom now copies everything including tip/stem indices
260 newTrack.copyFrom(track);
261 }
262 }
263
264 ACTS_DEBUG("GNN seeds: " << gnnSeeds.size() << ", fitted: " << tracks.size()
265 << ", selected: " << selectedTracks.size());
266
267 // Write tracks to storage again
268 Acts::ConstVectorTrackContainer constTrackBackend(std::move(selTrackBackend));
269 Acts::ConstVectorMultiTrajectory constTrackStateBackend(std::move(trackStateBackend));
270 std::unique_ptr<ActsTrk::TrackContainer> constTracksContainer
271 = std::make_unique<ActsTrk::TrackContainer>(std::move(constTrackBackend), std::move(constTrackStateBackend) );
272
273 ACTS_DEBUG("Storing track collection with key '" << m_trackContainerKey.key() << "'");
274 SG::WriteHandle<ActsTrk::TrackContainer> trackContainerHandle = SG::makeHandle(m_trackContainerKey, ctx);
275 ATH_CHECK(trackContainerHandle.record(std::move(constTracksContainer)));
276
277 return StatusCode::SUCCESS;
278}
#define ATH_CHECK
Evaluate an expression and check for errors.
static Double_t sp
static Double_t a
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
Gaudi::Property< double > m_minDeltaR
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)
void sort(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end)
Specialization of sort for DataVector/List.
UncalibratedMeasurement_v1 UncalibratedMeasurement
Define the version of the uncalibrated measurement class.
Seed push_back(SpacePointRange spacePoints, float quality, float vertexZ)
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 49 of file TrackFindingGNNAlg.cxx.

49 {
50 // Athena tools
51 m_logger = makeActsAthenaLogger(this, "Acts GNN Algorithm");
52 ACTS_DEBUG("TrackFindingGNNAlg::initialize() - begin");
54 ATH_CHECK(m_trackContainerKey.initialize());
55 ATH_CHECK(m_ctxProvider.initialize());
59 ATH_CHECK(m_trackContainerKey.initialize());
60 ATH_CHECK(m_chronoSvc.retrieve());
62 ATH_CHECK(m_fitterTool.retrieve());
63 ATH_CHECK(m_gnnPipelineTool.retrieve());
64
66 detail::xAODUncalibMeasSurfAcc{m_trackingGeometrySvc.get()};
70
71 using TSC = Acts::TrackSelector::Config;
72 m_trackSelectorConfig = Acts::TrackSelector::EtaBinnedConfig(0.0);
73
74 auto commonConfig = [&](TSC &config) {
75 config.requireReferenceSurface = true;
76 config.loc1Min = m_offlineZ0Sel.value() ? -200_mm : -150_mm; // z0 min
77 config.loc1Max = m_offlineZ0Sel.value() ? 200_mm : 150_mm; // z0 max
78 };
79
81 .addCuts(2.0,
82 [&](TSC &config) {
83 commonConfig(config);
84 config.maxHoles = m_relaxCentralHoleSel.value() ? 4 : 2;
85 config.minMeasurements = m_relaxMeasurementSel.value() ? 7 : 9;
86 config.ptMin = 900_MeV;
87 config.loc0Max = 2_mm; // d0 max
88 config.loc0Min = -2_mm; // d0 min
89 })
90 .addCuts(2.6,
91 [&](TSC &config) {
92 commonConfig(config);
93 config.maxHoles = m_relaxCentralHoleSel.value() ? 4 : 2;
94 config.minMeasurements = m_relaxMeasurementSel.value() ? 7 : 8;
95 config.ptMin = 400_MeV;
96 config.loc0Max = 2_mm; // d0 max
97 config.loc0Min = -2_mm; // d0 min
98 })
99 .addCuts([&](TSC &config) {
100 commonConfig(config);
101 config.maxHoles = 2;
102 config.minMeasurements = 7;
103 config.ptMin = 400_MeV;
104 config.loc0Max = 10_mm; // d0 max
105 config.loc0Min = -10_mm; // d0 min
106 });
107
108 ACTS_INFO("Track selector config:\n" << m_trackSelectorConfig);
109
110 ACTS_DEBUG("TrackFindingGNNAlg::initialize() - end");
111 return StatusCode::SUCCESS;
112}
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 122 of file TrackFindingGNNAlg.h.

122{ 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 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_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 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_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 125 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_minDeltaR

Gaudi::Property<double> ActsTrk::TrackFindingGNNAlg::m_minDeltaR
private
Initial value:
{
this, "minDeltaR", 10.0,
"Minimum difference in R to build the initial parameters"}

Definition at line 106 of file TrackFindingGNNAlg.h.

106 {
107 this, "minDeltaR", 10.0,
108 "Minimum difference in R to build the initial parameters"};

◆ 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 116 of file TrackFindingGNNAlg.h.

116 {
117 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 110 of file TrackFindingGNNAlg.h.

110 {
111 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 113 of file TrackFindingGNNAlg.h.

113 {
114 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 119 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 399 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 398 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: