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

#include <ActsTrackStateOnSurfaceDecoratorAlg.h>

Inheritance diagram for ActsTrk::ActsTrackStateOnSurfaceDecoratorAlg:
Collaboration diagram for ActsTrk::ActsTrackStateOnSurfaceDecoratorAlg:

Public Member Functions

 ActsTrackStateOnSurfaceDecoratorAlg (const std::string &name, ISvcLocator *pSvcLocator)
virtual ~ActsTrackStateOnSurfaceDecoratorAlg ()=default
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

xAOD::UncalibMeasType getDetectorType (std::uint64_t volumeId) const
StatusCode storeTrackState (const typename ActsTrk::TrackContainer::ConstTrackStateProxy &state, std::vector< ElementLink< xAOD::TrackStateValidationContainer > > &msosLinks, xAOD::TrackStateValidationContainer &msosContainer) const
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

SG::ReadHandleKey< xAOD::TrackParticleContainerm_trackParticlesKey {this, "TrackParticles", "", "Input xAOD::TrackParticles"}
SG::ReadDecorHandleKey< xAOD::TrackParticleContainerm_decorator_actsTracks {this, "ActsTrackLink", m_trackParticlesKey, "actsTrack"}
SG::WriteHandleKey< xAOD::TrackStateValidationContainerm_pixelMsosKey {this, "PixelMSOSs", ""}
SG::WriteHandleKey< xAOD::TrackStateValidationContainerm_stripMsosKey {this, "StripMSOSs", ""}
SG::WriteDecorHandleKey< xAOD::TrackParticleContainerm_trackMsosLink {this, "msosLink", m_trackParticlesKey, "Reco_msosLink"}
Gaudi::Property< bool > m_isITk {this, "isITk", true, "Flag to indicate whether running on ITk"}
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 16 of file ActsTrackStateOnSurfaceDecoratorAlg.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

◆ ActsTrackStateOnSurfaceDecoratorAlg()

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

Definition at line 15 of file ActsTrackStateOnSurfaceDecoratorAlg.cxx.

17 : AthReentrantAlgorithm(name, pSvcLocator)
18 {}

◆ ~ActsTrackStateOnSurfaceDecoratorAlg()

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

Definition at line 34 of file ActsTrackStateOnSurfaceDecoratorAlg.cxx.

