ATLAS Offline Software
TRTStrawCondAlg.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 TRTSTRAWCONDALG_H
6 #define TRTSTRAWCONDALG_H
7 
11 #include "GaudiKernel/ToolHandle.h"
16 
17 class TRT_ID;
18 
20 {
21  public:
23 
24  TRTStrawCondAlg(const std::string& name, ISvcLocator* pSvcLocator);
25 
26  virtual StatusCode initialize() override;
27  virtual StatusCode execute(const EventContext &ctx) const override;
28 
29  int findArrayTotalIndex(const int det, const int lay) const;
30  int findArrayLocalWheelIndex(const int det, const int lay) const;
31 
32  private:
33  SG::ReadCondHandleKey<InDetDD::TRT_DetElementContainer> m_trtDetEleContKey{this, "TRTDetEleContKey", "TRT_DetElementContainer", "Key of TRT_DetElementContainer for TRT"};
34  SG::ReadCondHandleKey<TRTCond::StrawStatusSummary> m_strawStatusSummaryKey{this, "StrawStatusSummarKey", "StrawStatusSummary", "Key of StrawStatusSummary"};
35  SG::WriteCondHandleKey<TRTCond::AliveStraws> m_strawWriteKey{this,"StrawWriteKey","AliveStraws","AliveStraws out-key"};
36 
37  const TRT_ID *m_trtId{};
38 };
39 #endif
TRTStrawCondAlg::m_trtDetEleContKey
SG::ReadCondHandleKey< InDetDD::TRT_DetElementContainer > m_trtDetEleContKey
Definition: TRTStrawCondAlg.h:33
TRTStrawCondAlg
Definition: TRTStrawCondAlg.h:20
TRTCond::StrawStatusMultChanContainer
Definition: StrawStatusMultChanContainer.h:19
TRTCalib_Extractor.det
det
Definition: TRTCalib_Extractor.py:36
TRT_DetElementContainer.h
TRTStrawCondAlg::TRTStrawCondAlg
TRTStrawCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TRTStrawCondAlg.cxx:8
WriteCondHandleKey.h
StrawStatusMultChanContainer.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
TRTStrawCondAlg::findArrayLocalWheelIndex
int findArrayLocalWheelIndex(const int det, const int lay) const
Definition: TRTStrawCondAlg.cxx:146
TRTStrawCondAlg::m_strawWriteKey
SG::WriteCondHandleKey< TRTCond::AliveStraws > m_strawWriteKey
Definition: TRTStrawCondAlg.h:35
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TRTStrawCondAlg::m_trtId
const TRT_ID * m_trtId
Definition: TRTStrawCondAlg.h:37
AliveStraws.h
ReadCondHandleKey.h
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TRTStrawCondAlg::initialize
virtual StatusCode initialize() override
Definition: TRTStrawCondAlg.cxx:14
SG::ReadCondHandleKey< InDetDD::TRT_DetElementContainer >
TRTStrawCondAlg::m_strawStatusSummaryKey
SG::ReadCondHandleKey< TRTCond::StrawStatusSummary > m_strawStatusSummaryKey
Definition: TRTStrawCondAlg.h:34
TRTStrawCondAlg::StrawStatusContainer
TRTCond::StrawStatusMultChanContainer StrawStatusContainer
Definition: TRTStrawCondAlg.h:22
TRT_ID
Definition: TRT_ID.h:84
TRTStrawCondAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: TRTStrawCondAlg.cxx:31
SG::WriteCondHandleKey< TRTCond::AliveStraws >
StrawStatusSummary.h
TRTStrawCondAlg::findArrayTotalIndex
int findArrayTotalIndex(const int det, const int lay) const
Definition: TRTStrawCondAlg.cxx:128