|
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 > &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 |
|
|
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} |
|
| 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()
unsigned int AthReentrantAlgorithm::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.
Override this to return 0 for reentrant algorithms.
Definition at line 55 of file AthReentrantAlgorithm.cxx.
◆ convertHgtdClusters()
StatusCode InDetToXAODClusterConversion::convertHgtdClusters |
( |
const EventContext & |
ctx | ) |
const |
|
private |
Definition at line 169 of file InDetToXAODClusterConversion.cxx.
172 if (not hgtdDetEleHandle.isValid() or hgtdElements==
nullptr) {
174 return StatusCode::FAILURE;
178 ATH_CHECK( outputHgtdClusterContainer.record (std::make_unique<xAOD::HGTDClusterContainer>(),
179 std::make_unique<xAOD::HGTDClusterAuxContainer>()) );
183 ATH_CHECK(inputHgtdClusterContainer.isValid());
186 for (
const auto *
const clusterCollection : *inputHgtdClusterContainer) {
187 if (!clusterCollection)
continue;
188 for(
const auto *
const theCluster : *clusterCollection) {
189 Identifier clusterId = theCluster->identify();
192 if ( element==
nullptr ) {
193 ATH_MSG_FATAL(
"Invalid strip detector element for cluster with identifier " << clusterId );
194 return StatusCode::FAILURE;
198 outputHgtdClusterContainer->push_back(hgtdCl);
203 hgtdLinkAcc( *hgtdCl ) = hgtdLink;
207 ATH_MSG_DEBUG(
"xAOD::HGTDClusterContainer with size: " << outputHgtdClusterContainer->size());
208 return StatusCode::SUCCESS;
◆ convertPixelClusters()
StatusCode InDetToXAODClusterConversion::convertPixelClusters |
( |
const EventContext & |
ctx | ) |
const |
|
private |
Definition at line 85 of file InDetToXAODClusterConversion.cxx.
88 if (not pixelDetEleHandle.isValid() or pixElements==
nullptr) {
90 return StatusCode::FAILURE;
94 ATH_CHECK( outputPixelClusterContainer.record (std::make_unique<xAOD::PixelClusterContainer>(),
95 std::make_unique<xAOD::PixelClusterAuxContainer>()) );
101 for (
const auto *
const clusterCollection : *inputPixelClusterContainer) {
102 if (!clusterCollection)
continue;
103 for(
const auto *
const theCluster : *clusterCollection) {
104 Identifier clusterId = theCluster->identify();
107 if ( element==
nullptr ) {
108 ATH_MSG_FATAL(
"Invalid pixel detector element for cluster identifier " << clusterId );
109 return StatusCode::FAILURE;
113 outputPixelClusterContainer->push_back(pixelCl);
118 pixelLinkAcc( *pixelCl ) = pixelLink;
122 ATH_MSG_DEBUG(
"xAOD::PixelClusterContainer with size: " << outputPixelClusterContainer->size());
123 return StatusCode::SUCCESS;
◆ convertStripClusters()
StatusCode InDetToXAODClusterConversion::convertStripClusters |
( |
const EventContext & |
ctx | ) |
const |
|
private |
Definition at line 126 of file InDetToXAODClusterConversion.cxx.
129 if (not stripDetEleHandle.isValid() or stripElements==
nullptr) {
131 return StatusCode::FAILURE;
135 ATH_CHECK( outputStripClusterContainer.record (std::make_unique<xAOD::StripClusterContainer>(),
136 std::make_unique<xAOD::StripClusterAuxContainer>()) );
142 for (
const auto *
const clusterCollection : *inputStripClusterContainer) {
143 if (!clusterCollection)
continue;
144 for(
const auto *
const theCluster : *clusterCollection) {
145 Identifier clusterId = theCluster->identify();
148 if ( element==
nullptr ) {
149 ATH_MSG_FATAL(
"Invalid strip detector element for cluster with identifier " << clusterId );
150 return StatusCode::FAILURE;
155 outputStripClusterContainer->push_back(stripCl);
160 stripLinkAcc( *stripCl ) = stripLink;
164 ATH_MSG_DEBUG(
"xAOD::StripClusterContainer with size: " << outputStripClusterContainer->size());
166 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()
const DataObjIDColl & AthReentrantAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 79 of file AthReentrantAlgorithm.cxx.
86 return Algorithm::extraOutputDeps();
◆ filterPassed()
virtual bool AthReentrantAlgorithm::filterPassed |
( |
const EventContext & |
ctx | ) |
const |
|
inlinevirtualinherited |
◆ 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()
bool AthReentrantAlgorithm::isClonable |
( |
| ) |
const |
|
overridevirtualinherited |
Specify if the algorithm is clonable.
Reentrant algorithms are clonable.
Reimplemented in Simulation::BeamEffectsAlg, InDet::SiTrackerSpacePointFinder, InDet::SCT_Clusterization, InDet::SiSPSeededTrackFinder, SCTRawDataProvider, InDet::GNNSeedingTrackMaker, SCT_PrepDataToxAOD, RoIBResultToxAOD, SCT_CablingCondAlgFromCoraCool, SCT_ReadCalibDataTestAlg, SCT_CablingCondAlgFromText, InDet::SiSPGNNTrackMaker, SCT_ReadCalibChipDataTestAlg, SCT_TestCablingAlg, SCT_ConfigurationConditionsTestAlg, ITkPixelCablingAlg, ITkStripCablingAlg, SCTEventFlagWriter, SCT_ConditionsSummaryTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_TdaqEnabledTestAlg, SCT_SiliconConditionsTestAlg, SCTSiLorentzAngleTestAlg, SCT_ByteStreamErrorsTestAlg, SCT_ConditionsParameterTestAlg, SCT_FlaggedConditionTestAlg, SCT_StripVetoTestAlg, SCT_RawDataToxAOD, and SCTSiPropertiesTestAlg.
Definition at line 44 of file AthReentrantAlgorithm.cxx.
◆ 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()
virtual void AthReentrantAlgorithm::setFilterPassed |
( |
bool |
state, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
inlinevirtualinherited |
◆ sysExecute()
StatusCode AthReentrantAlgorithm::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 67 of file AthReentrantAlgorithm.cxx.
69 return Gaudi::Algorithm::sysExecute (ctx);
◆ sysInitialize()
StatusCode AthReentrantAlgorithm::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 InputMakerBase, and HypoBase.
Definition at line 96 of file AthReentrantAlgorithm.cxx.
107 if ( cs.retrieve().isFailure() ) {
109 return StatusCode::SUCCESS;
111 if (cs->regHandle(
this,*
h).isFailure()) {
112 sc = StatusCode::FAILURE;
113 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
DataObjIDColl AthReentrantAlgorithm::m_extendedExtraObjects |
|
privateinherited |
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Empty if no symlinks were found.
Definition at line 153 of file AthReentrantAlgorithm.h.
◆ m_HGTDDetEleCollKey
◆ m_hgtdID
const HGTD_ID* InDet::InDetToXAODClusterConversion::m_hgtdID {} |
|
private |
◆ m_inputHgtdClusterContainerKey
◆ m_inputPixelClusterContainerKey
◆ m_inputStripClusterContainerKey
◆ 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
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
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
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
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
StripCluster_v1 StripCluster
Define the version of the strip cluster class.
IdentifierHash wafer_hash(Identifier wafer_id) const
wafer hash from id
Gaudi::Property< bool > m_processStrip
AthReentrantAlgorithm()
Default constructor:
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
PixelCluster_v1 PixelCluster
Define the version of the pixel cluster class.
::StatusCode StatusCode
StatusCode definition for legacy code.
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.
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
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
virtual StatusCode sysInitialize() override
Override sysInitialize.
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)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Gaudi::Property< bool > m_processHgtd
SG::ReadHandleKey< InDet::SCT_ClusterContainer > m_inputStripClusterContainerKey
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module, int side) const
For a single side of module.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
SG::WriteHandleKey< xAOD::StripClusterContainer > m_outputStripClusterContainerKey
Gaudi::Property< bool > m_processPixel