ATLAS Offline Software
Loading...
Searching...
No Matches
InDet::InDetToXAODClusterConversion Class Reference

#include <InDetToXAODClusterConversion.h>

Inheritance diagram for InDet::InDetToXAODClusterConversion:

Public Member Functions

 InDetToXAODClusterConversion (const std::string &name, ISvcLocator *pSvcLocator)
 Constructor with parameters:
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 unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
virtual bool filterPassed (const EventContext &ctx) const
virtual void setFilterPassed (bool state, const EventContext &ctx) const
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

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

Private Attributes

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

Disallow default instantiation, copy, assignment

const PixelIDm_pixelID {}
const SCT_IDm_stripID {}
const HGTD_IDm_hgtdID {}
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollectionm_pixelDetEleCollKey {this, "PixelDetEleCollKey", "ITkPixelDetectorElementCollection", "Key of SiDetectorElementCollection for Pixel"}
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollectionm_stripDetEleCollKey {this, "StripDetEleCollKey", "ITkStripDetectorElementCollection", "Key of SiDetectorElementCollection for Strip"}
SG::ReadCondHandleKey< InDetDD::HGTD_DetectorElementCollectionm_HGTDDetEleCollKey {this, "HGTDDetEleCollKey", "HGTD_DetectorElementCollection", "Key of HGTD_DetectorElementCollection for HGTD"}
SG::ReadHandleKey< InDet::PixelClusterContainer > m_inputPixelClusterContainerKey {this, "InputPixelClustersName", "ITkPixelClusters", "name of the input InDet pixel cluster container"}
SG::ReadHandleKey< InDet::SCT_ClusterContainer > m_inputStripClusterContainerKey {this, "InputStripClustersName", "ITkStripClusters", "name of the input InDet strip cluster container"}
SG::WriteHandleKey< xAOD::PixelClusterContainerm_outputPixelClusterContainerKey {this, "OutputPixelClustersName", "ITkPixelClusters", "name of the output xAOD pixel cluster container"}
SG::WriteHandleKey< xAOD::StripClusterContainerm_outputStripClusterContainerKey {this, "OutputStripClustersName", "ITkStripClusters", "name of the output xAOD strip cluster container"}
SG::ReadHandleKey<::HGTD_ClusterContainerm_inputHgtdClusterContainerKey {this, "InputHgtdClustersName", "HGTD_Clusters", "name of the input hgtd cluster container"}
SG::WriteHandleKey< xAOD::HGTDClusterContainerm_outputHgtdClusterContainerKey {this, "OutputHgtdClustersName", "HGTD_Clusters", "name of the output xAOD hgtd cluster container"}
Gaudi::Property< bool > m_processPixel {this, "ProcessPixel", false}
Gaudi::Property< bool > m_processStrip {this, "ProcessStrip", false}
Gaudi::Property< bool > m_processHgtd {this, "ProcessHgtd", false}
Gaudi::Property< bool > m_isITk {this, "isITk", true, "True if running in ITk"}
 InDetToXAODClusterConversion ()=delete
 InDetToXAODClusterConversion (const InDetToXAODClusterConversion &)=delete
InDetToXAODClusterConversionoperator= (const InDetToXAODClusterConversion &)=delete
StatusCode convertPixelClusters (const EventContext &ctx) const
StatusCode convertStripClusters (const EventContext &ctx) const
StatusCode convertHgtdClusters (const EventContext &ctx) const

Detailed Description

Definition at line 44 of file InDetToXAODClusterConversion.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

◆ InDetToXAODClusterConversion() [1/3]

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

Constructor with parameters:

Definition at line 33 of file InDetToXAODClusterConversion.cxx.

33 :
34AthReentrantAlgorithm(name, pSvcLocator)
35{}

◆ InDetToXAODClusterConversion() [2/3]

InDet::InDetToXAODClusterConversion::InDetToXAODClusterConversion ( )
delete

◆ InDetToXAODClusterConversion() [3/3]

InDet::InDetToXAODClusterConversion::InDetToXAODClusterConversion ( const InDetToXAODClusterConversion & )
delete

Member Function Documentation

◆ cardinality()

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

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

Override this to return 0 for reentrant algorithms.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64{
65 return 0;
66}

