ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetConditions
TRT_ConditionsAlgs
src
TRTHWMapCondAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 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
11
#include "
AthenaBaseComps/AthCondAlgorithm.h
"
12
#include "
StoreGate/WriteCondHandleKey.h
"
13
#include "
AthenaPoolUtilities/CondAttrListCollection.h
"
14
#include "Gaudi/Property.h"
15
#include "
TRT_ConditionsData/HWMap.h
"
16
17
class
TRTHWMapCondAlg
:
public
AthCondAlgorithm
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
(
const
EventContext& ctx)
const override
;
25
virtual
StatusCode
finalize
()
override
;
26
27
StatusCode
build_BarrelHVLinePadMaps
(
const
EventContext& ctx, EventIDRange& range,
TRTCond::HWMap
* writeCdo)
const
;
28
StatusCode
build_EndcapHVLinePadMaps
(
const
EventContext& ctx, 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
AthCondAlgorithm.h
Base class for conditions algorithms.
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
HWMap.h
WriteCondHandleKey.h
AthCondAlgorithm
Base class for conditions algorithms.
Definition
AthCondAlgorithm.h:22
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::WriteCondHandleKey
Definition
WriteCondHandleKey.h:22
TRTCond::HWMap
Definition
HWMap.h:14
TRTHWMapCondAlg::~TRTHWMapCondAlg
virtual ~TRTHWMapCondAlg() override
TRTHWMapCondAlg::m_EndCReadKey
SG::ReadCondHandleKey< CondAttrListCollection > m_EndCReadKey
Definition
TRTHWMapCondAlg.h:35
TRTHWMapCondAlg::finalize
virtual StatusCode finalize() override
Definition
TRTHWMapCondAlg.cxx:154
TRTHWMapCondAlg::m_WriteKey
SG::WriteCondHandleKey< TRTCond::HWMap > m_WriteKey
Definition
TRTHWMapCondAlg.h:36
TRTHWMapCondAlg::initialize
virtual StatusCode initialize() override
Definition
TRTHWMapCondAlg.cxx:15
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
TRTHWMapCondAlg::hashThisBarrelPad
int hashThisBarrelPad(int sector, int module, int padNum) const
Hash an HV pad by sector/module/pad# //.
Definition
TRTHWMapCondAlg.cxx:79
TRTHWMapCondAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
TRTHWMapCondAlg.cxx:28
TRTHWMapCondAlg::m_BarrelReadKey
SG::ReadCondHandleKey< CondAttrListCollection > m_BarrelReadKey
Definition
TRTHWMapCondAlg.h:33
TRTHWMapCondAlg::m_EndAReadKey
SG::ReadCondHandleKey< CondAttrListCollection > m_EndAReadKey
Definition
TRTHWMapCondAlg.h:34
TRTHWMapCondAlg::TRTHWMapCondAlg
TRTHWMapCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
TRTHWMapCondAlg.cxx:9
TRTHWMapCondAlg::build_BarrelHVLinePadMaps
StatusCode build_BarrelHVLinePadMaps(const EventContext &ctx, EventIDRange &range, TRTCond::HWMap *writeCdo) const
Build HV-line/pad map for Barrel //.
Definition
TRTHWMapCondAlg.cxx:163
TRTHWMapCondAlg::build_EndcapHVLinePadMaps
StatusCode build_EndcapHVLinePadMaps(const EventContext &ctx, EventIDRange &range, TRTCond::HWMap *writeCdo) const
Build HV-line/pad maps for Endcaps //.
Definition
TRTHWMapCondAlg.cxx:365
Generated on
for ATLAS Offline Software by
1.17.0