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

Algorithm executing traccc triplet seeding on the GPU. More...

#include <DeviceTripletSeedingAlg.h>

Inheritance diagram for ActsTrk::DeviceTripletSeedingAlg:
Collaboration diagram for ActsTrk::DeviceTripletSeedingAlg:

Public Member Functions

virtual StatusCode initialize () override
 Function initializing the algorithm.
virtual StatusCode execute (const EventContext &ctx) const override
 Function executing the algorithm.
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

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

Private Attributes

traccc::seedfinder_config m_seedfinder
traccc::seedfilter_config m_seedfilter
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
The tool that provides backend-specific traccc seeding algorithms
ToolHandle< IDeviceSeedingAlgProviderTool > m_seedingAlgProviderTool
The name of device resident input traccc spacepoint collection
SG::ReadHandleKey< traccc::edm::spacepoint_collection::const_view > m_inputPixelSPKey
The name of device resident output traccc seed collection

{@

SG::WriteHandleKey< traccc::edm::seed_collection::buffer > m_outputPixelSeedsKey
The conditions objects

{@

SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
SG::ReadCondHandleKey< AtlasFieldCacheCondObj > m_fieldCondObjInputKey
Seed finder properties

{@

Gaudi::Property< float > m_zMin {this, "zMin", -3000.f, "limiting location of measurements [mm]"}
Gaudi::Property< float > m_zMax {this, "zMax", 3000.f, "limiting location of measurements [mm]"}
Gaudi::Property< float > m_rMin {this, "rMin", 33.f, "limiting location of measurements [mm]"}
Gaudi::Property< float > m_rMax {this, "rMax", 320.f, "limiting location of measurements [mm]"}
Gaudi::Property< float > m_collisionRegionMin
Gaudi::Property< float > m_collisionRegionMax
Gaudi::Property< float > m_minPt {this, "minPt", 900.f, "lower pT cutoff for seeds [MeV]"}
Gaudi::Property< float > m_cotThetaMax {this, "cotThetaMax", 27.2899f, "cot of maximum theta angle"}
Gaudi::Property< float > m_deltaRMin
Gaudi::Property< float > m_deltaRMax
Gaudi::Property< float > m_deltaZMax
Gaudi::Property< float > m_impactMax {this, "impactMax", 2.f, "maximum impact parameter [mm]"}
Gaudi::Property< float > m_sigmaScattering
Gaudi::Property< float > m_maxPtScattering
Gaudi::Property< float > m_radLengthPerSeed
Gaudi::Property< unsigned int > m_maxSeedsPerSpM
Gaudi::Property< int > m_phiBinDeflectionCoverage
Spacepoint grid properties

{@

Gaudi::Property< float > m_gridDeltaRMax
Seed filter properties

{@

Gaudi::Property< float > m_deltaInvHelixDiameter
Gaudi::Property< float > m_impactWeightFactor
Gaudi::Property< float > m_compatSeedWeight
Gaudi::Property< float > m_filterDeltaRMin
Gaudi::Property< unsigned int > m_compatSeedLimit
Gaudi::Property< float > m_goodSpBMinRadius
Gaudi::Property< float > m_goodSpBWeightIncrease
Gaudi::Property< float > m_goodSpTMaxRadius
Gaudi::Property< float > m_goodSpTWeightIncrease
Gaudi::Property< float > m_goodSpBMinWeight
Gaudi::Property< float > m_seedMinWeight
Gaudi::Property< float > m_spBMinRadius

Detailed Description

Algorithm executing traccc triplet seeding on the GPU.

The backend-specific seeding algorithm is provided by a dedicated tool, together with the device memory resource.

The algorithm retrieves the device resident traccc spacepoint collection from the event store, passes it to the device triplet seeding algorithm, and records the resulting device resident traccc seed collection back into the event store.

The seed finder, spacepoint grid and seed filter configurations are exposed as properties. The magnetic field and the beam spot position are taken from the conditions store for every event.

Author
Neža Ribarič neza..nosp@m.riba.nosp@m.ric@c.nosp@m.ern..nosp@m.ch

Definition at line 45 of file DeviceTripletSeedingAlg.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 376 of file AthCommonDataStore.h.

Member Function Documentation

◆ configureTripletSeeder()

StatusCode ActsTrk::DeviceTripletSeedingAlg::configureTripletSeeder ( )
privatevirtual

Definition at line 38 of file DeviceTripletSeedingAlg.cxx.

39{
40
41 ATH_MSG_INFO("Setting up configs");
42 m_seedfinder.zMin = m_zMin * unit<traccc::scalar>::mm;
43 m_seedfinder.zMax = m_zMax * unit<traccc::scalar>::mm;
44 m_seedfinder.rMin = m_rMin * unit<traccc::scalar>::mm;
45 m_seedfinder.rMax = m_rMax * unit<traccc::scalar>::mm;
46 m_seedfinder.collisionRegionMin = m_collisionRegionMin * unit<traccc::scalar>::mm;
47 m_seedfinder.collisionRegionMax = m_collisionRegionMax * unit<traccc::scalar>::mm;
48 m_seedfinder.minPt = m_minPt * unit<traccc::scalar>::MeV;
49 m_seedfinder.cotThetaMax = m_cotThetaMax;
50 m_seedfinder.deltaRMin = m_deltaRMin * unit<traccc::scalar>::mm;
51 m_seedfinder.deltaRMax = m_deltaRMax * unit<traccc::scalar>::mm;
52 m_seedfinder.deltaZMax = m_deltaZMax * unit<traccc::scalar>::mm;
53 m_seedfinder.impactMax = m_impactMax * unit<traccc::scalar>::mm;
54 m_seedfinder.sigmaScattering = m_sigmaScattering;
55 m_seedfinder.maxPtScattering = m_maxPtScattering * unit<traccc::scalar>::MeV;
56 m_seedfinder.radLengthPerSeed = m_radLengthPerSeed;
57 m_seedfinder.maxSeedsPerSpM = m_maxSeedsPerSpM;
58 m_seedfinder.phiBinDeflectionCoverage = m_phiBinDeflectionCoverage;
59 m_seedfinder.setup();
60
61 m_seedfilter.deltaInvHelixDiameter = m_deltaInvHelixDiameter / unit<traccc::scalar>::mm;
62 m_seedfilter.impactWeightFactor = m_impactWeightFactor;
63 m_seedfilter.compatSeedWeight = m_compatSeedWeight;
64 m_seedfilter.deltaRMin = m_filterDeltaRMin * unit<traccc::scalar>::mm;
65 m_seedfilter.compatSeedLimit = m_compatSeedLimit;
66 m_seedfilter.good_spB_min_radius = m_goodSpBMinRadius * unit<traccc::scalar>::mm;
67 m_seedfilter.good_spB_weight_increase = m_goodSpBWeightIncrease;
68 m_seedfilter.good_spT_max_radius = m_goodSpTMaxRadius * unit<traccc::scalar>::mm;
69 m_seedfilter.good_spT_weight_increase = m_goodSpTWeightIncrease;
70 m_seedfilter.good_spB_min_weight = m_goodSpBMinWeight;
71 m_seedfilter.seed_min_weight = m_seedMinWeight;
72 m_seedfilter.spB_min_radius = m_spBMinRadius * unit<traccc::scalar>::mm;
73
74 return StatusCode::SUCCESS;
75
76}
#define ATH_MSG_INFO(x,...)
Gaudi::Property< int > m_phiBinDeflectionCoverage
Gaudi::Property< float > m_goodSpTWeightIncrease
Gaudi::Property< float > m_deltaInvHelixDiameter
Gaudi::Property< float > m_goodSpBMinWeight
Gaudi::Property< unsigned int > m_compatSeedLimit
Gaudi::Property< float > m_goodSpBMinRadius
Gaudi::Property< unsigned int > m_maxSeedsPerSpM
Gaudi::Property< float > m_goodSpBWeightIncrease
Gaudi::Property< float > m_radLengthPerSeed
Gaudi::Property< float > m_goodSpTMaxRadius
Gaudi::Property< float > m_compatSeedWeight
Gaudi::Property< float > m_collisionRegionMax
Gaudi::Property< float > m_impactWeightFactor
Gaudi::Property< float > m_collisionRegionMin

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

Function executing the algorithm.

Definition at line 78 of file DeviceTripletSeedingAlg.cxx.

79{
80 ATH_MSG_DEBUG("Executing device triplet seeding.");
81
82 // ---- 1. Read input traccc spacepoints from StoreGate --------------------------------
83 auto inputTracccPixelSpacepoints = SG::makeHandle(m_inputPixelSPKey, ctx);
84 ATH_CHECK(inputTracccPixelSpacepoints.isValid());
85 ATH_MSG_DEBUG("Read traccc spacepoints from '"
86 << inputTracccPixelSpacepoints.key() << "'");
87
88 // ---- 2. Read the beam spot and the magnetic field at the beam spot -------------------
89 const InDet::BeamSpotData* beamSpotData{nullptr};
90 ATH_CHECK(SG::get(beamSpotData, m_beamSpotKey, ctx));
91 const Amg::Vector3D beamPos = beamSpotData->beamPos();
92
93 const AtlasFieldCacheCondObj* fieldCondObj{nullptr};
94 ATH_CHECK(SG::get(fieldCondObj, m_fieldCondObjInputKey, ctx));
95 MagField::AtlasFieldCache fieldCache;
96 fieldCondObj->getInitializedCache(fieldCache);
97 double bField[3]{0., 0., 0.};
98 const double position[3]{beamPos.x(), beamPos.y(), 0.};
99 fieldCache.getField(position, bField);
100
101 // The field cache returns the field in kT
102 traccc::seedfinder_config seedfinder = m_seedfinder;
103 seedfinder.bFieldInZ = static_cast<float>(bField[2] * 1000. * unit<traccc::scalar>::T);
104 seedfinder.beamPos = {static_cast<float>(beamPos.x() * unit<traccc::scalar>::mm),
105 static_cast<float>(beamPos.y() * unit<traccc::scalar>::mm)};
106 seedfinder.setup();
107
108 traccc::spacepoint_grid_config grid{seedfinder};
109 if (m_gridDeltaRMax > 0.f) {
110 grid.deltaRMax = m_gridDeltaRMax * unit<traccc::scalar>::mm;
111 }
112
113 // ---- 3. Get traccc seeding alg ---------------------------------------------
114 auto seeding_alg = m_seedingAlgProviderTool->getTripletSeedingAlgorithm(ctx, seedfinder, grid, m_seedfilter);
115
116 // ---- 4. Run traccc seed formation ---------------------------------------------
117 traccc::edm::seed_collection::buffer pixel_seeds_gpu_buffer = (*seeding_alg)(*inputTracccPixelSpacepoints);
118
119 ATH_MSG_DEBUG("Reconstructed " << seeding_alg.copy().get_size(pixel_seeds_gpu_buffer) << " seeds.");
120
121 // ---- 5. Write output traccc seeds to StoreGate -------------------------
122 auto outputTracccPixelSeeds = SG::makeHandle(m_outputPixelSeedsKey, ctx);
123 ATH_CHECK(outputTracccPixelSeeds.record(
124 std::make_unique<traccc::edm::seed_collection::buffer>(
125 std::move(pixel_seeds_gpu_buffer))));
126 ATH_MSG_DEBUG("Wrote seeds buffer to '" << m_outputPixelSeedsKey.key() << "'");
127
128 return StatusCode::SUCCESS;
129}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x,...)
ToolHandle< IDeviceSeedingAlgProviderTool > m_seedingAlgProviderTool
SG::ReadHandleKey< traccc::edm::spacepoint_collection::const_view > m_inputPixelSPKey
SG::WriteHandleKey< traccc::edm::seed_collection::buffer > m_outputPixelSeedsKey
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
SG::ReadCondHandleKey< AtlasFieldCacheCondObj > m_fieldCondObjInputKey
void getInitializedCache(MagField::AtlasFieldCache &cache) const
get B field cache for evaluation as a function of 2-d or 3-d position.
const Amg::Vector3D & beamPos() const noexcept
void getField(const double *ATH_RESTRICT xyz, double *ATH_RESTRICT bxyz, double *ATH_RESTRICT deriv=nullptr)
get B field value at given position xyz[3] is in mm, bxyz[3] is in kT if deriv[9] is given,...
Eigen::Matrix< double, 3, 1 > Vector3D
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
const Amg::Vector3D & position() const
Method to retrieve the position of the Intersection.

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

Function initializing the algorithm.

Definition at line 22 of file DeviceTripletSeedingAlg.cxx.

23{
24 ATH_MSG_DEBUG("Initializing " << name());
25
27 ATH_CHECK(m_inputPixelSPKey.initialize());
28 ATH_CHECK(m_outputPixelSeedsKey.initialize());
29 ATH_CHECK(m_beamSpotKey.initialize());
31
33
34 ATH_MSG_DEBUG("Successfully initialized");
35 return StatusCode::SUCCESS;
36}

◆ inputHandles()

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

Return this algorithm's input handles.

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

◆ isClonable()

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

Specify if the algorithm is clonable.

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

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

Definition at line 68 of file AthCommonAlgorithm.h.

68 {
69 return true;
70 }

◆ msg()

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msgLvl()

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

Definition at line 30 of file AthCommonMsg.h.

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

◆ outputHandles()

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

Return this algorithm's output handles.

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

◆ renounce()

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

Definition at line 368 of file AthCommonDataStore.h.

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

◆ renounceArray()

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

remove all handles from I/O resolution

Definition at line 352 of file AthCommonDataStore.h.

352 {
354 }

◆ setFilterPassed()

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

Set filter decision:

Definition at line 99 of file AthCommonAlgorithm.h.

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

◆ sysExecute()

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

Execute an algorithm.

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

Reimplemented in AthAnalysisAlgorithm.

Definition at line 80 of file AthCommonAlgorithm.cxx.

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

◆ sysInitialize()

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

Override sysInitialize.

Override sysInitialize from the base class.

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

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

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

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

Definition at line 60 of file AthCommonAlgorithm.cxx.

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

◆ sysStart()

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

Handle START transition.

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

◆ updateVHKA()

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

Definition at line 298 of file AthCommonDataStore.h.

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

Member Data Documentation

◆ m_beamSpotKey

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

Definition at line 77 of file DeviceTripletSeedingAlg.h.

77 {
78 this, "BeamSpotKey", "BeamSpotData", "SG key for beam spot"};

◆ m_collisionRegionMax

Gaudi::Property<float> ActsTrk::DeviceTripletSeedingAlg::m_collisionRegionMax
private
Initial value:
{this, "collisionRegionMax", 114.f,
"limiting location of collision region in z [mm]"}

Definition at line 92 of file DeviceTripletSeedingAlg.h.

92 {this, "collisionRegionMax", 114.f,
93 "limiting location of collision region in z [mm]"};

◆ m_collisionRegionMin

Gaudi::Property<float> ActsTrk::DeviceTripletSeedingAlg::m_collisionRegionMin
private
Initial value:
{this, "collisionRegionMin", -114.f,
"limiting location of collision region in z [mm]"}

Definition at line 90 of file DeviceTripletSeedingAlg.h.

90 {this, "collisionRegionMin", -114.f,
91 "limiting location of collision region in z [mm]"};

◆ m_compatSeedLimit

Gaudi::Property<unsigned int> ActsTrk::DeviceTripletSeedingAlg::m_compatSeedLimit
private
Initial value:
{this, "compatSeedLimit", 1,
"maximum number of compatible seeds considered for the weight boost"}

Definition at line 132 of file DeviceTripletSeedingAlg.h.

132 {this, "compatSeedLimit", 1,
133 "maximum number of compatible seeds considered for the weight boost"};

◆ m_compatSeedWeight

Gaudi::Property<float> ActsTrk::DeviceTripletSeedingAlg::m_compatSeedWeight
private
Initial value:
{this, "compatSeedWeight", 200.f,
"seed weight increase if a compatible seed has been found"}

Definition at line 128 of file DeviceTripletSeedingAlg.h.

128 {this, "compatSeedWeight", 200.f,
129 "seed weight increase if a compatible seed has been found"};

◆ m_cotThetaMax

Gaudi::Property<float> ActsTrk::DeviceTripletSeedingAlg::m_cotThetaMax {this, "cotThetaMax", 27.2899f, "cot of maximum theta angle"}
private

Definition at line 95 of file DeviceTripletSeedingAlg.h.

95{this, "cotThetaMax", 27.2899f, "cot of maximum theta angle"};

◆ m_deltaInvHelixDiameter

Gaudi::Property<float> ActsTrk::DeviceTripletSeedingAlg::m_deltaInvHelixDiameter
private
Initial value:
{this, "deltaInvHelixDiameter", 0.00003f,
"allowed delta between two inverted seed radii to be considered compatible [1/mm]"}

Definition at line 124 of file DeviceTripletSeedingAlg.h.

124 {this, "deltaInvHelixDiameter", 0.00003f,
125 "allowed delta between two inverted seed radii to be considered compatible [1/mm]"};

◆ m_deltaRMax

Gaudi::Property<float> ActsTrk::DeviceTripletSeedingAlg::m_deltaRMax
private
Initial value:
{this, "deltaRMax", 100.f,
"maximum distance in r between two measurements within one seed [mm]"}

Definition at line 98 of file DeviceTripletSeedingAlg.h.

98 {this, "deltaRMax", 100.f,
99 "maximum distance in r between two measurements within one seed [mm]"};

◆ m_deltaRMin

Gaudi::Property<float> ActsTrk::DeviceTripletSeedingAlg::m_deltaRMin
private
Initial value:
{this, "deltaRMin", 20.f,
"minimum distance in r between two measurements within one seed [mm]"}

Definition at line 96 of file DeviceTripletSeedingAlg.h.

96 {this, "deltaRMin", 20.f,
97 "minimum distance in r between two measurements within one seed [mm]"};

◆ m_deltaZMax

Gaudi::Property<float> ActsTrk::DeviceTripletSeedingAlg::m_deltaZMax
private
Initial value:
{this, "deltaZMax", 800.f,
"maximum distance in z between two measurements within one seed [mm]"}

Definition at line 100 of file DeviceTripletSeedingAlg.h.

100 {this, "deltaZMax", 800.f,
101 "maximum distance in z between two measurements within one seed [mm]"};

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

SG::ReadCondHandleKey<AtlasFieldCacheCondObj> ActsTrk::DeviceTripletSeedingAlg::m_fieldCondObjInputKey
private
Initial value:
{
this, "AtlasFieldCacheCondObj", "fieldCondObj",
"Name of the Magnetic Field conditions object key"}

Definition at line 79 of file DeviceTripletSeedingAlg.h.

79 {
80 this, "AtlasFieldCacheCondObj", "fieldCondObj",
81 "Name of the Magnetic Field conditions object key"};

◆ m_filterDeltaRMin

Gaudi::Property<float> ActsTrk::DeviceTripletSeedingAlg::m_filterDeltaRMin
private
Initial value:
{this, "filterDeltaRMin", 5.f,
"minimum distance between compatible seeds to be considered for weight boost [mm]"}

Definition at line 130 of file DeviceTripletSeedingAlg.h.

130 {this, "filterDeltaRMin", 5.f,
131 "minimum distance between compatible seeds to be considered for weight boost [mm]"};

◆ m_goodSpBMinRadius

Gaudi::Property<float> ActsTrk::DeviceTripletSeedingAlg::m_goodSpBMinRadius
private
Initial value:
{this, "goodSpBMinRadius", 150.f,
"bottom spacepoint radius above which the weight is increased [mm]"}

Definition at line 134 of file DeviceTripletSeedingAlg.h.

134 {this, "goodSpBMinRadius", 150.f,
135 "bottom spacepoint radius above which the weight is increased [mm]"};

◆ m_goodSpBMinWeight

Gaudi::Property<float> ActsTrk::DeviceTripletSeedingAlg::m_goodSpBMinWeight
private
Initial value:
{this, "goodSpBMinWeight", 380.f,
"minimum weight of a seed with a good bottom spacepoint"}

Definition at line 142 of file DeviceTripletSeedingAlg.h.

142 {this, "goodSpBMinWeight", 380.f,
143 "minimum weight of a seed with a good bottom spacepoint"};

◆ m_goodSpBWeightIncrease

Gaudi::Property<float> ActsTrk::DeviceTripletSeedingAlg::m_goodSpBWeightIncrease
private
Initial value:
{this, "goodSpBWeightIncrease", 400.f,
"weight increase for a good bottom spacepoint"}

Definition at line 136 of file DeviceTripletSeedingAlg.h.

136 {this, "goodSpBWeightIncrease", 400.f,
137 "weight increase for a good bottom spacepoint"};

◆ m_goodSpTMaxRadius

Gaudi::Property<float> ActsTrk::DeviceTripletSeedingAlg::m_goodSpTMaxRadius
private
Initial value:
{this, "goodSpTMaxRadius", 150.f,
"top spacepoint radius below which the weight is increased [mm]"}

Definition at line 138 of file DeviceTripletSeedingAlg.h.

138 {this, "goodSpTMaxRadius", 150.f,
139 "top spacepoint radius below which the weight is increased [mm]"};

◆ m_goodSpTWeightIncrease

Gaudi::Property<float> ActsTrk::DeviceTripletSeedingAlg::m_goodSpTWeightIncrease
private
Initial value:
{this, "goodSpTWeightIncrease", 200.f,
"weight increase for a good top spacepoint"}

Definition at line 140 of file DeviceTripletSeedingAlg.h.

140 {this, "goodSpTWeightIncrease", 200.f,
141 "weight increase for a good top spacepoint"};

◆ m_gridDeltaRMax

Gaudi::Property<float> ActsTrk::DeviceTripletSeedingAlg::m_gridDeltaRMax
private
Initial value:
{this, "gridDeltaRMax", -1.f,
"maximum distance in r from middle to bottom or top spacepoint used for the grid "
"phi binning [mm], deltaRMax if negative"}

Definition at line 117 of file DeviceTripletSeedingAlg.h.

117 {this, "gridDeltaRMax", -1.f,
118 "maximum distance in r from middle to bottom or top spacepoint used for the grid "
119 "phi binning [mm], deltaRMax if negative"};

◆ m_impactMax

Gaudi::Property<float> ActsTrk::DeviceTripletSeedingAlg::m_impactMax {this, "impactMax", 2.f, "maximum impact parameter [mm]"}
private

Definition at line 102 of file DeviceTripletSeedingAlg.h.

102{this, "impactMax", 2.f, "maximum impact parameter [mm]"};

◆ m_impactWeightFactor

Gaudi::Property<float> ActsTrk::DeviceTripletSeedingAlg::m_impactWeightFactor
private
Initial value:
{this, "impactWeightFactor", 1.f,
"impact parameter is multiplied by this factor and subtracted from the weight"}

Definition at line 126 of file DeviceTripletSeedingAlg.h.

126 {this, "impactWeightFactor", 1.f,
127 "impact parameter is multiplied by this factor and subtracted from the weight"};

◆ m_inputPixelSPKey

SG::ReadHandleKey<traccc::edm::spacepoint_collection::const_view> ActsTrk::DeviceTripletSeedingAlg::m_inputPixelSPKey
private
Initial value:
{
this, "InputTracccPixelSpacepoints", "",
"Input traccc spacepoint collection buffer"}

Definition at line 64 of file DeviceTripletSeedingAlg.h.

64 {
65 this, "InputTracccPixelSpacepoints", "",
66 "Input traccc spacepoint collection buffer"};

◆ m_maxPtScattering

Gaudi::Property<float> ActsTrk::DeviceTripletSeedingAlg::m_maxPtScattering
private
Initial value:
{this, "maxPtScattering", 10000.f,
"upper pt limit for scattering calculation [MeV]"}

Definition at line 105 of file DeviceTripletSeedingAlg.h.

105 {this, "maxPtScattering", 10000.f,
106 "upper pt limit for scattering calculation [MeV]"};

◆ m_maxSeedsPerSpM

Gaudi::Property<unsigned int> ActsTrk::DeviceTripletSeedingAlg::m_maxSeedsPerSpM
private
Initial value:
{this, "maxSeedsPerSpM", 2,
"maximum number of seeds per middle spacepoint"}

Definition at line 109 of file DeviceTripletSeedingAlg.h.

109 {this, "maxSeedsPerSpM", 2,
110 "maximum number of seeds per middle spacepoint"};

◆ m_minPt

Gaudi::Property<float> ActsTrk::DeviceTripletSeedingAlg::m_minPt {this, "minPt", 900.f, "lower pT cutoff for seeds [MeV]"}
private

Definition at line 94 of file DeviceTripletSeedingAlg.h.

94{this, "minPt", 900.f, "lower pT cutoff for seeds [MeV]"};

◆ m_outputPixelSeedsKey

SG::WriteHandleKey<traccc::edm::seed_collection::buffer> ActsTrk::DeviceTripletSeedingAlg::m_outputPixelSeedsKey
private
Initial value:
{
this, "OutputTracccPixelSeeds", "",
"Output traccc pixel seed collection buffer"}

Definition at line 70 of file DeviceTripletSeedingAlg.h.

70 {
71 this, "OutputTracccPixelSeeds", "",
72 "Output traccc pixel seed collection buffer"};

◆ m_phiBinDeflectionCoverage

Gaudi::Property<int> ActsTrk::DeviceTripletSeedingAlg::m_phiBinDeflectionCoverage
private
Initial value:
{this, "phiBinDeflectionCoverage", 1,
"sets of consecutive phi bins to cover full deflection of minimum pT particle"}

Definition at line 111 of file DeviceTripletSeedingAlg.h.

111 {this, "phiBinDeflectionCoverage", 1,
112 "sets of consecutive phi bins to cover full deflection of minimum pT particle"};

◆ m_radLengthPerSeed

Gaudi::Property<float> ActsTrk::DeviceTripletSeedingAlg::m_radLengthPerSeed
private
Initial value:
{this, "radLengthPerSeed", 0.05f,
"average radiation lengths of material on the length of a seed"}

Definition at line 107 of file DeviceTripletSeedingAlg.h.

107 {this, "radLengthPerSeed", 0.05f,
108 "average radiation lengths of material on the length of a seed"};

◆ m_rMax

Gaudi::Property<float> ActsTrk::DeviceTripletSeedingAlg::m_rMax {this, "rMax", 320.f, "limiting location of measurements [mm]"}
private

Definition at line 89 of file DeviceTripletSeedingAlg.h.

89{this, "rMax", 320.f, "limiting location of measurements [mm]"};

◆ m_rMin

Gaudi::Property<float> ActsTrk::DeviceTripletSeedingAlg::m_rMin {this, "rMin", 33.f, "limiting location of measurements [mm]"}
private

Definition at line 88 of file DeviceTripletSeedingAlg.h.

88{this, "rMin", 33.f, "limiting location of measurements [mm]"};

◆ m_seedfilter

traccc::seedfilter_config ActsTrk::DeviceTripletSeedingAlg::m_seedfilter
private

Definition at line 151 of file DeviceTripletSeedingAlg.h.

◆ m_seedfinder

traccc::seedfinder_config ActsTrk::DeviceTripletSeedingAlg::m_seedfinder
private

Definition at line 150 of file DeviceTripletSeedingAlg.h.

◆ m_seedingAlgProviderTool

ToolHandle<IDeviceSeedingAlgProviderTool> ActsTrk::DeviceTripletSeedingAlg::m_seedingAlgProviderTool
private
Initial value:
{
this, "SeedingAlgProviderTool", "",
"Tool providing the appropriate backend device seeding algorithm"}

Definition at line 59 of file DeviceTripletSeedingAlg.h.

59 {
60 this, "SeedingAlgProviderTool", "",
61 "Tool providing the appropriate backend device seeding algorithm"};

◆ m_seedMinWeight

Gaudi::Property<float> ActsTrk::DeviceTripletSeedingAlg::m_seedMinWeight
private
Initial value:
{this, "seedMinWeight", 200.f,
"minimum weight of a seed with a bottom spacepoint below spBMinRadius"}

Definition at line 144 of file DeviceTripletSeedingAlg.h.

144 {this, "seedMinWeight", 200.f,
145 "minimum weight of a seed with a bottom spacepoint below spBMinRadius"};

◆ m_sigmaScattering

Gaudi::Property<float> ActsTrk::DeviceTripletSeedingAlg::m_sigmaScattering
private
Initial value:
{this, "sigmaScattering", 3.f,
"how many sigmas of scattering angle should be considered"}

Definition at line 103 of file DeviceTripletSeedingAlg.h.

103 {this, "sigmaScattering", 3.f,
104 "how many sigmas of scattering angle should be considered"};

◆ m_spBMinRadius

Gaudi::Property<float> ActsTrk::DeviceTripletSeedingAlg::m_spBMinRadius
private
Initial value:
{this, "spBMinRadius", 43.f,
"bottom spacepoint radius above which the seed weight cut is not applied [mm]"}

Definition at line 146 of file DeviceTripletSeedingAlg.h.

146 {this, "spBMinRadius", 43.f,
147 "bottom spacepoint radius above which the seed weight cut is not applied [mm]"};

◆ m_varHandleArraysDeclared

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

Definition at line 387 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 386 of file AthCommonDataStore.h.

◆ m_zMax

Gaudi::Property<float> ActsTrk::DeviceTripletSeedingAlg::m_zMax {this, "zMax", 3000.f, "limiting location of measurements [mm]"}
private

Definition at line 87 of file DeviceTripletSeedingAlg.h.

87{this, "zMax", 3000.f, "limiting location of measurements [mm]"};

◆ m_zMin

Gaudi::Property<float> ActsTrk::DeviceTripletSeedingAlg::m_zMin {this, "zMin", -3000.f, "limiting location of measurements [mm]"}
private

Definition at line 86 of file DeviceTripletSeedingAlg.h.

86{this, "zMin", -3000.f, "limiting location of measurements [mm]"};

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