17 n += store.getTransform(ticket) !=
nullptr;
44 return StatusCode::SUCCESS;
49 }
catch (
const std::exception& what) {
51 return StatusCode::FAILURE;
55 return StatusCode::FAILURE;
57 return StatusCode::SUCCESS;
61 std::unique_ptr<DetectorAlignStore> newAlignment{};
66 newAlignment = std::make_unique<DetectorAlignStore>(*inStore);
69 newAlignment->geoModelAlignment = std::make_unique<GeoAlignmentStore>(*newAlignment->geoModelAlignment);
70 newAlignment->geoModelAlignment->clearPosCache();
74 newAlignment->trackingAlignment = std::make_unique<TrackingStore>(newAlignment->detType);
77 newAlignment = std::make_unique<DetectorAlignStore>(
m_Type);
87 newAlignment->geoModelAlignment.reset();
92 <<countPopulated(*newAlignment->trackingAlignment, newAlignment->detType));
95 return StatusCode::SUCCESS;
ActsTrk::DetectorAlignStore::TrackingAlignStore TrackStore
#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.
Gaudi::Property< int > m_detType
Flag determining the subdetector. Needs to be static castable to DetectorType.
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.
StatusCode execute(const EventContext &ctx) const override final
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...
ServiceHandle< ITrackingGeometrySvc > m_trackingGeoSvc
ServiceHandle to the ActsTrackingGeometry.
Gaudi::Property< bool > m_splitActsTrfCache
Flag toggline whether the final transforms of the ActsDet volumes shall be split per event.
virtual ~AlignStoreProviderAlg()
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.