ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetConditions
TRT_ConditionsServices
src
TRT_HWMappingSvc.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 TRT_HWMappingSvc_H
6
#define TRT_HWMappingSvc_H
7
8
/*----------------------------------------------------------
9
* @file TRT_HWMappingSvc.h
10
* @Service to provide offline -> hardware mapping
11
* @author Denver Whittington <Denver.Whittington@cern.ch>
12
* updated March 2019 Peter Hansen <phansen@nbi.dk>
13
*/
//-------------------------------------------------------
14
15
// Header Includes
16
#include "
TRT_ConditionsServices/ITRT_HWMappingSvc.h
"
17
#include "
AthenaBaseComps/AthService.h
"
18
#include "GaudiKernel/ServiceHandle.h"
19
#include "
StoreGate/StoreGateSvc.h
"
20
#include "
StoreGate/ReadCondHandleKey.h
"
21
#include "
TRT_ConditionsData/HWMap.h
"
22
23
24
class
ITRT_StrawNeighbourSvc
;
25
class
TRT_ID
;
26
class
Identifier
;
27
29
class
TRT_HWMappingSvc
:
public
extends<AthService, ITRT_HWMappingSvc> {
30
31
public
:
32
33
TRT_HWMappingSvc
(
const
std::string&, ISvcLocator* );
34
virtual
~TRT_HWMappingSvc
();
35
36
virtual
StatusCode
initialize
();
37
virtual
StatusCode
finalize
();
38
40
int
get_HV_BarrelPadNum
(
const
Identifier
);
41
43
int
get_HV_EndcapCellNum
(
const
Identifier
);
44
46
int
get_HV_Endcap4PlaneNum
(
const
Identifier
);
47
49
int
get_HV_EndcapFuseNum
(
const
Identifier
);
50
52
std::string
get_HV_CoolChanName
(
const
Identifier
);
53
55
int
get_HV_CoolChanNum
(
const
Identifier
);
56
58
int
hashThisBarrelPad
(
int
,
int
,
int
);
59
61
int
hashThisEndcapCell
(
int
,
int
,
int
,
int
);
62
64
void
DumpMaps
();
65
66
private
:
67
68
ServiceHandle<StoreGateSvc>
m_detStore
;
69
71
std::string
m_Barrel_HV_COOLFolderName
;
72
std::string
m_EndcapA_HV_COOLFolderName
;
73
std::string
m_EndcapC_HV_COOLFolderName
;
74
76
const
TRT_ID
*
m_TRT_ID_Helper
;
77
ServiceHandle<ITRT_StrawNeighbourSvc>
m_TRTStrawNeighbourSvc
;
78
79
SG::ReadCondHandleKey<TRTCond::HWMap>
m_HWMapReadKey
{
this
,
"HWMapReadKey"
,
"HWMap"
,
"HV map in-key"
};
80
81
};
82
83
#endif
// TRT_HWMappingSvc_H
AthService.h
HWMap.h
ITRT_HWMappingSvc.h
ReadCondHandleKey.h
StoreGateSvc.h
ITRT_StrawNeighbourSvc
Definition
ITRT_StrawNeighbourSvc.h:23
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
ServiceHandle
Definition
ClusterMakerTool.h:36
TRT_HWMappingSvc::get_HV_CoolChanName
std::string get_HV_CoolChanName(const Identifier)
Returns the HV line logical name in COOL channel format (":","/" -> "_").
Definition
TRT_HWMappingSvc.cxx:86
TRT_HWMappingSvc::get_HV_CoolChanNum
int get_HV_CoolChanNum(const Identifier)
Returns the COOL channel number for an identifier.
Definition
TRT_HWMappingSvc.cxx:149
TRT_HWMappingSvc::hashThisEndcapCell
int hashThisEndcapCell(int, int, int, int)
Hashes an Endcap HV cell by sector/wheel/layer/cell#.
Definition
TRT_HWMappingSvc.cxx:355
TRT_HWMappingSvc::get_HV_EndcapFuseNum
int get_HV_EndcapFuseNum(const Identifier)
Returns the fuse number (0-3) for an endcap identifier.
Definition
TRT_HWMappingSvc.cxx:325
TRT_HWMappingSvc::m_TRTStrawNeighbourSvc
ServiceHandle< ITRT_StrawNeighbourSvc > m_TRTStrawNeighbourSvc
Definition
TRT_HWMappingSvc.h:77
TRT_HWMappingSvc::~TRT_HWMappingSvc
virtual ~TRT_HWMappingSvc()
Destructor //.
TRT_HWMappingSvc::get_HV_BarrelPadNum
int get_HV_BarrelPadNum(const Identifier)
Returns the HV pad for a barrel identifier.
Definition
TRT_HWMappingSvc.cxx:215
TRT_HWMappingSvc::initialize
virtual StatusCode initialize()
Initialize //.
Definition
TRT_HWMappingSvc.cxx:52
TRT_HWMappingSvc::m_TRT_ID_Helper
const TRT_ID * m_TRT_ID_Helper
Straw Helpers.
Definition
TRT_HWMappingSvc.h:76
TRT_HWMappingSvc::m_EndcapA_HV_COOLFolderName
std::string m_EndcapA_HV_COOLFolderName
Definition
TRT_HWMappingSvc.h:72
TRT_HWMappingSvc::get_HV_Endcap4PlaneNum
int get_HV_Endcap4PlaneNum(const Identifier)
Returns the 4-plane wheel number for an endcap identifier.
Definition
TRT_HWMappingSvc.cxx:292
TRT_HWMappingSvc::m_detStore
ServiceHandle< StoreGateSvc > m_detStore
Definition
TRT_HWMappingSvc.h:68
TRT_HWMappingSvc::m_HWMapReadKey
SG::ReadCondHandleKey< TRTCond::HWMap > m_HWMapReadKey
Definition
TRT_HWMappingSvc.h:79
TRT_HWMappingSvc::TRT_HWMappingSvc
TRT_HWMappingSvc(const std::string &, ISvcLocator *)
Constructor //.
Definition
TRT_HWMappingSvc.cxx:29
TRT_HWMappingSvc::finalize
virtual StatusCode finalize()
Finalize //.
Definition
TRT_HWMappingSvc.cxx:396
TRT_HWMappingSvc::m_Barrel_HV_COOLFolderName
std::string m_Barrel_HV_COOLFolderName
jobOptions properties
Definition
TRT_HWMappingSvc.h:71
TRT_HWMappingSvc::DumpMaps
void DumpMaps()
Dump HV-line/pad maps.
Definition
TRT_HWMappingSvc.cxx:404
TRT_HWMappingSvc::hashThisBarrelPad
int hashThisBarrelPad(int, int, int)
Hashes a Barrel HV pad by sector/module/pad#.
Definition
TRT_HWMappingSvc.cxx:225
TRT_HWMappingSvc::m_EndcapC_HV_COOLFolderName
std::string m_EndcapC_HV_COOLFolderName
Definition
TRT_HWMappingSvc.h:73
TRT_HWMappingSvc::get_HV_EndcapCellNum
int get_HV_EndcapCellNum(const Identifier)
Returns the HV cell for an endcap identifier.
Definition
TRT_HWMappingSvc.cxx:261
TRT_ID
This is an Identifier helper class for the TRT subdetector.
Definition
TRT_ID.h:84
Identifier
Definition
IdentifierFieldParser.cxx:14
Generated on
for ATLAS Offline Software by
1.17.0