ATLAS Offline Software
SCT_DetectorElementCondAlg.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef SCT_CONDITIONSALGORITHMS_SCT_DETECTORELEMENTCONDALG_H
8 #define SCT_CONDITIONSALGORITHMS_SCT_DETECTORELEMENTCONDALG_H
9 
11 
18 
19 //dependencies to limit lifetime of SiDetElColl for TrackingGeometry
22 
23 namespace InDetDD {
24  class SCT_DetectorManager;
25 }
26 
28 {
29  public:
30  SCT_DetectorElementCondAlg(const std::string& name, ISvcLocator* pSvcLocator);
31  virtual ~SCT_DetectorElementCondAlg() override = default;
32 
33  virtual StatusCode initialize() override final;
34  virtual StatusCode execute(const EventContext& ctx) const override final;
35  virtual StatusCode finalize() override final;
36  virtual bool isReEntrant() const override final { return false; }
37 
38  private:
40  SG::WriteCondHandleKey<InDetDD::SiDetectorElementCollection> m_writeKey{this, "WriteKey", "SCT_DetectorElementCollection", "Key of output SiDetectorElementCollection for SCT"};
41 
42  // The DetElement Collection must have a life time <= the Tracking Geometry due to DetElt-> Surface -> Layer connection,
43  // which is why we intersect with the IOV Ranges from the TG's dependencies.
45  {this, "MuonManagerKey", "", "MuonManager ReadKey for IOV Range intersection"};
47  {this, "TRT_DetEltContKey", "", "TRT ReadKey for IOV Range intersection"};
49  {this, "PixelAlignmentStore", "", "PixelAlignmentStore ReadKey for IOV Range intersection"};
50 
51  std::string m_detManagerName;
53 };
54 
55 #endif // SCT_CONDITIONSALGORITHMS_SCT_DETECTORELEMENTCONDALG_H
SCT_DetectorElementCondAlg::m_detManager
const InDetDD::SCT_DetectorManager * m_detManager
Definition: SCT_DetectorElementCondAlg.h:52
InDetDD::SCT_DetectorManager
Definition: SCT_DetectorManager.h:49
SCT_DetectorElementCondAlg::m_detManagerName
std::string m_detManagerName
Definition: SCT_DetectorElementCondAlg.h:51
SCT_DetectorElementCondAlg::initialize
virtual StatusCode initialize() override final
Definition: SCT_DetectorElementCondAlg.cxx:24
SCT_DetectorElementCondAlg::m_writeKey
SG::WriteCondHandleKey< InDetDD::SiDetectorElementCollection > m_writeKey
Definition: SCT_DetectorElementCondAlg.h:40
SCT_DetectorElementCondAlg::m_muonManagerKey
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_muonManagerKey
Definition: SCT_DetectorElementCondAlg.h:45
SCT_DetectorElementCondAlg::isReEntrant
virtual bool isReEntrant() const override final
Definition: SCT_DetectorElementCondAlg.h:36
TRT_DetElementContainer.h
SCT_DetectorElementCondAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: SCT_DetectorElementCondAlg.cxx:44
WriteCondHandleKey.h
SCT_DetectorElementCondAlg::SCT_DetectorElementCondAlg
SCT_DetectorElementCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SCT_DetectorElementCondAlg.cxx:15
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
SCT_DetectorElementCondAlg::finalize
virtual StatusCode finalize() override final
Definition: SCT_DetectorElementCondAlg.cxx:163
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
GeoPrimitives.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SCT_DetectorElementCondAlg::m_pixelReadKey
SG::ReadCondHandleKey< GeoAlignmentStore > m_pixelReadKey
Definition: SCT_DetectorElementCondAlg.h:49
SCT_DetectorElementCondAlg::m_trtDetElContKey
SG::ReadCondHandleKey< InDetDD::TRT_DetElementContainer > m_trtDetElContKey
Definition: SCT_DetectorElementCondAlg.h:47
CondHandleKeyArray.h
SCT_DetectorElementCondAlg::~SCT_DetectorElementCondAlg
virtual ~SCT_DetectorElementCondAlg() override=default
ReadCondHandleKey.h
AthReentrantAlgorithm.h
GeoAlignmentStore.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
SiDetectorElementCollection.h
MuonDetectorManager.h
SG::ReadCondHandleKey< GeoAlignmentStore >
InDetDD
Message Stream Member.
Definition: FakeTrackBuilder.h:8
SG::WriteCondHandleKey< InDetDD::SiDetectorElementCollection >
SCT_DetectorElementCondAlg::m_readKey
SG::ReadCondHandleKey< GeoAlignmentStore > m_readKey
Definition: SCT_DetectorElementCondAlg.h:39
SCT_DetectorElementCondAlg
Definition: SCT_DetectorElementCondAlg.h:28