◆ convertHgtdClusters()

StatusCode InDetToXAODClusterConversion::convertHgtdClusters ( const EventContext & ctx) const
private

Definition at line 196 of file InDetToXAODClusterConversion.cxx.

196 {
197 SG::ReadCondHandle<InDetDD::HGTD_DetectorElementCollection> hgtdDetEleHandle(m_HGTDDetEleCollKey, ctx);
198 const InDetDD::HGTD_DetectorElementCollection* hgtdElements(*hgtdDetEleHandle);
199 if (not hgtdDetEleHandle.isValid() or hgtdElements==nullptr) {
200 ATH_MSG_FATAL(m_HGTDDetEleCollKey.fullKey() << " is not available.");
201 return StatusCode::FAILURE;
202 }
203
204 SG::WriteHandle<xAOD::HGTDClusterContainer> outputHgtdClusterContainer(m_outputHgtdClusterContainerKey, ctx);
205 ATH_CHECK( outputHgtdClusterContainer.record (std::make_unique<xAOD::HGTDClusterContainer>(),
206 std::make_unique<xAOD::HGTDClusterAuxContainer>()) );
207 ATH_MSG_DEBUG( "Recorded xAOD::HGTDClusterContainer with key: " << m_outputHgtdClusterContainerKey.key() );
208
209 SG::ReadHandle<::HGTD_ClusterContainer> inputHgtdClusterContainer(m_inputHgtdClusterContainerKey, ctx);
210 ATH_CHECK(inputHgtdClusterContainer.isValid());
211
212 static const SG::AuxElement::Accessor< ElementLink< ::HGTD_ClusterCollection > > hgtdLinkAcc("hgtdClusterLink");
213 for (const auto *const clusterCollection : *inputHgtdClusterContainer) {
214 if (!clusterCollection) continue;
215 for(const auto *const theCluster : *clusterCollection) {
216 Identifier clusterId = theCluster->identify();
217
218 const auto *element = InDetDD::HGTDDetEl::getDetectorElement(m_hgtdID->wafer_hash(m_hgtdID->wafer_id(clusterId)),*hgtdElements);
219 if ( element==nullptr ) {
220 ATH_MSG_FATAL( "Invalid strip detector element for cluster with identifier " << clusterId );
221 return StatusCode::FAILURE;
222 }
223
224 xAOD::HGTDCluster * hgtdCl = new xAOD::HGTDCluster();
225 outputHgtdClusterContainer->push_back(hgtdCl);
226 ATH_CHECK( TrackingUtilities::convertInDetToXaodCluster(*theCluster, *element, *hgtdCl) );
227
228 // Create auxiliary branches accessors
229 ElementLink<::HGTD_ClusterCollection> hgtdLink(theCluster, *clusterCollection);
230 hgtdLinkAcc( *hgtdCl ) = hgtdLink;
231 }
232 }
233
234 ATH_MSG_DEBUG("xAOD::HGTDClusterContainer with size: " << outputHgtdClusterContainer->size());
235 return StatusCode::SUCCESS;
236}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_FATAL(x)
#define ATH_MSG_DEBUG(x)
SG::ReadCondHandleKey< InDetDD::HGTD_DetectorElementCollection > m_HGTDDetEleCollKey
SG::WriteHandleKey< xAOD::HGTDClusterContainer > m_outputHgtdClusterContainerKey
SG::ReadHandleKey<::HGTD_ClusterContainer > m_inputHgtdClusterContainerKey
SG::Accessor< T, ALLOC > Accessor
Definition AuxElement.h:572
const HGTD_DetectorElement * getDetectorElement(const IdentifierHash &hash, const HGTD_DetectorElementCollection &coll)
DataVector< HGTD_DetectorElement > HGTD_DetectorElementCollection
StatusCode convertInDetToXaodCluster(const InDet::PixelCluster &indetCluster, const InDetDD::SiDetectorElement &element, xAOD::PixelCluster &xaodCluster)
HGTDCluster_v1 HGTDCluster
Define the version of the pixel cluster class.
Definition HGTDCluster.h:13

◆ convertPixelClusters()

StatusCode InDetToXAODClusterConversion::convertPixelClusters ( const EventContext & ctx) const
private

