ATLAS Offline Software
DetectorAlignCondAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef ACTSGEOMETRY_ACTSDETALIGNCONDALG_H
5 #define ACTSGEOMETRY_ACTSDETALIGNCONDALG_H
6 
13 
21 namespace ActsTrk{
23  public:
25  DetectorAlignCondAlg(const std::string& name, ISvcLocator* pSvcLocator);
26 
28 
29  StatusCode initialize() override final;
30 
31  StatusCode execute(const EventContext& ctx) const override final;
33  bool isReEntrant() const override final { return false; }
34 
35  private:
41  ServiceHandle<IActsTrackingGeometrySvc> m_trackingGeoSvc{this, "TrackingGeometrySvc", "ActsTrackingGeometrySvc"};
43  ServiceHandle<ActsTrk::IDetectorVolumeSvc> m_detVolSvc{this,"DetectorVolumeSvc", "DetectorVolumeSvc"};
45  Gaudi::Property<int> m_detType{this, "DetectorType", static_cast<int>(DetectorType::UnDefined)};
47  Gaudi::Property<bool> m_fillAlignStoreCache{this, "FillAlignCache", true};
50 
51  Gaudi::Property<bool> m_loadTrkGeoSvc{this, "LoadTrackingGeoSvc", true,
52  "Toggle whether the tracking geometry svc shall be retrieved"};
53 
54  Gaudi::Property<bool> m_loadDetVolSvc{this, "LoadDetectorVolumeSvc", false,
55  "Toggle whether the detector volume svc shall be retrieved"};
56 
57  };
58 }
59 #endif
ActsTrk::DetectorAlignCondAlg::m_loadTrkGeoSvc
Gaudi::Property< bool > m_loadTrkGeoSvc
Definition: DetectorAlignCondAlg.h:51
ActsTrk::DetectorType
DetectorType
Simple enum to Identify the Type of the ACTS sub detector.
Definition: GeometryDefs.h:17
ActsTrk::DetectorAlignCondAlg::isReEntrant
bool isReEntrant() const override final
Switch off reentrancy to avoid condition clashes.
Definition: DetectorAlignCondAlg.h:33
ActsTrk::DetectorAlignCondAlg::m_fillAlignStoreCache
Gaudi::Property< bool > m_fillAlignStoreCache
Flag toggling whether the alignment store shall be filled with the transforms or not.
Definition: DetectorAlignCondAlg.h:47
ActsTrk::DetectorType::UnDefined
@ UnDefined
Small Thing Gap chambers (NSW)
WriteCondHandleKey.h
ActsTrk::DetectorAlignCondAlg::m_trackingGeoSvc
ServiceHandle< IActsTrackingGeometrySvc > m_trackingGeoSvc
ServiceHandle to the ActsTrackingGeometry.
Definition: DetectorAlignCondAlg.h:41
ActsTrk::DetectorAlignCondAlg::execute
StatusCode execute(const EventContext &ctx) const override final
Definition: DetectorAlignCondAlg.cxx:44
ActsTrk::DetectorAlignCondAlg::m_detType
Gaudi::Property< int > m_detType
Flag determining the subdetector. Needs to be static castable to DetectorType.
Definition: DetectorAlignCondAlg.h:45
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
ActsTrk::DetectorAlignCondAlg::initialize
StatusCode initialize() override final
Definition: DetectorAlignCondAlg.cxx:18
ActsTrk::DetectorAlignCondAlg::DetectorAlignCondAlg
DetectorAlignCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
Standard constructor.
Definition: DetectorAlignCondAlg.cxx:13
ActsTrk::DetectorAlignCondAlg::m_detVolSvc
ServiceHandle< ActsTrk::IDetectorVolumeSvc > m_detVolSvc
ServiceHandle to the IDetectorVolumeSvc.
Definition: DetectorAlignCondAlg.h:43
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IActsTrackingGeometrySvc.h
ActsTrk::DetectorAlignCondAlg
Definition: DetectorAlignCondAlg.h:22
ActsTrk::DetectorAlignCondAlg::m_Type
DetectorType m_Type
Static cast of >DetectorType< property.
Definition: DetectorAlignCondAlg.h:49
ActsTrk::DetectorAlignCondAlg::m_inputKey
SG::ReadCondHandleKey< GeoAlignmentStore > m_inputKey
Key to the alignment transformations for the detector volumes.
Definition: DetectorAlignCondAlg.h:37
ReadCondHandleKey.h
AthReentrantAlgorithm.h
IDetectorVolumeSvc.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
DetectorAlignStore.h
ActsTrk::DetectorAlignCondAlg::m_outputKey
SG::WriteCondHandleKey< DetectorAlignStore > m_outputKey
Key to the alignment transformations written by the alg.
Definition: DetectorAlignCondAlg.h:39
SG::ReadCondHandleKey< GeoAlignmentStore >
SG::WriteCondHandleKey
Definition: WriteCondHandleKey.h:20
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition: MuonDetectorBuilderTool.cxx:34
ActsTrk::DetectorAlignCondAlg::m_loadDetVolSvc
Gaudi::Property< bool > m_loadDetVolSvc
Definition: DetectorAlignCondAlg.h:54
ServiceHandle< IActsTrackingGeometrySvc >
ActsTrk::DetectorAlignCondAlg::~DetectorAlignCondAlg
virtual ~DetectorAlignCondAlg()