|
ATLAS Offline Software
|
#include <SCT_AlignCondAlg.h>
|
| SCT_AlignCondAlg (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual | ~SCT_AlignCondAlg () override=default |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | execute () override |
|
virtual StatusCode | finalize () override |
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
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 |
|
|
BooleanProperty | m_useDynamicAlignFolders {this, "UseDynamicAlignFolders", false, "Flag of dynamic or static ID alignment folders"} |
|
SG::ReadCondHandleKey< AlignableTransformContainer > | m_readKeyStatic {this, "ReadKeyStatic", "/Indet/Align", "Key for the static alignment folder"} |
|
SG::ReadCondHandleKey< CondAttrListCollection > | m_readKeyDynamicL1 {this, "ReadKeyDynamicL1", "/Indet/AlignL1/ID", "Key for the dynamic L1 alignment folder"} |
|
SG::ReadCondHandleKey< CondAttrListCollection > | m_readKeyDynamicL2 {this, "ReadKeyDynamicL2", "/Indet/AlignL2/SCT", "Key for the dynamic L2 alignment folder"} |
|
SG::ReadCondHandleKey< AlignableTransformContainer > | m_readKeyDynamicL3 {this, "ReadKeyDynamicL3", "/Indet/AlignL3", "Key for the dynamic L3 alignment folder"} |
|
SG::WriteCondHandleKey< GeoAlignmentStore > | m_writeKey |
|
const InDetDD::SCT_DetectorManager * | m_detManager {nullptr} |
|
std::string | m_DetManagerName |
|
DataObjIDColl | m_extendedExtraObjects |
|
StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) More...
|
|
StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) More...
|
|
std::vector< SG::VarHandleKeyArray * > | m_vhka |
|
bool | m_varHandleArraysDeclared |
|
Definition at line 37 of file SCT_AlignCondAlg.h.
◆ StoreGateSvc_t
◆ SCT_AlignCondAlg()
SCT_AlignCondAlg::SCT_AlignCondAlg |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~SCT_AlignCondAlg()
virtual SCT_AlignCondAlg::~SCT_AlignCondAlg |
( |
| ) |
|
|
overridevirtualdefault |
◆ 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);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ 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.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ 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.
338 return PBASE::declareProperty(
name, property,
doc);
◆ 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 SCT_AlignCondAlg::execute |
( |
| ) |
|
|
overridevirtual |
Definition at line 41 of file SCT_AlignCondAlg.cxx.
45 const EventContext& ctx = Gaudi::Hive::currentContext();
50 if (writeHandle.isValid()) {
51 ATH_MSG_DEBUG(
"CondHandle " << writeHandle.fullKey() <<
" is already valid."
52 <<
". In theory this should not be called, but may happen"
53 <<
" if multiple concurrent events are being processed out of order.");
54 return StatusCode::SUCCESS;
59 if (oldColl==
nullptr) {
60 ATH_MSG_FATAL(
"Null pointer is returned by getDetectorElementCollection()");
61 return StatusCode::FAILURE;
65 std::unique_ptr<GeoAlignmentStore> writeCdo{std::make_unique<GeoAlignmentStore>()};
71 if (readCdoStatic==
nullptr) {
73 return StatusCode::FAILURE;
82 writeHandle.addDependency(readHandleStatic);
87 if (readCdoDynamicL1==
nullptr) {
89 return StatusCode::FAILURE;
93 if (readCdoDynamicL2==
nullptr) {
94 ATH_MSG_FATAL(
"Null pointer to the read conditions object of " << readHandleDynamicL2.key());
95 return StatusCode::FAILURE;
99 if (readCdoDynamicL3==
nullptr) {
100 ATH_MSG_FATAL(
"Null pointer to the read conditions object of " << readHandleDynamicL3.key());
101 return StatusCode::FAILURE;
116 writeHandle.addDependency(readHandleDynamicL1);
117 writeHandle.addDependency(readHandleDynamicL2);
118 writeHandle.addDependency(readHandleDynamicL3);
123 oldEl->getMaterialGeom()->getAbsoluteTransform(writeCdo.get());
124 oldEl->getMaterialGeom()->getDefAbsoluteTransform(writeCdo.get());
127 writeCdo->lockDelta();
128 writeCdo->lockPosCache();
131 if (writeHandle.record(std::move(writeCdo)).isFailure()) {
132 ATH_MSG_FATAL(
"Could not record GeoAlignmentStore " << writeHandle.key()
133 <<
" with EventRange " << writeHandle.getRange()
134 <<
" into Conditions Store");
135 return StatusCode::FAILURE;
137 ATH_MSG_INFO(
"recorded new CDO " << writeHandle.key() <<
" with range " << writeHandle.getRange() <<
" into Conditions Store");
139 return StatusCode::SUCCESS;
◆ 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 & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
57 return Algorithm::extraOutputDeps();
◆ finalize()
StatusCode SCT_AlignCondAlg::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode SCT_AlignCondAlg::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.
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ 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()
◆ sysInitialize()
StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ 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_detManager
◆ m_DetManagerName
std::string SCT_AlignCondAlg::m_DetManagerName |
|
private |
◆ m_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_readKeyDynamicL1
◆ m_readKeyDynamicL2
◆ m_readKeyDynamicL3
◆ m_readKeyStatic
◆ m_useDynamicAlignFolders
BooleanProperty SCT_AlignCondAlg::m_useDynamicAlignFolders {this, "UseDynamicAlignFolders", false, "Flag of dynamic or static ID alignment folders"} |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_writeKey
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
A CondMultChanCollection is a template class which can hold a collection of T* objects which are inte...
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyDynamicL2
std::map< std::string, const void * > RawAlignmentObjects
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
SG::ReadCondHandleKey< AlignableTransformContainer > m_readKeyDynamicL3
const std::string & key() const
Return the StoreGate ID for the referenced object.
This class is a collection of AttributeLists where each one is associated with a channel number....
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
std::string m_DetManagerName
virtual const SiDetectorElementCollection * getDetectorElementCollection() const override
access to whole collectiom
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
BooleanProperty m_useDynamicAlignFolders
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
StatusCode align(IOVSVC_CALLBACK_ARGS) const
StatusCode initialize(bool used=true)
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyDynamicL1
DataObjIDColl m_extendedExtraObjects
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
AthAlgorithm()
Default constructor:
SG::WriteCondHandleKey< GeoAlignmentStore > m_writeKey
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
SG::ReadCondHandleKey< AlignableTransformContainer > m_readKeyStatic
const InDetDD::SCT_DetectorManager * m_detManager