 |
ATLAS Offline Software
|
#include <InDetToXAODClusterConversion.h>
|
| | InDetToXAODClusterConversion (const std::string &name, ISvcLocator *pSvcLocator) |
| | Constructor with parameters: More...
|
| |
| virtual StatusCode | initialize () override |
| |
| virtual StatusCode | execute (const EventContext &ctx) const override |
| |
| virtual StatusCode | sysInitialize () override |
| | Override sysInitialize. More...
|
| |
| virtual bool | isClonable () const override |
| | Specify if the algorithm is clonable. More...
|
| |
| virtual unsigned int | cardinality () const override |
| | Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
|
| |
| virtual StatusCode | sysExecute (const EventContext &ctx) override |
| | Execute an algorithm. More...
|
| |
| virtual const DataObjIDColl & | extraOutputDeps () const override |
| | Return the list of extra output dependencies. More...
|
| |
| 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. More...
|
| |
| const ServiceHandle< StoreGateSvc > & | evtStore () const |
| | The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
|
| |
| const ServiceHandle< StoreGateSvc > & | detStore () const |
| | The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
|
| |
| virtual StatusCode | sysStart () override |
| | Handle START transition. More...
|
| |
| virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| | Return this algorithm's input handles. More...
|
| |
| virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| | Return this algorithm's output handles. More...
|
| |
| Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) |
| |
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| | Declare a new Gaudi property. More...
|
| |
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| | Declare a new Gaudi property. More...
|
| |
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
| |
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| | Declare a new Gaudi property. More...
|
| |
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| | Declare a new Gaudi property. More...
|
| |
| void | updateVHKA (Gaudi::Details::PropertyBase &) |
| |
| MsgStream & | msg () const |
| |
| MsgStream & | msg (const MSG::Level lvl) const |
| |
| bool | msgLvl (const MSG::Level lvl) const |
| |
|
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) |
| | specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
| |
|
| const PixelID * | m_pixelID {} |
| |
| const SCT_ID * | m_stripID {} |
| |
| const HGTD_ID * | m_hgtdID {} |
| |
| SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > | m_pixelDetEleCollKey {this, "PixelDetEleCollKey", "ITkPixelDetectorElementCollection", "Key of SiDetectorElementCollection for Pixel"} |
| |
| SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > | m_stripDetEleCollKey {this, "StripDetEleCollKey", "ITkStripDetectorElementCollection", "Key of SiDetectorElementCollection for Strip"} |
| |
| SG::ReadCondHandleKey< InDetDD::HGTD_DetectorElementCollection > | m_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::PixelClusterContainer > | m_outputPixelClusterContainerKey {this, "OutputPixelClustersName", "ITkPixelClusters", "name of the output xAOD pixel cluster container"} |
| |
| SG::WriteHandleKey< xAOD::StripClusterContainer > | m_outputStripClusterContainerKey {this, "OutputStripClustersName", "ITkStripClusters", "name of the output xAOD strip cluster container"} |
| |
| SG::ReadHandleKey<::HGTD_ClusterContainer > | m_inputHgtdClusterContainerKey {this, "InputHgtdClustersName", "HGTD_Clusters", "name of the input hgtd cluster container"} |
| |
| SG::WriteHandleKey< xAOD::HGTDClusterContainer > | m_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 |
| |
| InDetToXAODClusterConversion & | operator= (const InDetToXAODClusterConversion &)=delete |
| |
| StatusCode | convertPixelClusters (const EventContext &ctx) const |
| |
| StatusCode | convertStripClusters (const EventContext &ctx) const |
| |
| StatusCode | convertHgtdClusters (const EventContext &ctx) const |
| |
◆ StoreGateSvc_t
◆ InDetToXAODClusterConversion() [1/3]
| InDetToXAODClusterConversion::InDetToXAODClusterConversion |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ InDetToXAODClusterConversion() [2/3]
| InDet::InDetToXAODClusterConversion::InDetToXAODClusterConversion |
( |
| ) |
|
|
delete |
◆ InDetToXAODClusterConversion() [3/3]
◆ cardinality()
Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
Override this to return 0 for reentrant algorithms.
Override this to return 0 for reentrant algorithms.
Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.
◆ convertHgtdClusters()
| StatusCode InDetToXAODClusterConversion::convertHgtdClusters |
( |
const EventContext & |
ctx | ) |
const |
|
private |
Definition at line 196 of file InDetToXAODClusterConversion.cxx.
199 if (not hgtdDetEleHandle.isValid() or hgtdElements==
nullptr) {
201 return StatusCode::FAILURE;
205 ATH_CHECK( outputHgtdClusterContainer.record (std::make_unique<xAOD::HGTDClusterContainer>(),
206 std::make_unique<xAOD::HGTDClusterAuxContainer>()) );
210 ATH_CHECK(inputHgtdClusterContainer.isValid());
213 for (
const auto *
const clusterCollection : *inputHgtdClusterContainer) {
214 if (!clusterCollection)
continue;
215 for(
const auto *
const theCluster : *clusterCollection) {
216 Identifier clusterId = theCluster->identify();
219 if ( element==
nullptr ) {
220 ATH_MSG_FATAL(
"Invalid strip detector element for cluster with identifier " << clusterId );
221 return StatusCode::FAILURE;
225 outputHgtdClusterContainer->push_back(hgtdCl);
230 hgtdLinkAcc( *hgtdCl ) = hgtdLink;
234 ATH_MSG_DEBUG(
"xAOD::HGTDClusterContainer with size: " << outputHgtdClusterContainer->size());
235 return StatusCode::SUCCESS;
◆ convertPixelClusters()
| StatusCode InDetToXAODClusterConversion::convertPixelClusters |
( |
const EventContext & |
ctx | ) |
const |
|
private |
Definition at line 87 of file InDetToXAODClusterConversion.cxx.
90 if (not pixelDetEleHandle.isValid() or pixElements==
nullptr) {
92 return StatusCode::FAILURE;
97 std::make_unique<xAOD::PixelClusterAuxContainer>()) );
104 size_t nclusters = 0;
105 for (
const auto *
const clusterCollection : *inputPixelClusterContainer) {
106 if (!clusterCollection)
continue;
107 nclusters += clusterCollection->size();
110 outputPixelClusterContainer->push_new (nclusters, [&
pool](){
return pool.nextElementPtr();});
113 for (
const auto *
const clusterCollection : *inputPixelClusterContainer) {
114 if (!clusterCollection)
continue;
115 for(
const auto *
const theCluster : *clusterCollection) {
116 Identifier clusterId = theCluster->identify();
119 if ( element==
nullptr ) {
120 ATH_MSG_FATAL(
"Invalid pixel detector element for cluster identifier " << clusterId );
121 return StatusCode::FAILURE;
129 pixelLinkAcc( *pixelCl ) = pixelLink;
132 if (icluster != outputPixelClusterContainer->size()) {
133 ATH_MSG_ERROR(
"xAOD::PixelClusterContainer miscount; " << icluster <<
" versus " << outputPixelClusterContainer->size());
134 return StatusCode::FAILURE;
137 ATH_MSG_DEBUG(
"xAOD::PixelClusterContainer with size: " << outputPixelClusterContainer->size());
138 return StatusCode::SUCCESS;
◆ convertStripClusters()
| StatusCode InDetToXAODClusterConversion::convertStripClusters |
( |
const EventContext & |
ctx | ) |
const |
|
private |
Definition at line 141 of file InDetToXAODClusterConversion.cxx.
144 if (not stripDetEleHandle.isValid() or stripElements==
nullptr) {
146 return StatusCode::FAILURE;
151 std::make_unique<xAOD::StripClusterAuxContainer>()) );
156 size_t nclusters = 0;
157 for (
const auto *
const clusterCollection : *inputStripClusterContainer) {
158 if (!clusterCollection)
continue;
159 nclusters += clusterCollection->size();
162 outputStripClusterContainer->push_new (nclusters, [&
pool](){
return pool.nextElementPtr();});
166 for (
const auto *
const clusterCollection : *inputStripClusterContainer) {
167 if (!clusterCollection)
continue;
168 for(
const auto *
const theCluster : *clusterCollection) {
169 Identifier clusterId = theCluster->identify();
172 if ( element==
nullptr ) {
173 ATH_MSG_FATAL(
"Invalid strip detector element for cluster with identifier " << clusterId );
174 return StatusCode::FAILURE;
183 stripLinkAcc( *stripCl ) = stripLink;
186 if (icluster != outputStripClusterContainer->size()) {
187 ATH_MSG_ERROR(
"xAOD::StripClusterContainer miscount; " << icluster <<
" versus " << outputStripClusterContainer->size());
188 return StatusCode::FAILURE;
191 ATH_MSG_DEBUG(
"xAOD::StripClusterContainer with size: " << outputStripClusterContainer->size());
193 return StatusCode::SUCCESS;
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
| name | Name of the property. |
| hndl | Object holding the property value. |
| doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
| name | Name of the property. |
| hndl | Object holding the property value. |
| doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
| name | Name of the property. |
| property | Object holding the property value. |
| doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.
Definition at line 333 of file AthCommonDataStore.h.
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
| name | Name of the property. |
| property | Object holding the property value. |
| doc | Documentation string for the property. |
This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
| StatusCode InDetToXAODClusterConversion::execute |
( |
const EventContext & |
ctx | ) |
const |
|
overridevirtual |
◆ extraDeps_update_handler()
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()
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.
◆ filterPassed()
◆ initialize()
| StatusCode InDetToXAODClusterConversion::initialize |
( |
| ) |
|
|
overridevirtual |
◆ inputHandles()
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() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ operator=()
◆ outputHandles()
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()
◆ renounceArray()
◆ setFilterPassed()
◆ sysExecute()
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.
◆ sysInitialize()
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 InputMakerBase, and HypoBase.
Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.
110 if (
sc.isFailure()) {
118 if ( cs.retrieve().isFailure() ) {
120 return StatusCode::SUCCESS;
122 if (cs->regHandle(
this,*
h).isFailure()) {
123 sc = StatusCode::FAILURE;
124 ATH_MSG_ERROR(
"unable to register WriteCondHandle " <<
h->fullKey()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
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
◆ m_hgtdID
| const HGTD_ID* InDet::InDetToXAODClusterConversion::m_hgtdID {} |
|
private |
◆ m_inputHgtdClusterContainerKey
◆ m_inputPixelClusterContainerKey
◆ m_inputStripClusterContainerKey
◆ m_isITk
| Gaudi::Property<bool> InDet::InDetToXAODClusterConversion::m_isITk {this, "isITk", true, "True if running in ITk"} |
|
private |
◆ m_outputHgtdClusterContainerKey
◆ m_outputPixelClusterContainerKey
◆ m_outputStripClusterContainerKey
◆ m_pixelDetEleCollKey
◆ m_pixelID
| const PixelID* InDet::InDetToXAODClusterConversion::m_pixelID {} |
|
private |
◆ m_processHgtd
| Gaudi::Property<bool> InDet::InDetToXAODClusterConversion::m_processHgtd {this, "ProcessHgtd", false} |
|
private |
◆ m_processPixel
| Gaudi::Property<bool> InDet::InDetToXAODClusterConversion::m_processPixel {this, "ProcessPixel", false} |
|
private |
◆ m_processStrip
| Gaudi::Property<bool> InDet::InDetToXAODClusterConversion::m_processStrip {this, "ProcessStrip", false} |
|
private |
◆ m_stripDetEleCollKey
◆ m_stripID
| const SCT_ID* InDet::InDetToXAODClusterConversion::m_stripID {} |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
StatusCode convertInDetToXaodCluster(const InDet::PixelCluster &indetCluster, const InDetDD::SiDetectorElement &element, xAOD::PixelCluster &xaodCluster)
SG::ReadHandleKey< InDet::PixelClusterContainer > m_inputPixelClusterContainerKey
IdentifierHash wafer_hash(Identifier wafer_id) const
wafer hash from id
Helper class to provide type-safe access to aux data.
StatusCode convertHgtdClusters(const EventContext &ctx) const
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
HGTDCluster_v1 HGTDCluster
Define the version of the pixel cluster class.
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)
SG::WriteHandleKey< xAOD::HGTDClusterContainer > m_outputHgtdClusterContainerKey
@ ALWAYS_TRACK_INDICES
Always track indices, regardless of the setting of the ownership policy.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
SG::WriteHandleKey< xAOD::PixelClusterContainer > m_outputPixelClusterContainerKey
StatusCode convertStripClusters(const EventContext &ctx) const
StatusCode convertPixelClusters(const EventContext &ctx) const
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module) const
For a single crystal.
Identifier wafer_id(int endcap, int layer, int phi_module, int eta_module) const
For a single crystal.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
An algorithm that can be simultaneously executed in multiple threads.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
virtual const DataObjIDColl & extraOutputDeps() const override
Return the list of extra output dependencies.
IdentifierHash wafer_hash(Identifier wafer_id) const
wafer hash from id
Gaudi::Property< bool > m_processStrip
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
IdentifierHash wafer_hash(const Identifier &wafer_id) const
wafer hash from id - optimized
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
ElementLink implementation for ROOT usage.
SG::ReadHandleKey<::HGTD_ClusterContainer > m_inputHgtdClusterContainerKey
StatusCode initialize(bool used=true)
const PixelID * m_pixelID
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_stripDetEleCollKey
SG::ReadCondHandleKey< InDetDD::HGTD_DetectorElementCollection > m_HGTDDetEleCollKey
#define ATH_MSG_WARNING(x)
a typed memory pool that saves time spent allocation small object. This is typically used by containe...
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Gaudi::Property< bool > m_processHgtd
SG::ReadHandleKey< InDet::SCT_ClusterContainer > m_inputStripClusterContainerKey
virtual StatusCode sysInitialize() override
Override sysInitialize.
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module, int side) const
For a single side of module.
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
const HGTD_DetectorElement * getDetectorElement(const IdentifierHash &hash, const HGTD_DetectorElementCollection &coll)
Gaudi::Property< bool > m_isITk
SG::WriteHandleKey< xAOD::StripClusterContainer > m_outputStripClusterContainerKey
Gaudi::Property< bool > m_processPixel