ATLAS Offline Software
TRTHWMapCondAlg.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 TRTHWMAPCONDALG_H
6 #define TRTHWMAPCONDALG_H
7 
8 #include <string>
9 #include <vector>
10 
14 #include "Gaudi/Property.h"
16 
18 {
19  public:
20  TRTHWMapCondAlg(const std::string& name, ISvcLocator* pSvcLocator);
21  virtual ~TRTHWMapCondAlg() override;
22 
23  virtual StatusCode initialize() override;
24  virtual StatusCode execute() override;
25  virtual StatusCode finalize() override;
26 
27  StatusCode build_BarrelHVLinePadMaps(EventIDRange& range, TRTCond::HWMap* writeCdo) const;
28  StatusCode build_EndcapHVLinePadMaps(EventIDRange& range, TRTCond::HWMap* writeCdo) const;
29  int hashThisBarrelPad( int sector, int module, int padNum ) const;
30  int hashThisEndcapCell( int sector, int wheel, int layer, int cellNum ) const;
31 
32  private:
33  SG::ReadCondHandleKey<CondAttrListCollection> m_BarrelReadKey{this,"BarrelHWReadKey","TRT/DCS/HV/BARREL","Barrel HV in-key"};
34  SG::ReadCondHandleKey<CondAttrListCollection> m_EndAReadKey{this,"EndcapAHWReadKey","TRT/DCS/HV/ENDCAPA","EndcapA HV in-key"};
35  SG::ReadCondHandleKey<CondAttrListCollection> m_EndCReadKey{this,"EndcapCHWReadKey","TRT/DCS/HV/ENDCAPC","EndcapC HV in-key"};
36  SG::WriteCondHandleKey<TRTCond::HWMap> m_WriteKey{this,"HWMapWriteKey","HWMap","HWMap out-key"};
37 
38 };
39 #endif
TRTHWMapCondAlg::m_EndAReadKey
SG::ReadCondHandleKey< CondAttrListCollection > m_EndAReadKey
Definition: TRTHWMapCondAlg.h:34
TRTHWMapCondAlg::execute
virtual StatusCode execute() override
Definition: TRTHWMapCondAlg.cxx:28
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
TRTHWMapCondAlg::m_BarrelReadKey
SG::ReadCondHandleKey< CondAttrListCollection > m_BarrelReadKey
Definition: TRTHWMapCondAlg.h:33
TRTHWMapCondAlg::m_WriteKey
SG::WriteCondHandleKey< TRTCond::HWMap > m_WriteKey
Definition: TRTHWMapCondAlg.h:36
WriteCondHandleKey.h
TRTCond::HWMap
Definition: HWMap.h:12
AthAlgorithm.h
TRTHWMapCondAlg
Definition: TRTHWMapCondAlg.h:18
python.PyAthena.module
module
Definition: PyAthena.py:131
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
TRTHWMapCondAlg::build_EndcapHVLinePadMaps
StatusCode build_EndcapHVLinePadMaps(EventIDRange &range, TRTCond::HWMap *writeCdo) const
Build HV-line/pad maps for Endcaps //.
Definition: TRTHWMapCondAlg.cxx:365
TRTHWMapCondAlg::m_EndCReadKey
SG::ReadCondHandleKey< CondAttrListCollection > m_EndCReadKey
Definition: TRTHWMapCondAlg.h:35
AthAlgorithm
Definition: AthAlgorithm.h:47
TRTHWMapCondAlg::initialize
virtual StatusCode initialize() override
Definition: TRTHWMapCondAlg.cxx:15
TRTHWMapCondAlg::TRTHWMapCondAlg
TRTHWMapCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TRTHWMapCondAlg.cxx:9
TRTHWMapCondAlg::hashThisEndcapCell
int hashThisEndcapCell(int sector, int wheel, int layer, int cellNum) const
Hash an endcap HV cell by sector/wheel/layer/cell# //.
Definition: TRTHWMapCondAlg.cxx:115
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TRTHWMapCondAlg::finalize
virtual StatusCode finalize() override
Definition: TRTHWMapCondAlg.cxx:154
TRTHWMapCondAlg::hashThisBarrelPad
int hashThisBarrelPad(int sector, int module, int padNum) const
Hash an HV pad by sector/module/pad# //.
Definition: TRTHWMapCondAlg.cxx:79
SG::ReadCondHandleKey< CondAttrListCollection >
HWMap.h
SG::WriteCondHandleKey< TRTCond::HWMap >
TRTHWMapCondAlg::~TRTHWMapCondAlg
virtual ~TRTHWMapCondAlg() override
TRTHWMapCondAlg::build_BarrelHVLinePadMaps
StatusCode build_BarrelHVLinePadMaps(EventIDRange &range, TRTCond::HWMap *writeCdo) const
Build HV-line/pad map for Barrel //.
Definition: TRTHWMapCondAlg.cxx:163