ATLAS Offline Software
TileCablingService.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TILECONDITIONS_TILECABLINGSERVICE_H
6 #define TILECONDITIONS_TILECABLINGSERVICE_H
7 
8 // This class provides conversion between logical and hardware ID
9 // Implemented as a singleton
10 
11 #include "Identifier/Identifier.h"
14 #include "CaloIdentifier/TileID.h"
15 #include "TileIdentifier/TileHWID.h"
16 #include "CaloIdentifier/TileTBID.h"
18 
20 
21 #include <vector>
22 
24  friend class TileInfoLoader;
25  friend class TileDetectorTool;
26  friend class TileDetectorFactory;
27  friend class TileTBFactory;
28  friend class TileCablingSvc;
29  friend class TileCablingSvcMock;
30  friend class TileROD_Decoder;
31 
32 public:
33 
35  static const TileCablingService* getInstance();
36 
37  // Conversion between TileID and Trigger Tower ID
38 
39  Identifier cell2tt_id ( const Identifier & id ) const;
40  Identifier pmt2tt_id ( const Identifier & id ) const;
41  Identifier cell2mt_id ( const Identifier & id ) const;
42  Identifier pmt2mt_id ( const Identifier & id ) const;
43 
44  Identifier drawer2MBTS_id ( const HWIdentifier & id ) const;
45 
46  // Conversion between TileID and TileHWID
47 
48 // Identifier h2s_section_id ( const HWIdentifier & id );
49 // Identifier h2s_region_id ( const HWIdentifier & id );
50 // Identifier h2s_module_id ( const HWIdentifier & id );
51 // Identifier h2s_tower_id ( const HWIdentifier & id );
52  Identifier h2s_cell_id_index ( const HWIdentifier & id, int & index, int & pmt ) const;
53  Identifier h2s_cell_id_index ( int ros, int drawer, int channel, int & index, int & pmt ) const;
54  Identifier h2s_cell_id ( const HWIdentifier & id ) const;
55  Identifier h2s_pmt_id ( const HWIdentifier & id ) const;
56  Identifier h2s_adc_id ( const HWIdentifier & id ) const;
57 
58 // HWIdentifier s2h_ros_id ( const Identifier & id );
59  HWIdentifier s2h_drawer_id ( const Identifier & id ) const;
60  HWIdentifier s2h_channel_id ( const Identifier & id ) const;
61  HWIdentifier s2h_adc_id ( const Identifier & id ) const;
62 
63  int frag ( const HWIdentifier & id ) const;
64  int frag ( const Identifier & id ) const;
65 
66  int frag2channels ( const HWIdentifier & id, std::vector<HWIdentifier> & ids) const;
67  int frag2channels ( int frag, std::vector<HWIdentifier> & ids) const;
68 
69  // hole (pmt number in HV system, range 1-48, negative means not connected)
70  int barrel_chan2hole ( int channel ) const { return channel2hole(0,channel); }
71  int extbar_chan2hole ( int channel ) const { return channel2hole(2,channel); }
72  static int channel2hole ( int ros, int channel );
73  // cell index is the number from 0 to 23 (to count all cells in one drawer
74  // index = -1 for non-connected channels
75  static int channel2cellindex ( int ros, int channel );
76 
77  bool TileGap_connected ( const Identifier & id) const;
78  static bool C10_connected ( int module );
79 
80  unsigned int getNChanPerCell (const Identifier& cell_id) const;
81 
82  void fillH2SIdCache (void);
83 
85  OldSim = 0,
86  CrackOnly = 1,
87  MBTSOnly = 2,
92  UpgradeA = 10,
93  UpgradeBC = 11,
94  UpgradeABC = 12,
96 
97  bool is_MBTS_merged_run2plus(int module) const;
98  int E1_merged_with_run2plus(int ros, int module) const;
99 
100  int getMaxChannels(void) const { return m_maxChannels; };
101  int getMaxGains(void) const { return m_maxGains; };
102 
103  bool isDisconnected(int ros, int drawer, int channel) const;
104 
106  virtual ~TileCablingService() ;
107 
108 
109 private:
110 
112  static TileCablingService* getInstance_nc ATLAS_NOT_THREAD_SAFE ();
113 
114  static int hwid2section ( int ros, int channel );
115  int hwid2side ( int ros, int channel ) const;
116  static int hwid2module ( int drawer );
117  int hwid2tower ( int ros, int channel ) const;
118 
119  static int hwid2sample ( int ros, int channel );
120  int hwid2pmt ( int ros, int channel ) const;
121 
122  int swid2ros ( int section, int side ) const;
123  static int swid2drawer ( int module );
124  int swid2channel ( int section, int side,
125  int tower, int sample,
126  int pmt ) const;
127 
128  int hwid2tower_upgradeABC ( int ros, int channel ) const;
129  int hwid2sample_upgradeABC ( int ros, int channel ) const;
130  int hwid2pmt_upgradeABC ( int ros, int channel ) const;
131 
132  int swid2channel_upgradeABC ( int section, int side,
133  int tower, int sample,
134  int pmt ) const;
135 
136  static int hwid2tbtype ( int drawer );
137  static int hwid2tbmodule ( int drawer, int channel );
138  static int hwid2tbchannel ( int drawer, int channel );
139 
140  static int tbid2drawer ( int tbtype, int tbmodule );
141  static int tbid2channel ( int drawer, int tbchannel );
142 
143  bool hwid2MBTSconnected ( int ros, int drawer, int channel) const;
144  int hwid2MBTSphi ( int drawer, int channel) const;
145  int hwid2MBTSeta ( int drawer, int channel) const;
146  int MBTS2drawer ( int phi, int eta) const;
147 
148  bool hwid2MBTSconnected_real ( int ros, int drawer, int channel) const;
149  int hwid2MBTSphi_real ( int ros, int drawer, int channel) const;
150  int hwid2MBTSeta_real ( int ros, int drawer, int channel) const;
151  int MBTS2drawer_real ( int side, int phi, int eta) const;
152 
153  bool hwid2MBTSconnected_run2plus (int ros, int drawer, int channel) const;
154  bool hwid2MBTSconnected_run2plus (int ros, int drawer) const;
155  int hwid2MBTSphi_run2plus (int ros, int drawer) const;
156  int hwid2MBTSeta_run2plus (int ros, int drawer) const;
157  int MBTS2drawer_run2plus (int side, int phi, int eta) const;
158  int MBTS2channel_run2plus (int eta) const;
159 
160  bool hwid2E4prconnected_run2 (int ros, int drawer, int channel) const;
161  bool hwid2E4prconnected_run2 (int ros, int drawer) const;
162  int hwid2E4prphi_run2 (int drawer) const;
163  int hwid2E4preta_run2 (int drawer) const;
164 
165  int swid2drawer_gapscin ( int side, int module, int tower) const;
166  int swid2channel_gapscin ( int side, int module, int tower) const;
167  int hwid2module_gapscin ( int ros, int drawer, int channel) const;
168  int hwid2tower_gapscin ( int ros, int drawer, int channel) const;
169 
170  int swid2drawer_gapscin_run2plus( int side, int module, int tower) const;
171 
172  inline bool isTileITCGapCrack (int channel) const {return (channel < 6 || channel == 12 || channel == 13);}
173  inline bool isTileGapCrack (int channel) const {return (channel < 2 || channel == 12 || channel == 13);}
174  inline bool D4 (int channel) const { return ( (channel == 2) || (channel == 3) );}
175 
178 
179  const TileID* m_tileID;
183 
184  void setCaloLVL1 (const CaloLVL1_ID* tt_ID) {m_TT_ID = tt_ID;}
185  void setTileID (const TileID* tileID) {m_tileID = tileID;}
186  void setTileHWID (const TileHWID* tileHWID) {m_tileHWID = tileHWID;}
187  void setTileTBID (const TileTBID* tileTBID) {m_tileTBID = tileTBID;}
188 
190  void setTestBeam (bool testBeam);
191 
192  bool m_connected[5][64];
193  void setConnected(int section, int side, int modMin, int modMax);
194  void setConnected(int ros, int draMin, int draMax);
195  void setRun2Merged();
196  void setRun2aMerged();
197  void setRun3Merged();
198 
199  enum Partition { Ancillary = 0,
200  LBA = 1,
201  LBC = 2,
202  EBA = 3,
203  EBC = 4 };
204 
207  int m_E1chan;
208  int m_E2chan;
209  int m_E3chan;
210  int m_E4chan;
214  inline bool EB_special(int ros, int drawer) const {
215  return ( (ros == EBA && drawer == m_EBAspec ) || (ros == EBC && drawer == m_EBCspec ) );
216  }
217  inline void EB_special_move_channel(int ros, int drawer, int &channel) const {
218  if (EB_special(ros,drawer)) {
219  // swap special and normal E3,E4 channels
220  // this will help to use the same arrays of connected channels everywhere
222  else if (channel == m_E4special) channel = m_E4chan;
223  else if (channel == m_E3chan) channel = m_E3special;
224  else if (channel == m_E4chan) channel = m_E4special;
225  }
226  }
227 
230 
231  int m_drawer_table[512];
232  int m_channel_table[512];
233  int m_module_table[512];
234  int m_tower_table[512];
235 
236  void fillConnectionTables();
237 
239  std::vector<Identifier> m_ch2cell;
240  std::vector<int> m_ch2pmt;
241  std::vector<int> m_ch2index;
242 
243  Identifier h2s_cell_id_index_find ( int ros, int drawer, int channel, int & index, int & pmt ) const;
244  Identifier h2s_cell_id_index_from_cache (int ros, int drawer, int channel, int & index, int & pmt ) const;
245 
246  // returns index used for caching (for ros != TileHWID::BEAM_ROS) and calculated as
247  // channel * 64(max number of drawers) * 4(max number of ros) + drawer * 4(max number of ros) + (ros - 1)
248  inline int cacheIndex(int ros, int drawer, int channel) const {return ((channel << 8) + (drawer << 2) + (ros - 1));};
249 
250  void setConnected (int ros, int drawer, bool yes) { m_connected[ros][drawer] = yes; }
251 
253 
254  std::vector<bool> m_MBTSmergedRun2Plus;
255  std::vector<int> m_E1mergedRun2Plus;
256 
257  std::vector<int> m_ch2pmtUpgradeABC;
258  std::vector<int> m_ch2sampleUpgradeABC;
259  std::vector<int> m_ch2towerUpgradeABC;
260 
261  bool m_run2;
263  bool m_run3;
264 
267 
268 public:
269 
270  inline const TileID* getTileID() const { return m_tileID; }
271  inline const TileHWID* getTileHWID() const { return m_tileHWID; }
272  inline const TileTBID* getTileTBID() const { return m_tileTBID; }
273  inline const CaloLVL1_ID* getCaloLVL1_ID() const { return m_TT_ID; }
274  inline bool getTestBeam() const { return m_testBeam; }
275  inline bool connected (int ros, int drawer) const { return m_connected[ros][drawer]; }
276  inline int getCablingType() const { return m_cablingType; }
277  inline bool isRun2Cabling() const { return m_run2; }
278  inline bool isRun2PlusCabling() const { return m_run2plus; }
279  inline bool isRun3Cabling() const { return m_run3; }
280  inline int runPeriod() const { return (2 * int(m_run2) + 3 * int(m_run3)); }
281 };
282 
283 #endif // TILECONDITIONS_TILECABLINGSERVICE_H
284 
TileCablingService::cell2mt_id
Identifier cell2mt_id(const Identifier &id) const
Definition: TileCablingService.cxx:442
TileCablingService::m_TT_ID
const CaloLVL1_ID * m_TT_ID
Definition: TileCablingService.h:181
TileCablingService::RUN3Cabling
@ RUN3Cabling
Definition: TileCablingService.h:91
TileCablingService::h2s_cell_id_index_from_cache
Identifier h2s_cell_id_index_from_cache(int ros, int drawer, int channel, int &index, int &pmt) const
Definition: TileCablingService.cxx:2444
TileCablingService::MBTSOnly
@ MBTSOnly
Definition: TileCablingService.h:87
TileCablingService::m_MBTSchan
int m_MBTSchan
Definition: TileCablingService.h:213
TileROD_Decoder
Decodes the different TileCal ROD subfragment types in bytestream data and fills TileDigitsContainer,...
Definition: TileROD_Decoder.h:119
TileCablingService::CrackOnly
@ CrackOnly
Definition: TileCablingService.h:86
TileCablingService::m_run2plus
bool m_run2plus
Definition: TileCablingService.h:262
TileCablingService::TileGap_connected
bool TileGap_connected(const Identifier &id) const
Definition: TileCablingService.cxx:1756
TileCablingService::h2s_cell_id_index_find
Identifier h2s_cell_id_index_find(int ros, int drawer, int channel, int &index, int &pmt) const
Definition: TileCablingService.cxx:661
TileCablingService::m_ch2sampleUpgradeABC
std::vector< int > m_ch2sampleUpgradeABC
Definition: TileCablingService.h:258
TileCablingService::m_isCacheFilled
bool m_isCacheFilled
Definition: TileCablingService.h:238
TileCablingService::setTestBeam
void setTestBeam(bool testBeam)
Definition: TileCablingService.cxx:200
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:28
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
TileCablingService::pmt2tt_id
Identifier pmt2tt_id(const Identifier &id) const
Definition: TileCablingService.cxx:375
TileCablingService::hwid2MBTSconnected
bool hwid2MBTSconnected(int ros, int drawer, int channel) const
Definition: TileCablingService.cxx:2071
TileCablingService::getInstance
static const TileCablingService * getInstance()
get pointer to service instance
Definition: TileCablingService.cxx:24
TileCablingService::m_maxChannels
int m_maxChannels
Definition: TileCablingService.h:265
TileCablingService::hwid2pmt_upgradeABC
int hwid2pmt_upgradeABC(int ros, int channel) const
Definition: TileCablingService.cxx:1834
TileCablingService::setRun2aMerged
void setRun2aMerged()
Definition: TileCablingService.cxx:114
TileCablingService::barrel_chan2hole
int barrel_chan2hole(int channel) const
Definition: TileCablingService.h:70
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
index
Definition: index.py:1
TileCablingService::Ancillary
@ Ancillary
Definition: TileCablingService.h:199
TileCablingService::m_run2
bool m_run2
Definition: TileCablingService.h:261
TileCablingService::cacheIndex
int cacheIndex(int ros, int drawer, int channel) const
Definition: TileCablingService.h:248
TileCablingService::TestBeam
@ TestBeam
Definition: TileCablingService.h:84
ReadBchFromCool.pmt
pmt
Definition: ReadBchFromCool.py:62
TileCablingService::UpgradeA
@ UpgradeA
Definition: TileCablingService.h:92
TileCablingService::m_tileID
const TileID * m_tileID
Definition: TileCablingService.h:179
TileCablingService::hwid2tower_gapscin
int hwid2tower_gapscin(int ros, int drawer, int channel) const
Definition: TileCablingService.cxx:1734
TileCablingService::pmt2mt_id
Identifier pmt2mt_id(const Identifier &id) const
Definition: TileCablingService.cxx:449
TileCablingService::isRun3Cabling
bool isRun3Cabling() const
Definition: TileCablingService.h:279
TileCablingService::fillConnectionTables
void fillConnectionTables()
Definition: TileCablingService.cxx:1468
TileCablingService::isChannelFromOppositeSide
bool isChannelFromOppositeSide(int channel) const
Definition: TileCablingService.h:252
TileCablingService::m_E1mergedRun2Plus
std::vector< int > m_E1mergedRun2Plus
Definition: TileCablingService.h:255
TileCablingService::h2s_cell_id_index
Identifier h2s_cell_id_index(const HWIdentifier &id, int &index, int &pmt) const
Definition: TileCablingService.cxx:2418
TileCablingService::m_invalid_hwid
HWIdentifier m_invalid_hwid
Definition: TileCablingService.h:177
TileCablingService::getTileTBID
const TileTBID * getTileTBID() const
Definition: TileCablingService.h:272
TileCablingService::m_drawer_table
int m_drawer_table[512]
Definition: TileCablingService.h:231
HWIdentifier
Definition: HWIdentifier.h:13
TileCablingService::hwid2module
static int hwid2module(int drawer)
Definition: TileCablingService.cxx:1386
TileCablingService::RUN2aCabling
@ RUN2aCabling
Definition: TileCablingService.h:90
TileCablingService::fillH2SIdCache
void fillH2SIdCache(void)
Definition: TileCablingService.cxx:2391
TileCablingService::m_ch2pmt
std::vector< int > m_ch2pmt
Definition: TileCablingService.h:240
Example_ReadSampleNoise.drawer
drawer
Definition: Example_ReadSampleNoise.py:39
TileID.h
TileCablingService::EBA
@ EBA
Definition: TileCablingService.h:202
TileCablingService::tbid2drawer
static int tbid2drawer(int tbtype, int tbmodule)
Definition: TileCablingService.cxx:2049
TileCablingService::m_E3special
int m_E3special
Definition: TileCablingService.h:211
TileCablingService::setCablingType
bool setCablingType(TileCablingType type)
Definition: TileCablingService.cxx:228
TileInfoLoader
Definition: TileInfoLoader.h:53
TileCablingService::hwid2tower
int hwid2tower(int ros, int channel) const
Definition: TileCablingService.cxx:1392
TileCablingService::setConnected
void setConnected(int section, int side, int modMin, int modMax)
Definition: TileCablingService.cxx:339
TileCablingService::m_tileTBID
const TileTBID * m_tileTBID
Definition: TileCablingService.h:182
TileCablingService::swid2drawer
static int swid2drawer(int module)
Definition: TileCablingService.cxx:1875
TRT::Hit::side
@ side
Definition: HitInfo.h:83
TileCablingService::m_ch2pmtUpgradeABC
std::vector< int > m_ch2pmtUpgradeABC
Definition: TileCablingService.h:257
TileCablingService::~TileCablingService
virtual ~TileCablingService()
Definition: TileCablingService.cxx:195
TileCablingService::hwid2MBTSconnected_run2plus
bool hwid2MBTSconnected_run2plus(int ros, int drawer, int channel) const
Definition: TileCablingService.cxx:2160
TileCablingService::TileCablingService
TileCablingService()
Definition: TileCablingService.cxx:38
TileCablingService::frag
int frag(const HWIdentifier &id) const
Definition: TileCablingService.cxx:1306
TileCablingService::m_tileHWID
const TileHWID * m_tileHWID
Definition: TileCablingService.h:180
TileCablingService::hwid2tower_upgradeABC
int hwid2tower_upgradeABC(int ros, int channel) const
Definition: TileCablingService.cxx:1418
python.PyAthena.module
module
Definition: PyAthena.py:134
TileHWID
Helper class for TileCal online (hardware) identifiers.
Definition: TileHWID.h:49
TileCablingService::m_E3chan
int m_E3chan
Definition: TileCablingService.h:209
TileCablingService::hwid2sample_upgradeABC
int hwid2sample_upgradeABC(int ros, int channel) const
Definition: TileCablingService.cxx:1453
TileCablingService::m_EBCspec
int m_EBCspec
Definition: TileCablingService.h:206
TileCablingService::MBTS2channel_run2plus
int MBTS2channel_run2plus(int eta) const
Definition: TileCablingService.cxx:2379
TileTBID.h
TileCablingService::m_testBeam
bool m_testBeam
Definition: TileCablingService.h:189
TileCablingService::isRun2PlusCabling
bool isRun2PlusCabling() const
Definition: TileCablingService.h:278
TileCablingService::hwid2MBTSphi
int hwid2MBTSphi(int drawer, int channel) const
Definition: TileCablingService.cxx:2077
TileCablingService::h2s_cell_id
Identifier h2s_cell_id(const HWIdentifier &id) const
Definition: TileCablingService.cxx:562
TileHWID.h
TileCablingService::hwid2MBTSeta_run2plus
int hwid2MBTSeta_run2plus(int ros, int drawer) const
Definition: TileCablingService.cxx:2282
TileCablingService::m_run3
bool m_run3
Definition: TileCablingService.h:263
TileCablingService::hwid2MBTSphi_run2plus
int hwid2MBTSphi_run2plus(int ros, int drawer) const
Definition: TileCablingService.cxx:2238
FullCPAlgorithmsTest_eljob.sample
sample
Definition: FullCPAlgorithmsTest_eljob.py:100
TileCablingSvc
Definition: TileCablingSvc.h:29
TileTBFactory
Definition: TileTBFactory.h:28
TileCablingService::setTileHWID
void setTileHWID(const TileHWID *tileHWID)
Definition: TileCablingService.h:186
TileCablingService::hwid2section
static int hwid2section(int ros, int channel)
Definition: TileCablingService.cxx:1339
TileCablingService::swid2drawer_gapscin
int swid2drawer_gapscin(int side, int module, int tower) const
Definition: TileCablingService.cxx:1689
TileCablingService::hwid2tbchannel
static int hwid2tbchannel(int drawer, int channel)
Definition: TileCablingService.cxx:2043
TileCablingService::h2s_adc_id
Identifier h2s_adc_id(const HWIdentifier &id) const
Definition: TileCablingService.cxx:898
TileID
Helper class for TileCal offline identifiers.
Definition: TileID.h:68
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
TileCablingService::drawer2MBTS_id
Identifier drawer2MBTS_id(const HWIdentifier &id) const
Definition: TileCablingService.cxx:499
TileCablingService::UnknownCabling
@ UnknownCabling
Definition: TileCablingService.h:95
TileCablingService::hwid2E4prphi_run2
int hwid2E4prphi_run2(int drawer) const
Definition: TileCablingService.cxx:2326
TileCablingService::hwid2tbmodule
static int hwid2tbmodule(int drawer, int channel)
Definition: TileCablingService.cxx:2025
TileCablingService::hwid2side
int hwid2side(int ros, int channel) const
Definition: TileCablingService.cxx:1359
TileCablingService::m_maxGains
int m_maxGains
Definition: TileCablingService.h:266
TileCablingService::m_connected
bool m_connected[5][64]
Definition: TileCablingService.h:192
TileCablingService::hwid2MBTSeta_real
int hwid2MBTSeta_real(int ros, int drawer, int channel) const
Definition: TileCablingService.cxx:2111
TileCablingService::setTileID
void setTileID(const TileID *tileID)
Definition: TileCablingService.h:185
TileCablingService::extbar_chan2hole
int extbar_chan2hole(int channel) const
Definition: TileCablingService.h:71
TileCablingService::getTileHWID
const TileHWID * getTileHWID() const
Definition: TileCablingService.h:271
TileCablingService::getTileID
const TileID * getTileID() const
Definition: TileCablingService.h:270
TileCablingService::m_module_table
int m_module_table[512]
Definition: TileCablingService.h:233
TileCablingService::MBTS2drawer
int MBTS2drawer(int phi, int eta) const
Definition: TileCablingService.cxx:2089
TileCablingService::hwid2module_gapscin
int hwid2module_gapscin(int ros, int drawer, int channel) const
Definition: TileCablingService.cxx:1719
TileCablingService::CrackAndMBTS
@ CrackAndMBTS
Definition: TileCablingService.h:88
TileCablingService::hwid2sample
static int hwid2sample(int ros, int channel)
Definition: TileCablingService.cxx:1433
TileDetectorFactory
Definition: TileDetectorFactory.h:25
maskDeadModules.ros
ros
Definition: maskDeadModules.py:35
TileCablingService
Definition: TileCablingService.h:23
TileCablingService::hwid2E4preta_run2
int hwid2E4preta_run2(int drawer) const
Definition: TileCablingService.cxx:2343
TileCablingService::LBC
@ LBC
Definition: TileCablingService.h:201
TileCablingService::isRun2Cabling
bool isRun2Cabling() const
Definition: TileCablingService.h:277
TileCablingService::isTileITCGapCrack
bool isTileITCGapCrack(int channel) const
Definition: TileCablingService.h:172
TileCablingService::s2h_drawer_id
HWIdentifier s2h_drawer_id(const Identifier &id) const
Definition: TileCablingService.cxx:1011
TileCablingService::m_ch2towerUpgradeABC
std::vector< int > m_ch2towerUpgradeABC
Definition: TileCablingService.h:259
TileCablingService::swid2channel
int swid2channel(int section, int side, int tower, int sample, int pmt) const
Definition: TileCablingService.cxx:1881
TileCablingService::hwid2E4prconnected_run2
bool hwid2E4prconnected_run2(int ros, int drawer, int channel) const
Definition: TileCablingService.cxx:2174
TileCablingService::m_MBTSmergedRun2Plus
std::vector< bool > m_MBTSmergedRun2Plus
Definition: TileCablingService.h:252
TileCablingService::m_channel_table
int m_channel_table[512]
Definition: TileCablingService.h:232
TileCablingService::hwid2MBTSeta
int hwid2MBTSeta(int drawer, int channel) const
Definition: TileCablingService.cxx:2083
TileCablingService::setRun3Merged
void setRun3Merged()
Definition: TileCablingService.cxx:156
TileCablingService::getCablingType
int getCablingType() const
Definition: TileCablingService.h:276
TileCablingService::setConnected
void setConnected(int ros, int drawer, bool yes)
Definition: TileCablingService.h:250
CaloLVL1_ID
Helper class for offline TT identifiers.
Definition: CaloLVL1_ID.h:66
TileCablingService::m_tower_table
int m_tower_table[512]
Definition: TileCablingService.h:234
HWIdentifier.h
TileCablingService::m_ch2cell
std::vector< Identifier > m_ch2cell
Definition: TileCablingService.h:239
TileCablingService::getTestBeam
bool getTestBeam() const
Definition: TileCablingService.h:274
TileCablingService::is_MBTS_merged_run2plus
bool is_MBTS_merged_run2plus(int module) const
Definition: TileCablingService.cxx:2453
python.subdetectors.mmg.ids
ids
Definition: mmg.py:8
TileCablingService::D4
bool D4(int channel) const
Definition: TileCablingService.h:174
TileCablingService::hwid2tbtype
static int hwid2tbtype(int drawer)
Definition: TileCablingService.cxx:1996
TileCablingService::s2h_adc_id
HWIdentifier s2h_adc_id(const Identifier &id) const
Definition: TileCablingService.cxx:1158
TileCablingService::TileCablingType
TileCablingType
Definition: TileCablingService.h:84
TileCablingService::Partition
Partition
Definition: TileCablingService.h:199
TileCablingService::m_E1chan
int m_E1chan
Definition: TileCablingService.h:207
TileCablingService::m_E4special
int m_E4special
Definition: TileCablingService.h:212
TileCablingService::m_E4chan
int m_E4chan
Definition: TileCablingService.h:210
TileCablingService::channel2cellindex
static int channel2cellindex(int ros, int channel)
Definition: TileCablingService.cxx:1968
TileCablingService::hwid2MBTSconnected_real
bool hwid2MBTSconnected_real(int ros, int drawer, int channel) const
Definition: TileCablingService.cxx:2099
TileCablingService::swid2drawer_gapscin_run2plus
int swid2drawer_gapscin_run2plus(int side, int module, int tower) const
Definition: TileCablingService.cxx:1631
TileCablingService::setCaloLVL1
void setCaloLVL1(const CaloLVL1_ID *tt_ID)
Definition: TileCablingService.h:184
TileCablingService::EB_special
bool EB_special(int ros, int drawer) const
Definition: TileCablingService.h:214
TileCablingService::m_EBAspec
int m_EBAspec
Definition: TileCablingService.h:205
TileCablingService::UpgradeABC
@ UpgradeABC
Definition: TileCablingService.h:94
TileCablingService::C10_connected
static bool C10_connected(int module)
Definition: TileCablingService.cxx:1779
TileCablingService::isDisconnected
bool isDisconnected(int ros, int drawer, int channel) const
Definition: TileCablingService.cxx:2461
TileCablingService::hwid2pmt
int hwid2pmt(int ros, int channel) const
Definition: TileCablingService.cxx:1799
CaloLVL1_ID.h
TileCablingService::m_cablingType
TileCablingType m_cablingType
Definition: TileCablingService.h:228
TileCablingService::swid2channel_upgradeABC
int swid2channel_upgradeABC(int section, int side, int tower, int sample, int pmt) const
Definition: TileCablingService.cxx:1918
TileCablingService::EB_special_move_channel
void EB_special_move_channel(int ros, int drawer, int &channel) const
Definition: TileCablingService.h:217
TileCablingService::setTileTBID
void setTileTBID(const TileTBID *tileTBID)
Definition: TileCablingService.h:187
TileCablingService::UpgradeBC
@ UpgradeBC
Definition: TileCablingService.h:93
TileCablingService::EBC
@ EBC
Definition: TileCablingService.h:203
TileCablingService::getNChanPerCell
unsigned int getNChanPerCell(const Identifier &cell_id) const
Definition: TileCablingService.cxx:2385
TileCablingService::connected
bool connected(int ros, int drawer) const
Definition: TileCablingService.h:275
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TileCablingService::channel2hole
static int channel2hole(int ros, int channel)
Definition: TileCablingService.cxx:1946
TileCablingService::OldSim
@ OldSim
Definition: TileCablingService.h:85
TileCablingService::m_E2chan
int m_E2chan
Definition: TileCablingService.h:208
TileCablingService::getMaxGains
int getMaxGains(void) const
Definition: TileCablingService.h:101
TileCablingService::TileCablingSvcMock
friend class TileCablingSvcMock
Definition: TileCablingService.h:29
TileCablingService::m_ch2index
std::vector< int > m_ch2index
Definition: TileCablingService.h:241
TileTBID
Helper class for TileCal offline identifiers of ancillary testbeam detectors and MBTS.
Definition: Calorimeter/CaloIdentifier/CaloIdentifier/TileTBID.h:65
TileDetectorTool
Definition: TileDetectorTool.h:17
TileCablingService::h2s_pmt_id
Identifier h2s_pmt_id(const HWIdentifier &id) const
Definition: TileCablingService.cxx:791
TileCablingService::isTileGapCrack
bool isTileGapCrack(int channel) const
Definition: TileCablingService.h:173
TileCablingService::getMaxChannels
int getMaxChannels(void) const
Definition: TileCablingService.h:100
TileCablingService::frag2channels
int frag2channels(const HWIdentifier &id, std::vector< HWIdentifier > &ids) const
Definition: TileCablingService.cxx:1315
TileCablingService::setRun2Merged
void setRun2Merged()
Definition: TileCablingService.cxx:82
TileCablingService::RUN2Cabling
@ RUN2Cabling
Definition: TileCablingService.h:89
section
void section(const std::string &sec)
Definition: TestTriggerMenuAccess.cxx:22
TileCablingService::runPeriod
int runPeriod() const
Definition: TileCablingService.h:280
TileCablingService::MBTS2drawer_run2plus
int MBTS2drawer_run2plus(int side, int phi, int eta) const
Definition: TileCablingService.cxx:2360
checker_macros.h
Define macros for attributes used to control the static checker.
TileCablingService::hwid2MBTSphi_real
int hwid2MBTSphi_real(int ros, int drawer, int channel) const
Definition: TileCablingService.cxx:2105
TileCablingService::LBA
@ LBA
Definition: TileCablingService.h:200
TileCablingService::swid2channel_gapscin
int swid2channel_gapscin(int side, int module, int tower) const
Definition: TileCablingService.cxx:1704
TileCablingService::cell2tt_id
Identifier cell2tt_id(const Identifier &id) const
Definition: TileCablingService.cxx:368
TileCablingService::ATLAS_NOT_THREAD_SAFE
static TileCablingService *getInstance_nc ATLAS_NOT_THREAD_SAFE()
get (non-const) pointer to service instance
TileCablingService::getCaloLVL1_ID
const CaloLVL1_ID * getCaloLVL1_ID() const
Definition: TileCablingService.h:273
TileCablingService::swid2ros
int swid2ros(int section, int side) const
Definition: TileCablingService.cxx:1858
TileCablingService::E1_merged_with_run2plus
int E1_merged_with_run2plus(int ros, int module) const
Definition: TileCablingService.cxx:2457
TileCablingService::MBTS2drawer_real
int MBTS2drawer_real(int side, int phi, int eta) const
Definition: TileCablingService.cxx:2140
TileCablingService::tbid2channel
static int tbid2channel(int drawer, int tbchannel)
Definition: TileCablingService.cxx:2060
TileCablingService::m_invalid_id
Identifier m_invalid_id
Definition: TileCablingService.h:176
TileCablingService::s2h_channel_id
HWIdentifier s2h_channel_id(const Identifier &id) const
Definition: TileCablingService.cxx:1076
TileID_Exception.h