35 {
36 ATH_MSG_DEBUG("Executing " << name() << " ...");
37
38 SG::ReadHandle<xAOD::TrackParticleContainer> trackParticleHandle = SG::makeHandle( m_trackParticlesKey, ctx );
39 ATH_CHECK(trackParticleHandle.isValid());
40 const xAOD::TrackParticleContainer* trackParticles = trackParticleHandle.cptr();
41
42 SG::WriteHandle<xAOD::TrackStateValidationContainer> pixelMsosHandle = SG::makeHandle( m_pixelMsosKey, ctx );
43 ATH_CHECK( pixelMsosHandle.record(std::make_unique<xAOD::TrackStateValidationContainer>(),
44 std::make_unique<xAOD::TrackStateValidationAuxContainer>()) );
45 xAOD::TrackStateValidationContainer* pixelMsos = pixelMsosHandle.ptr();
46
47 SG::WriteHandle<xAOD::TrackStateValidationContainer> stripMsosHandle = SG::makeHandle( m_stripMsosKey, ctx );
48 ATH_CHECK( stripMsosHandle.record(std::make_unique<xAOD::TrackStateValidationContainer>(),
49 std::make_unique<xAOD::TrackStateValidationAuxContainer>()) );
50 xAOD::TrackStateValidationContainer* stripMsos = stripMsosHandle.ptr();
51
52 SG::WriteDecorHandle<xAOD::TrackParticleContainer,
53 std::vector< ElementLink< xAOD::TrackStateValidationContainer > > > decorator_msos_link( m_trackMsosLink, ctx );
54 ATH_CHECK(decorator_msos_link.isValid());
55
56
57
58 for (const xAOD::TrackParticle* trackParticle : *trackParticles) {
59
60 std::optional<ActsTrk::TrackContainer::ConstTrackProxy> optional_track = getActsTrack(*trackParticle);
61 if ( not optional_track.has_value() ) {
62 ATH_MSG_ERROR("Invalid track link for particle " << trackParticle->index());
63 return StatusCode::FAILURE;
64 }
65 ActsTrk::TrackContainer::ConstTrackProxy track = optional_track.value();
66
67 std::vector< typename ActsTrk::TrackContainer::ConstTrackStateProxy > tsos {};
68 tsos.reserve( track.nTrackStates() );
69
70
71 // loop on track states
72 track.container().trackStateContainer()
73 .visitBackwards(track.tipIndex(),
74 [&tsos]
75 (const typename ActsTrk::TrackContainer::ConstTrackStateProxy& state)
76 {
77 auto flags = state.typeFlags();
78 if (not flags.isMeasurement() and
79 not flags.isOutlier() and
80 not flags.isHole()) return;
81 tsos.push_back( state );
82 });
83
84 std::vector< ElementLink< xAOD::TrackStateValidationContainer > > msos {};
85 msos.reserve( tsos.size() );
86
87 for (const typename ActsTrk::TrackContainer::ConstTrackStateProxy& state : tsos) {
88 const Acts::Surface& surface = state.referenceSurface();
89 xAOD::UncalibMeasType detectorTypeFromId = getDetectorType( surface.geometryId().volume() );
90
91 if ( detectorTypeFromId == xAOD::UncalibMeasType::PixelClusterType ) {
93 msos,
94 *pixelMsos) );
95 pixelMsos->back()->setDetType( Trk::TrackState::Pixel );
96 }
97 else if ( detectorTypeFromId == xAOD::UncalibMeasType::StripClusterType ) {
99 msos,
100 *stripMsos) );
101 stripMsos->back()->setDetType( Trk::TrackState::SCT );
102 }
103 else {
104 ATH_MSG_DEBUG("Skipping unsupported Acts volume id "
105 << surface.geometryId().volume()
106 << " in " << name()
107 << "; state is not written to the standard Pixel/Strip MSOS containers");
108 continue;
109 }
110
111 } // loop on states
112
113 decorator_msos_link(*trackParticle) = std::move(msos);
114 } // loop on track particles
115
116 return StatusCode::SUCCESS;
117 }
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
#define ATH_MSG_DEBUG(x)
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackParticlesKey
xAOD::UncalibMeasType getDetectorType(std::uint64_t volumeId) const
SG::WriteHandleKey< xAOD::TrackStateValidationContainer > m_pixelMsosKey
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_trackMsosLink
SG::WriteHandleKey< xAOD::TrackStateValidationContainer > m_stripMsosKey
StatusCode storeTrackState(const typename ActsTrk::TrackContainer::ConstTrackStateProxy &state, std::vector< ElementLink< xAOD::TrackStateValidationContainer > > &msosLinks, xAOD::TrackStateValidationContainer &msosContainer) const
const T * back() const
Access the last element in the collection as an rvalue.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type cptr()
Dereference the pointer.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
pointer_type ptr()
Dereference the pointer.
void setDetType(char detType)
Sets the detector type.
std::optional< ActsTrk::TrackContainer::ConstTrackProxy > getActsTrack(const xAOD::TrackParticle &trkPart)
Return the proxy to the Acts track from which the track particle was made frome.
Definition Decoration.cxx:9
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
TrackStateValidationContainer_v1 TrackStateValidationContainer
Definition of the current "TrackStateValidation container version".
TrackParticle_v1 TrackParticle
Reference the current persistent version:
UncalibMeasType
Define the type of the uncalibrated measurement.
TrackParticleContainer_v1 TrackParticleContainer
Definition of the current "TrackParticle container version".

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

◆ getDetectorType()