Definition at line 87 of file InDetToXAODClusterConversion.cxx.

87 {
88 SG::ReadCondHandle<InDetDD::SiDetectorElementCollection> pixelDetEleHandle(m_pixelDetEleCollKey, ctx);
89 const InDetDD::SiDetectorElementCollection* pixElements(*pixelDetEleHandle);
90 if (not pixelDetEleHandle.isValid() or pixElements==nullptr) {
91 ATH_MSG_FATAL(m_pixelDetEleCollKey.fullKey() << " is not available.");
92 return StatusCode::FAILURE;
93 }
94
95 SG::WriteHandle<xAOD::PixelClusterContainer> outputPixelClusterContainer(m_outputPixelClusterContainerKey, ctx);
96 ATH_CHECK( outputPixelClusterContainer.record (std::make_unique<xAOD::PixelClusterContainer>(SG::VIEW_ELEMENTS, SG::ALWAYS_TRACK_INDICES),
97 std::make_unique<xAOD::PixelClusterAuxContainer>()) );
98 ATH_MSG_DEBUG( "Recorded xAOD::PixelClusterContainer with key: " << m_outputPixelClusterContainerKey.key() );
99
100 SG::ReadHandle<InDet::PixelClusterContainer> inputPixelClusterContainer(m_inputPixelClusterContainerKey, ctx);
101
102 static const SG::AuxElement::Accessor< ElementLink< InDet::PixelClusterCollection > > pixelLinkAcc("pixelClusterLink");
103
104 size_t nclusters = 0;
105 for (const auto *const clusterCollection : *inputPixelClusterContainer) {
106 if (!clusterCollection) continue;
107 nclusters += clusterCollection->size();
108 }
109 DataPool<xAOD::PixelCluster> pool (nclusters);
110 outputPixelClusterContainer->push_new (nclusters, [&pool](){return pool.nextElementPtr();});
111 size_t icluster = 0;
112
113 for (const auto *const clusterCollection : *inputPixelClusterContainer) {
114 if (!clusterCollection) continue;
115 for(const auto *const theCluster : *clusterCollection) {
116 Identifier clusterId = theCluster->identify();
117
118 const InDetDD::SiDetectorElement *element=pixElements->getDetectorElement(m_pixelID->wafer_hash(m_pixelID->wafer_id(clusterId)));
119 if ( element==nullptr ) {
120 ATH_MSG_FATAL( "Invalid pixel detector element for cluster identifier " << clusterId );
121 return StatusCode::FAILURE;
122 }
123
124 xAOD::PixelCluster * pixelCl = outputPixelClusterContainer->at(icluster++);
125 ATH_CHECK( TrackingUtilities::convertInDetToXaodCluster(*theCluster, *element, *pixelCl) );
126
127 // Create auxiliary branches accessors
128 ElementLink<InDet::PixelClusterCollection> pixelLink(theCluster, *clusterCollection);
129 pixelLinkAcc( *pixelCl ) = pixelLink;
130 }
131 }
132 if (icluster != outputPixelClusterContainer->size()) {
133 ATH_MSG_ERROR("xAOD::PixelClusterContainer miscount; " << icluster << " versus " << outputPixelClusterContainer->size());
134 return StatusCode::FAILURE;
135 }
136
137 ATH_MSG_DEBUG("xAOD::PixelClusterContainer with size: " << outputPixelClusterContainer->size());
138 return StatusCode::SUCCESS;
139}
#define ATH_MSG_ERROR(x)
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
SG::WriteHandleKey< xAOD::PixelClusterContainer > m_outputPixelClusterContainerKey
SG::ReadHandleKey< InDet::PixelClusterContainer > m_inputPixelClusterContainerKey
@ ALWAYS_TRACK_INDICES
Always track indices, regardless of the setting of the ownership policy.
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
PixelCluster_v1 PixelCluster
Define the version of the pixel cluster class.

◆ convertStripClusters()

StatusCode InDetToXAODClusterConversion::convertStripClusters ( const EventContext & ctx) const
private

Definition at line 141 of file InDetToXAODClusterConversion.cxx.

