ATLAS Offline Software
TRTActiveCondAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRTACTIVECONDALG_H
6 #define TRTACTIVECONDALG_H
7 
11 #include "GaudiKernel/ToolHandle.h"
14 #include "Gaudi/Property.h"
16 
17 class TRT_ID;
18 
19 //* Fills a eta,phi binned map of the fraction of straws, and posts it on CondStore
21 {
22  public:
24  TRTActiveCondAlg(const std::string& name, ISvcLocator* pSvcLocator);
25  virtual ~TRTActiveCondAlg() override;
26 
27  virtual StatusCode initialize() override;
28  virtual StatusCode execute(const EventContext& ctx) const override;
29  virtual bool isReEntrant() const override final { return false; }
30 
31 
32  private:
33  SG::ReadCondHandleKey<StrawStatusContainer> m_strawReadKey{this,"StrawReadKey","/TRT/Cond/Status","Straw Status in-key"};
34  SG::ReadCondHandleKey<InDetDD::TRT_DetElementContainer> m_trtDetEleContKey{this, "TRTDetEleContKey", "TRT_DetElementContainer", "Key of TRT_DetElementContainer for TRT"};
35 
36  SG::WriteCondHandleKey<TRTCond::ActiveFraction> m_strawWriteKey{this,"ActiveWriteKey","ActiveFraction","ActiveFraction out-key"};
37 
38  ToolHandle<ITRT_StrawStatusSummaryTool> m_strawStatus;
39  const TRT_ID *m_trtId{};
40 
41 };
42 #endif
TRTCond::StrawStatusMultChanContainer
Definition: StrawStatusMultChanContainer.h:19
TRTActiveCondAlg::~TRTActiveCondAlg
virtual ~TRTActiveCondAlg() override
TRT_DetElementContainer.h
WriteCondHandleKey.h
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
TRTActiveCondAlg::m_strawReadKey
SG::ReadCondHandleKey< StrawStatusContainer > m_strawReadKey
Definition: TRTActiveCondAlg.h:33
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
TRTActiveCondAlg::initialize
virtual StatusCode initialize() override
Definition: TRTActiveCondAlg.cxx:21
ITRT_StrawStatusSummaryTool.h
abstract interface to TRT straw status constants
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TRTActiveCondAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: TRTActiveCondAlg.cxx:41
TRTActiveCondAlg::m_trtDetEleContKey
SG::ReadCondHandleKey< InDetDD::TRT_DetElementContainer > m_trtDetEleContKey
Definition: TRTActiveCondAlg.h:34
ActiveFraction.h
TRTActiveCondAlg::TRTActiveCondAlg
TRTActiveCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TRTActiveCondAlg.cxx:13
ReadCondHandleKey.h
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TRTActiveCondAlg
Definition: TRTActiveCondAlg.h:21
TRTActiveCondAlg::StrawStatusContainer
TRTCond::StrawStatusMultChanContainer StrawStatusContainer
Definition: TRTActiveCondAlg.h:23
SG::ReadCondHandleKey
Definition: ReadCondHandleKey.h:20
TRT_ID
Definition: TRT_ID.h:84
TRTActiveCondAlg::m_trtId
const TRT_ID * m_trtId
Definition: TRTActiveCondAlg.h:39
TRTActiveCondAlg::isReEntrant
virtual bool isReEntrant() const override final
Definition: TRTActiveCondAlg.h:29
TRTActiveCondAlg::m_strawWriteKey
SG::WriteCondHandleKey< TRTCond::ActiveFraction > m_strawWriteKey
Definition: TRTActiveCondAlg.h:36
SG::WriteCondHandleKey< TRTCond::ActiveFraction >
TRTActiveCondAlg::m_strawStatus
ToolHandle< ITRT_StrawStatusSummaryTool > m_strawStatus
Definition: TRTActiveCondAlg.h:38