|
ATLAS Offline Software
|
Go to the documentation of this file.
8 #include "GeoModelHelpers/TransformToStringConverter.h"
10 #include "GeoModelKernel/GeoClearAbsPosAction.h"
35 return StatusCode::FAILURE;
39 return StatusCode::FAILURE;
41 return StatusCode::SUCCESS;
46 if (writeHandle.isValid()) {
47 ATH_MSG_DEBUG(
"Nothing needs to be done for " << ctx.eventID().event_number());
48 return StatusCode::SUCCESS;
51 if (!readHandle.isValid()) {
53 return StatusCode::FAILURE;
55 writeHandle.addDependency(readHandle);
57 std::unique_ptr<DetectorAlignStore> newAlignment = std::make_unique<DetectorAlignStore>(
m_Type);
58 newAlignment->
geoModelAlignment = std::make_unique<GeoAlignmentStore>(**readHandle);
72 ATH_CHECK(writeHandle.record(std::move(newAlignment)));
73 return StatusCode::SUCCESS;
Gaudi::Property< bool > m_loadTrkGeoSvc
std::shared_ptr< GeoAlignmentStore > geoModelAlignment
Store containing the aligned GeoModel nodes.
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)
ServiceHandle< IActsTrackingGeometrySvc > m_trackingGeoSvc
ServiceHandle to the ActsTrackingGeometry.
StatusCode execute(const EventContext &ctx) const override final
Gaudi::Property< int > m_detType
Flag determining the subdetector. Needs to be static castable to DetectorType.
An algorithm that can be simultaneously executed in multiple threads.
StatusCode initialize() override final
DetectorAlignCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
Standard constructor.
ServiceHandle< ActsTrk::IDetectorVolumeSvc > m_detVolSvc
ServiceHandle to the IDetectorVolumeSvc.
::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...
Gaudi::Property< bool > m_loadDetVolSvc
virtual ~DetectorAlignCondAlg()