141 {
142 SG::ReadCondHandle<InDetDD::SiDetectorElementCollection> stripDetEleHandle(m_stripDetEleCollKey, ctx);
143 const InDetDD::SiDetectorElementCollection* stripElements(*stripDetEleHandle);
144 if (not stripDetEleHandle.isValid() or stripElements==nullptr) {
145 ATH_MSG_FATAL(m_stripDetEleCollKey.fullKey() << " is not available.");
146 return StatusCode::FAILURE;
147 }
148
149 SG::WriteHandle<xAOD::StripClusterContainer> outputStripClusterContainer(m_outputStripClusterContainerKey, ctx);
150 ATH_CHECK( outputStripClusterContainer.record (std::make_unique<xAOD::StripClusterContainer>(SG::VIEW_ELEMENTS, SG::ALWAYS_TRACK_INDICES),
151 std::make_unique<xAOD::StripClusterAuxContainer>()) );
152 ATH_MSG_DEBUG( "Recorded xAOD::StripClusterContainer with key: " << m_outputStripClusterContainerKey.key() );
153
154 SG::ReadHandle<InDet::SCT_ClusterContainer> inputStripClusterContainer(m_inputStripClusterContainerKey, ctx);
155
156 size_t nclusters = 0;
157 for (const auto *const clusterCollection : *inputStripClusterContainer) {
158 if (!clusterCollection) continue;
159 nclusters += clusterCollection->size();
160 }
161 DataPool<xAOD::StripCluster> pool (nclusters);
162 outputStripClusterContainer->push_new (nclusters, [&pool](){return pool.nextElementPtr();});
163 size_t icluster = 0;
164
165 static const SG::AuxElement::Accessor< ElementLink< InDet::SCT_ClusterCollection > > stripLinkAcc("sctClusterLink");
166 for (const auto *const clusterCollection : *inputStripClusterContainer) {
167 if (!clusterCollection) continue;
168 for(const auto *const theCluster : *clusterCollection) {
169 Identifier clusterId = theCluster->identify();
170
171 const InDetDD::SiDetectorElement *element=stripElements->getDetectorElement(m_stripID->wafer_hash(m_stripID->wafer_id(clusterId)));
172 if ( element==nullptr ) {
173 ATH_MSG_FATAL( "Invalid strip detector element for cluster with identifier " << clusterId );
174 return StatusCode::FAILURE;
175 }
176
177
178 xAOD::StripCluster * stripCl = outputStripClusterContainer->at(icluster++);
179 ATH_CHECK( TrackingUtilities::convertInDetToXaodCluster(*theCluster, *element, *stripCl, m_isITk) );
180
181 // Create auxiliary branches accessors
182 ElementLink<InDet::SCT_ClusterCollection> stripLink(theCluster, *clusterCollection);
183 stripLinkAcc( *stripCl ) = stripLink;
184 }
185 }
186 if (icluster != outputStripClusterContainer->size()) {
187 ATH_MSG_ERROR("xAOD::StripClusterContainer miscount; " << icluster << " versus " << outputStripClusterContainer->size());
188 return StatusCode::FAILURE;
189 }
190
191 ATH_MSG_DEBUG("xAOD::StripClusterContainer with size: " << outputStripClusterContainer->size());
192
193 return StatusCode::SUCCESS;
194}
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_stripDetEleCollKey
SG::ReadHandleKey< InDet::SCT_ClusterContainer > m_inputStripClusterContainerKey
SG::WriteHandleKey< xAOD::StripClusterContainer > m_outputStripClusterContainerKey
StripCluster_v1 StripCluster
Define the version of the strip cluster class.

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

Definition at line 66 of file InDetToXAODClusterConversion.cxx.

66 {
67 ATH_MSG_DEBUG("Executing " << name() << " ...");
68
69 if (m_processPixel.value()) {
70 ATH_MSG_DEBUG("Converting Pixel Clusters: InDet -> xAOD");
72 }
73
74 if (m_processStrip.value()) {
75 ATH_MSG_DEBUG("Converting Strip Clusters: InDet -> xAOD");
77 }
78
79 if (m_processHgtd.value()) {
80 ATH_MSG_DEBUG("Converting HGTD Clusters: InDet -> xAOD");
82 }
83
84 return StatusCode::SUCCESS;
85}
StatusCode convertStripClusters(const EventContext &ctx) const
StatusCode convertHgtdClusters(const EventContext &ctx) const
StatusCode convertPixelClusters(const EventContext &ctx) const

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ extraOutputDeps()

