 |
ATLAS Offline Software
|
Go to the documentation of this file.
8 #include "GeoModelHelpers/TransformToStringConverter.h"
10 #include "GeoModelKernel/GeoClearAbsPosAction.h"
28 return StatusCode::FAILURE;
32 return StatusCode::FAILURE;
34 return StatusCode::SUCCESS;
39 if (writeHandle.isValid()) {
40 ATH_MSG_DEBUG(
"Nothing needs to be done for " << ctx.eventID().event_number());
41 return StatusCode::SUCCESS;
44 if (!readHandle.isValid()) {
46 return StatusCode::FAILURE;
48 writeHandle.addDependency(readHandle);
50 auto newAlignment = std::make_unique<DetectorAlignStore>(
m_Type);
51 newAlignment->geoModelAlignment = std::make_unique<GeoAlignmentStore>(**readHandle);
52 newAlignment->geoModelAlignment->clearPosCache();
59 newAlignment->geoModelAlignment.reset();
61 ATH_CHECK(writeHandle.record(std::move(newAlignment)));
62 return StatusCode::SUCCESS;
DetectorType
Simple enum to Identify the Type of the ACTS sub detector.
Gaudi::Property< bool > m_fillAlignStoreCache
Flag toggling whether the alignment store shall be filled with the transforms or not.
@ UnDefined
Small Thing Gap chambers (NSW)
StatusCode execute(const EventContext &ctx) const override final
Gaudi::Property< int > m_detType
Flag determining the subdetector. Needs to be static castable to DetectorType.
ServiceHandle< ActsTrk::ITrackingGeometrySvc > m_trackingGeoSvc
ServiceHandle to the ActsTrackingGeometry.
StatusCode initialize() override final
::StatusCode StatusCode
StatusCode definition for legacy code.
DetectorType m_Type
Static cast of >DetectorType< property.
SG::ReadCondHandleKey< GeoAlignmentStore > m_inputKey
Key to the alignment transformations for the detector volumes.
std::string to_string(const DetectorType &type)
StatusCode initialize(bool used=true)
SG::WriteCondHandleKey< DetectorAlignStore > m_outputKey
Key to the alignment transformations written by the alg.
#define ATH_MSG_WARNING(x)
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
virtual ~DetectorAlignCondAlg()