xAOD::UncalibMeasType ActsTrk::ActsTrackStateOnSurfaceDecoratorAlg::getDetectorType ( std::uint64_t volumeId) const
private

Definition at line 161 of file ActsTrackStateOnSurfaceDecoratorAlg.cxx.

162 {
163 if (m_isITk) {
164 switch (volumeId) {
165 case 2:
166 case 25:
168 case 22:
169 case 23:
170 case 24:
172 case 8:
173 case 9:
174 case 10:
175 case 13:
176 case 14:
177 case 15:
178 case 16:
179 case 18:
180 case 19:
181 case 20:
183 default:
185 }
186 } else {
187 switch (volumeId) {
188 case 9:
189 case 10:
190 case 11:
192 case 5:
193 case 6:
194 case 7:
196 default:
198 }
199 }
200 }

◆ initialize()

StatusCode ActsTrk::ActsTrackStateOnSurfaceDecoratorAlg::initialize ( )
overridevirtual

Definition at line 20 of file ActsTrackStateOnSurfaceDecoratorAlg.cxx.

21 {
22 ATH_MSG_DEBUG("Initializing " << name() << " ...");
23
24 ATH_CHECK(m_trackParticlesKey.initialize());
26 ATH_CHECK(m_trackMsosLink.initialize());
27
28 ATH_CHECK(m_pixelMsosKey.initialize());
29 ATH_CHECK(m_stripMsosKey.initialize());
30
31 return StatusCode::SUCCESS;
32 }
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_decorator_actsTracks

◆ inputHandles()

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

Return this algorithm's input handles.

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

◆ isClonable()

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

Specify if the algorithm is clonable.

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

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

Definition at line 68 of file AthCommonAlgorithm.h.

68 {
69 return true;
70 }

◆ msg()

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msgLvl()

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

Definition at line 30 of file AthCommonMsg.h.

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

◆ outputHandles()

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

Return this algorithm's output handles.

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

◆ renounce()

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

Definition at line 380 of file AthCommonDataStore.h.

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

◆ renounceArray()

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

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ setFilterPassed()

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

Set filter decision:

Reimplemented in AthFilterAlgorithm.

Definition at line 99 of file AthCommonAlgorithm.h.

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

◆ storeTrackState()

StatusCode ActsTrk::ActsTrackStateOnSurfaceDecoratorAlg::storeTrackState ( const typename ActsTrk::TrackContainer::ConstTrackStateProxy & state,
std::vector< ElementLink< xAOD::TrackStateValidationContainer > > & msosLinks,
xAOD::TrackStateValidationContainer & msosContainer ) const
private

Definition at line 119 of file ActsTrackStateOnSurfaceDecoratorAlg.cxx.

