ATLAS Offline Software
Loading...
Searching...
No Matches
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
18#include "GaudiKernel/ServiceHandle.h"
22
23
25class TRT_ID;
26class Identifier;
27
29class TRT_HWMappingSvc : public extends<AthService, ITRT_HWMappingSvc> {
30
31 public:
32
33 TRT_HWMappingSvc( const std::string&, ISvcLocator* );
35
36 virtual StatusCode initialize();
37 virtual StatusCode finalize();
38
41
44
47
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
69
74
78
79 SG::ReadCondHandleKey<TRTCond::HWMap> m_HWMapReadKey{this,"HWMapReadKey","HWMap","HV map in-key"};
80
81};
82
83#endif // TRT_HWMappingSvc_H
std::string get_HV_CoolChanName(const Identifier)
Returns the HV line logical name in COOL channel format (":","/" -> "_")
int get_HV_CoolChanNum(const Identifier)
Returns the COOL channel number for an identifier.
int hashThisEndcapCell(int, int, int, int)
Hashes an Endcap HV cell by sector/wheel/layer/cell#.
int get_HV_EndcapFuseNum(const Identifier)
Returns the fuse number (0-3) for an endcap identifier.
ServiceHandle< ITRT_StrawNeighbourSvc > m_TRTStrawNeighbourSvc
virtual ~TRT_HWMappingSvc()
Destructor //.
int get_HV_BarrelPadNum(const Identifier)
Returns the HV pad for a barrel identifier.
virtual StatusCode initialize()
Initialize //.
const TRT_ID * m_TRT_ID_Helper
Straw Helpers.
std::string m_EndcapA_HV_COOLFolderName
int get_HV_Endcap4PlaneNum(const Identifier)
Returns the 4-plane wheel number for an endcap identifier.
ServiceHandle< StoreGateSvc > m_detStore
SG::ReadCondHandleKey< TRTCond::HWMap > m_HWMapReadKey
TRT_HWMappingSvc(const std::string &, ISvcLocator *)
Constructor //.
virtual StatusCode finalize()
Finalize //.
std::string m_Barrel_HV_COOLFolderName
jobOptions properties
void DumpMaps()
Dump HV-line/pad maps.
int hashThisBarrelPad(int, int, int)
Hashes a Barrel HV pad by sector/module/pad#.
std::string m_EndcapC_HV_COOLFolderName
int get_HV_EndcapCellNum(const Identifier)
Returns the HV cell for an endcap identifier.
This is an Identifier helper class for the TRT subdetector.
Definition TRT_ID.h:82