8#include "GeoModelHelpers/TransformToStringConverter.h"
10#include "GeoModelKernel/GeoClearAbsPosAction.h"
26 }
catch (
const std::exception& what) {
28 return StatusCode::FAILURE;
32 return StatusCode::FAILURE;
34 return StatusCode::SUCCESS;
40 ATH_MSG_DEBUG(
"Nothing needs to be done for " << ctx.eventID().event_number());
41 return StatusCode::SUCCESS;
46 return StatusCode::FAILURE;
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();
62 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
SG::WriteCondHandleKey< DetectorAlignStore > m_outputKey
Key to the alignment transformations written by the alg.
virtual ~DetectorAlignCondAlg()
DetectorType m_Type
Static cast of >DetectorType< property.
StatusCode execute(const EventContext &ctx) const override final
StatusCode initialize() 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.
Gaudi::Property< bool > m_fillAlignStoreCache
Flag toggling whether the alignment store shall be filled with the transforms or not.
SG::ReadCondHandleKey< GeoAlignmentStore > m_inputKey
Key to the alignment transformations for the detector volumes.
void addDependency(const EventIDRange &range)
StatusCode record(const EventIDRange &range, T *t)
record handle, with explicit range DEPRECATED
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
std::string to_string(const DetectorType &type)
DetectorType
Simple enum to Identify the Type of the ACTS sub detector.
@ UnDefined
Small Thing Gap chambers (NSW)