const DataObjIDColl & AthCommonReentrantAlgorithm< Gaudi::Algorithm >::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.

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

◆ filterPassed()

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

Definition at line 96 of file AthCommonReentrantAlgorithm.h.

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

◆ initialize()

StatusCode InDetToXAODClusterConversion::initialize ( )
overridevirtual

Definition at line 40 of file InDetToXAODClusterConversion.cxx.

40 {
41 ATH_MSG_INFO("Initializing " << name() << " ...");
42
43 ATH_CHECK(detStore()->retrieve(m_pixelID,"PixelID"));
45 if (m_processHgtd)
46 {ATH_CHECK(detStore()->retrieve(m_hgtdID,"HGTD_ID"));}
47
51
56
59
60 ATH_MSG_DEBUG( "Initialize done !" );
61 return StatusCode::SUCCESS;
62}
#define ATH_MSG_INFO(x)
const ServiceHandle< StoreGateSvc > & detStore() const
retrieve(aClass, aKey=None)
Definition PyKernel.py:110

◆ inputHandles()

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

Return this algorithm's input handles.

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

◆ isClonable()

◆ msg()

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msgLvl()

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

Definition at line 30 of file AthCommonMsg.h.

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

◆ operator=()

InDetToXAODClusterConversion & InDet::InDetToXAODClusterConversion::operator= ( const InDetToXAODClusterConversion & )
delete

◆ outputHandles()

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

Return this algorithm's output handles.

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

◆ renounce()

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

Definition at line 380 of file AthCommonDataStore.h.

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

◆ renounceArray()

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

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ setFilterPassed()

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

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

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

◆ sysExecute()

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

Execute an algorithm.

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

Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.

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

◆ sysInitialize()

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

Override sysInitialize.

Override sysInitialize from the base class.

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

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

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

Reimplemented in HypoBase, and InputMakerBase.

Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.

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

◆ sysStart()

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

Handle START transition.

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

◆ updateVHKA()

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

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }

Member Data Documentation

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

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

Empty if no symlinks were found.

Definition at line 114 of file AthCommonReentrantAlgorithm.h.

◆ m_HGTDDetEleCollKey

SG::ReadCondHandleKey<InDetDD::HGTD_DetectorElementCollection> InDet::InDetToXAODClusterConversion::m_HGTDDetEleCollKey {this, "HGTDDetEleCollKey", "HGTD_DetectorElementCollection", "Key of HGTD_DetectorElementCollection for HGTD"}
private

Definition at line 74 of file InDetToXAODClusterConversion.h.

74{this, "HGTDDetEleCollKey", "HGTD_DetectorElementCollection", "Key of HGTD_DetectorElementCollection for HGTD"};

◆ m_hgtdID

const HGTD_ID* InDet::InDetToXAODClusterConversion::m_hgtdID {}
private

Definition at line 70 of file InDetToXAODClusterConversion.h.

70{};

◆ m_inputHgtdClusterContainerKey

SG::ReadHandleKey<::HGTD_ClusterContainer> InDet::InDetToXAODClusterConversion::m_inputHgtdClusterContainerKey {this, "InputHgtdClustersName", "HGTD_Clusters", "name of the input hgtd cluster container"}
private

Definition at line 82 of file InDetToXAODClusterConversion.h.

82{this, "InputHgtdClustersName", "HGTD_Clusters", "name of the input hgtd cluster container"};

◆ m_inputPixelClusterContainerKey

SG::ReadHandleKey<InDet::PixelClusterContainer> InDet::InDetToXAODClusterConversion::m_inputPixelClusterContainerKey {this, "InputPixelClustersName", "ITkPixelClusters", "name of the input InDet pixel cluster container"}
private

Definition at line 76 of file InDetToXAODClusterConversion.h.

76{this, "InputPixelClustersName", "ITkPixelClusters", "name of the input InDet pixel cluster container"};

◆ m_inputStripClusterContainerKey

SG::ReadHandleKey<InDet::SCT_ClusterContainer> InDet::InDetToXAODClusterConversion::m_inputStripClusterContainerKey {this, "InputStripClustersName", "ITkStripClusters", "name of the input InDet strip cluster container"}
private