122 {
123 msosContainer.push_back( new xAOD::TrackStateValidation() );
124
125 ElementLink< xAOD::TrackStateValidationContainer > elink( &msosContainer, msosContainer.back()->index() );
126 ATH_CHECK( elink.isValid() );
127 msosLinks.push_back( std::move(elink) );
128
129 static const SG::ConstAccessor< ElementLink< xAOD::TrackMeasurementValidationContainer > > decorator_measurement_link("validationMeasurementLink");
130
131 auto flags = state.typeFlags();
132 if (not flags.isHole() ) {
133 auto cluster = detail::xAODUncalibMeasCalibrator::unpack(state.getUncalibratedSourceLink());
134 ATH_CHECK( cluster != nullptr );
135
136
137 if (not decorator_measurement_link.isAvailable(*cluster)) {
138 ATH_MSG_ERROR("xAOD Cluster does not have a link to TrackMeasurementValidation element");
139 return StatusCode::FAILURE;
140 }
141 const auto& el = decorator_measurement_link(*cluster);
142 ATH_CHECK( el.isValid() );
143 const xAOD::TrackMeasurementValidation *measurement = *el;
144
146 measurement->index() );
147 msosContainer.back()->setTrackMeasurementValidationLink( std::move(tmvc_el) );
148 }
149
150 if (flags.isHole()) {
151 msosContainer.back()->setType( Trk::TrackStateOnSurface::Hole );
152 } else if (flags.isOutlier()) {
154 } else {
156 }
157
158 return StatusCode::SUCCESS;
159 }
static const xAOD::UncalibratedMeasurement * unpack(const Acts::SourceLink &sl)
Helper method to unpack an Acts source link to an uncalibrated measurement.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
@ Measurement
This is a measurement, and will at least contain a Trk::MeasurementBase.
@ Outlier
This TSoS contains an outlier, that is, it contains a MeasurementBase/RIO_OnTrack which was not used ...
@ Hole
A hole on the track - this is defined in the following way.
void setType(int type)
Sets the type (measurement, outlier, hole).
void setTrackMeasurementValidationLink(ElementLink< xAOD::TrackMeasurementValidationContainer > trackMeasurementValidationLink)
sets the link to the TrackMeasurementValidationContainer
SG::ConstAccessor< T, ALLOC > ConstAccessor
Definition AuxElement.h:570
TrackMeasurementValidation_v1 TrackMeasurementValidation
Reference the current persistent version:
TrackStateValidation_v1 TrackStateValidation
Reference the current persistent version:
TrackMeasurementValidationContainer_v1 TrackMeasurementValidationContainer
Definition of the current "TrackMeasurementValidation container version".

◆ 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_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_decorator_actsTracks

SG::ReadDecorHandleKey<xAOD::TrackParticleContainer> ActsTrk::ActsTrackStateOnSurfaceDecoratorAlg::m_decorator_actsTracks {this, "ActsTrackLink", m_trackParticlesKey, "actsTrack"}
private

Definition at line 35 of file ActsTrackStateOnSurfaceDecoratorAlg.h.

35{this, "ActsTrackLink", m_trackParticlesKey, "actsTrack"};

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

Gaudi::Property<bool> ActsTrk::ActsTrackStateOnSurfaceDecoratorAlg::m_isITk {this, "isITk", true, "Flag to indicate whether running on ITk"}
private

Definition at line 41 of file ActsTrackStateOnSurfaceDecoratorAlg.h.

41{this, "isITk", true, "Flag to indicate whether running on ITk"};

◆ m_pixelMsosKey

SG::WriteHandleKey< xAOD::TrackStateValidationContainer > ActsTrk::ActsTrackStateOnSurfaceDecoratorAlg::m_pixelMsosKey {this, "PixelMSOSs", ""}
private

Definition at line 37 of file ActsTrackStateOnSurfaceDecoratorAlg.h.

37{this, "PixelMSOSs", ""};

◆ m_stripMsosKey

SG::WriteHandleKey< xAOD::TrackStateValidationContainer > ActsTrk::ActsTrackStateOnSurfaceDecoratorAlg::m_stripMsosKey {this, "StripMSOSs", ""}
private

Definition at line 38 of file ActsTrackStateOnSurfaceDecoratorAlg.h.

38{this, "StripMSOSs", ""};

◆ m_trackMsosLink

SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > ActsTrk::ActsTrackStateOnSurfaceDecoratorAlg::m_trackMsosLink {this, "msosLink", m_trackParticlesKey, "Reco_msosLink"}
private

Definition at line 39 of file ActsTrackStateOnSurfaceDecoratorAlg.h.

39{this, "msosLink", m_trackParticlesKey, "Reco_msosLink"};

◆ m_trackParticlesKey

SG::ReadHandleKey< xAOD::TrackParticleContainer > ActsTrk::ActsTrackStateOnSurfaceDecoratorAlg::m_trackParticlesKey {this, "TrackParticles", "", "Input xAOD::TrackParticles"}
private

Definition at line 34 of file ActsTrackStateOnSurfaceDecoratorAlg.h.

34{this, "TrackParticles", "", "Input xAOD::TrackParticles"};

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


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