24 return StatusCode::SUCCESS;
29 }
catch (
const std::exception& what) {
31 return StatusCode::FAILURE;
35 return StatusCode::FAILURE;
37 return StatusCode::SUCCESS;
42 std::unique_ptr<DetectorAlignStore> newAlignment{};
47 newAlignment = std::make_unique<DetectorAlignStore>(*inStore);
50 if (newAlignment->geoModelAlignment) {
51 newAlignment->geoModelAlignment = std::make_unique<GeoAlignmentStore>(*newAlignment->geoModelAlignment);
52 newAlignment->geoModelAlignment->clearPosCache();
57 newAlignment->trackingAlignment = std::make_unique<TrackingStore>(newAlignment->detType);
60 newAlignment = std::make_unique<DetectorAlignStore>(
m_Type);
70 newAlignment->geoModelAlignment.reset();
76 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
Handle class for recording to StoreGate.
Gaudi::Property< bool > m_fillAlignStoreCache
Flag toggling whether the alignment store shall be filled with the transforms or not.
virtual ~AlignStoreProviderAlg()
Gaudi::Property< int > m_detType
Flag determining the subdetector. Needs to be static castable to DetectorType.
StatusCode execute(const EventContext &ctx) const override final
SG::ReadCondHandleKey< DetectorAlignStore > m_inputKey
Key to the alignment transformations for the detector volumes.
DetectorType m_Type
Static cast of >DetectorType< property.
SG::WriteHandleKey< DetectorAlignStore > m_outputKey
Key to the alignment transformations written by the alg.
ServiceHandle< ActsTrk::ITrackingGeometrySvc > m_trackingGeoSvc
ServiceHandle to the ActsTrackingGeometry.
StatusCode initialize() override final
Gaudi::Property< bool > m_splitPhysVolCache
Flag toggling whether the full GeoAlignmentStore shall be written to store gate or whether the absolu...
Gaudi::Property< bool > m_splitActsTrfCache
Flag toggline whether the final transforms of the ActsDet volumes shall be split per event.
Store holding the transfomations used by the Acts algorithms.
static unsigned int distributedTickets(const DetectorType detType)
Returns the number of all distributed tickets.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
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)
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.