Definition at line 77 of file InDetToXAODClusterConversion.h.

77{this, "InputStripClustersName", "ITkStripClusters", "name of the input InDet strip cluster container"};

◆ m_isITk

Gaudi::Property<bool> InDet::InDetToXAODClusterConversion::m_isITk {this, "isITk", true, "True if running in ITk"}
private

Definition at line 88 of file InDetToXAODClusterConversion.h.

88{this, "isITk", true, "True if running in ITk"};

◆ m_outputHgtdClusterContainerKey

SG::WriteHandleKey<xAOD::HGTDClusterContainer> InDet::InDetToXAODClusterConversion::m_outputHgtdClusterContainerKey {this, "OutputHgtdClustersName", "HGTD_Clusters", "name of the output xAOD hgtd cluster container"}
private

Definition at line 83 of file InDetToXAODClusterConversion.h.

83{this, "OutputHgtdClustersName", "HGTD_Clusters", "name of the output xAOD hgtd cluster container"};

◆ m_outputPixelClusterContainerKey

SG::WriteHandleKey<xAOD::PixelClusterContainer> InDet::InDetToXAODClusterConversion::m_outputPixelClusterContainerKey {this, "OutputPixelClustersName", "ITkPixelClusters", "name of the output xAOD pixel cluster container"}
private

Definition at line 79 of file InDetToXAODClusterConversion.h.

79{this, "OutputPixelClustersName", "ITkPixelClusters", "name of the output xAOD pixel cluster container"};

◆ m_outputStripClusterContainerKey

SG::WriteHandleKey<xAOD::StripClusterContainer> InDet::InDetToXAODClusterConversion::m_outputStripClusterContainerKey {this, "OutputStripClustersName", "ITkStripClusters", "name of the output xAOD strip cluster container"}
private

Definition at line 80 of file InDetToXAODClusterConversion.h.

80{this, "OutputStripClustersName", "ITkStripClusters", "name of the output xAOD strip cluster container"};

◆ m_pixelDetEleCollKey

SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> InDet::InDetToXAODClusterConversion::m_pixelDetEleCollKey {this, "PixelDetEleCollKey", "ITkPixelDetectorElementCollection", "Key of SiDetectorElementCollection for Pixel"}
private

Definition at line 72 of file InDetToXAODClusterConversion.h.

72{this, "PixelDetEleCollKey", "ITkPixelDetectorElementCollection", "Key of SiDetectorElementCollection for Pixel"};

◆ m_pixelID

const PixelID* InDet::InDetToXAODClusterConversion::m_pixelID {}
private

Definition at line 68 of file InDetToXAODClusterConversion.h.

68{};

◆ m_processHgtd

Gaudi::Property<bool> InDet::InDetToXAODClusterConversion::m_processHgtd {this, "ProcessHgtd", false}
private

Definition at line 87 of file InDetToXAODClusterConversion.h.

87{this, "ProcessHgtd", false};

◆ m_processPixel

Gaudi::Property<bool> InDet::InDetToXAODClusterConversion::m_processPixel {this, "ProcessPixel", false}
private

Definition at line 85 of file InDetToXAODClusterConversion.h.

85{this, "ProcessPixel", false};

◆ m_processStrip

Gaudi::Property<bool> InDet::InDetToXAODClusterConversion::m_processStrip {this, "ProcessStrip", false}
private

Definition at line 86 of file InDetToXAODClusterConversion.h.

86{this, "ProcessStrip", false};

◆ m_stripDetEleCollKey

SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> InDet::InDetToXAODClusterConversion::m_stripDetEleCollKey {this, "StripDetEleCollKey", "ITkStripDetectorElementCollection", "Key of SiDetectorElementCollection for Strip"}
private

Definition at line 73 of file InDetToXAODClusterConversion.h.

73{this, "StripDetEleCollKey", "ITkStripDetectorElementCollection", "Key of SiDetectorElementCollection for Strip"};

◆ m_stripID

const SCT_ID* InDet::InDetToXAODClusterConversion::m_stripID {}
private

Definition at line 69 of file InDetToXAODClusterConversion.h.

69{};

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