ATLAS Offline Software
Static Public Member Functions | Static Public Attributes | List of all members
TileCalibUtils Class Reference

Static class providing several utility functions and constants. More...

#include <TileCalibUtils.h>

Collaboration diagram for TileCalibUtils:

Static Public Member Functions

static std::string getFullTag (const std::string &folder, const std::string &tag)
 Returns the full tag string, composed of camelized folder name and tag part. More...
 
static unsigned int getDrawerIdx (unsigned int ros, unsigned int drawer)
 Returns a drawer hash. More...
 
static unsigned int getDrawerIdxFromFragId (unsigned int fragId)
 Returns a drawer hash from fragId This function assumes drawer context (i.e. More...
 
static unsigned int getChanIdx (unsigned int ros, unsigned int drawer, unsigned int channel)
 Returns a channel hash. More...
 
static unsigned int getChanIdx (unsigned int drawerIdx, unsigned int channel)
 Returns a channel hash. More...
 
static unsigned int getChanIdxFromFragId (unsigned int fragId, unsigned int channel)
 Returns a channel hash. More...
 
static unsigned int getAdcIdx (unsigned int ros, unsigned int drawer, unsigned int channel, unsigned int adc)
 Returns an ADC hash. More...
 
static unsigned int getAdcIdx (unsigned int drawerIdx, unsigned int channel, unsigned int adc)
 Returns an ADC hash. More...
 
static unsigned int getAdcIdxFromFragId (unsigned int fragId, unsigned int channel, unsigned int adc)
 Returns an ADC hash. More...
 
static unsigned int getMaxDrawer (unsigned int ros)
 Returns the maximal channel number for a given drawer. More...
 
static unsigned int getCommentChannel ()
 Returns the COOL channel number for the comment channel. More...
 
static std::string getDrawerString (unsigned int ros, unsigned int drawer)
 Return the drawer name, e.g. More...
 
static unsigned int getDefaultDrawerIdx (unsigned int drawerIdx)
 Returns the default drawer for a given input drawer. More...
 
static unsigned int getDefaultDrawerIdx (unsigned int ros, unsigned int drawer)
 Returns the default drawer for a given input drawer. More...
 
static unsigned int getFirstDrawerInPartitionIdx (unsigned int drawerIdx)
 Returns the first drawer Idx in a partition of a given input drawer. More...
 
static float fixedPointPrecision (float val, unsigned int nBits=16)
 Returns the input in fixed point precision. More...
 
static unsigned int max_ros ()
 Python compatibility function. More...
 
static unsigned int max_drawer ()
 Python compatibility function. More...
 
static unsigned int max_drawr0 ()
 Python compatibility function. More...
 
static unsigned int max_chan ()
 Python compatibility function. More...
 
static unsigned int max_gain ()
 Python compatibility function. More...
 
static unsigned int max_draweridx ()
 Python compatibility function. More...
 
static unsigned int trips_draweridx ()
 Python compatibility function. More...
 
static unsigned int trips_ros ()
 Python compatibility function. More...
 
static unsigned int trips_drawer ()
 Python compatibility function. More...
 
static unsigned int definitions_draweridx ()
 Python compatibility function. More...
 
static unsigned int bad_definition_chan ()
 Python compatibility function. More...
 
static unsigned int noisy_definition_chan ()
 Python compatibility function. More...
 
static unsigned int nogainl1_definition_chan ()
 Python compatibility function. More...
 
static unsigned int badtiming_definition_chan ()
 Python compatibility function. More...
 
static unsigned int wrongbcid_definition_chan ()
 Python compatibility function. More...
 
static unsigned int timingdmubcoffset_definition_chan ()
 Python compatibility function. More...
 

Static Public Attributes

static const unsigned int MAX_ROS = 5
 Number of ROSs
More...
 
static const unsigned int MAX_DRAWER = 64
 Number of drawers in ROS 1-4. More...
 
static const unsigned int MAX_DRAWR0 = 20
 Number of drawers in ROS 0
More...
 
static const unsigned int MAX_CHAN = 48
 Number of channels in drawer. More...
 
static const unsigned int MAX_GAIN = 2
 Number of gains per channel
More...
 
static const unsigned int MAX_DRAWERIDX = 276
 Maximal drawer index
More...
 
static const unsigned int LAS_PART_CHAN = 43
 Empty channel number to store laser partition variation. More...
 
static const unsigned int TRIPS_DRAWERIDX = 2
 DrawerIdx used for storing trips probabilities. More...
 
static const unsigned int TRIPS_ROS = 0
 Ros used for storing trips probabilities. More...
 
static const unsigned int TRIPS_DRAWER = 2
 Drawer used for storing trips probabilities. More...
 
static const unsigned int DEFINITIONS_DRAWERIDX = 1
 Drawer used for storing of bad and noisy channel definitions. More...
 
static const unsigned int BAD_DEFINITION_CHAN = 0
 Channel used for storing of bad channel definitions. More...
 
static const unsigned int NOISY_DEFINITION_CHAN = 1
 Channel used for storing of noisy channel definitions. More...
 
static const unsigned int NOGAINL1_DEFINITION_CHAN = 2
 Channel used for storing of NoGainLevel1 channel definitions. More...
 
static const unsigned int BADTIMING_DEFINITION_CHAN = 3
 Channel used for storing of bad timing channel definitions. More...
 
static const unsigned int WRONGBCID_DEFINITION_CHAN = 4
 Channel used for storing of wrong BCID channel definitions. More...
 
static const unsigned int TIMINGDMUBCOFFSET_DEFINITION_CHAN = 5
 Channel used for storing of affected timing channel definitions. More...
 
static const unsigned int MAX_MINIDRAWER = 4
 Number of minidrawers. More...
 
static const unsigned int MAX_MINIDRAWER_CHAN = 12
 Number of channels in minidrawer. More...
 
static const unsigned int FELIX_FRAGID_OFFSET = 0x1000
 Offset for frag ID used for FELIX in frag ID to ROB ID map. More...
 

Detailed Description

Static class providing several utility functions and constants.

Author
Nils Gollub nils..nosp@m.goll.nosp@m.ub@ce.nosp@m.rn.c.nosp@m.h

Definition at line 15 of file TileCalibUtils.h.

Member Function Documentation

◆ bad_definition_chan()

static unsigned int TileCalibUtils::bad_definition_chan ( )
inlinestatic

Python compatibility function.

Definition at line 126 of file TileCalibUtils.h.

126 {return BAD_DEFINITION_CHAN;}

◆ badtiming_definition_chan()

static unsigned int TileCalibUtils::badtiming_definition_chan ( )
inlinestatic

Python compatibility function.

Definition at line 132 of file TileCalibUtils.h.

◆ definitions_draweridx()

static unsigned int TileCalibUtils::definitions_draweridx ( )
inlinestatic

Python compatibility function.

Definition at line 124 of file TileCalibUtils.h.

124 {return DEFINITIONS_DRAWERIDX;}

◆ fixedPointPrecision()

float TileCalibUtils::fixedPointPrecision ( float  val,
unsigned int  nBits = 16 
)
static

Returns the input in fixed point precision.

Parameters
valThe input value
nBitsNumber of bits used for encoding

Definition at line 268 of file TileCalibUtils.cxx.

269 {
270  nBits -= 1;
271 
272  //=== get scale
273  int scale = 0;
274  float absVal = std::fabs(val);
275  if(absVal != 0.){
276  scale = static_cast<int>( ::truncf(std::log((std::pow(2., static_cast<int>(nBits)) - 1.)/absVal)*(1./std::log(2.))) );
277  }
278  //=== return input value with fixed point precision
279  return ::roundf(val * std::pow(2., scale)) / std::pow(2., scale);
280 }

◆ getAdcIdx() [1/2]

unsigned int TileCalibUtils::getAdcIdx ( unsigned int  drawerIdx,
unsigned int  channel,
unsigned int  adc 
)
static

Returns an ADC hash.

This function assumes drawer context

Parameters
drawerIdxThe drawer index
channelThe channel number
adcThe gain index

Definition at line 118 of file TileCalibUtils.cxx.

119 {
120  if(adc >= MAX_GAIN) throw TileCalib::IndexOutOfRange("TileCalibUtils::getAdcIdx", adc, MAX_GAIN);
121  return getChanIdx(drawerIdx, channel) * MAX_GAIN + adc;
122 }

◆ getAdcIdx() [2/2]

unsigned int TileCalibUtils::getAdcIdx ( unsigned int  ros,
unsigned int  drawer,
unsigned int  channel,
unsigned int  adc 
)
static

Returns an ADC hash.

This function assumes ADC context)

Parameters
rosThe ROS index
drawerThe drawer index
channelThe channel number
adcThe gain index

Definition at line 109 of file TileCalibUtils.cxx.

110 {
111  if(adc >= MAX_GAIN) throw TileCalib::IndexOutOfRange("TileCalibUtils::getAdcIdx", adc, MAX_GAIN);
112  return getChanIdx(ros, drawer, channel) * MAX_GAIN + adc;
113 }

◆ getAdcIdxFromFragId()

unsigned int TileCalibUtils::getAdcIdxFromFragId ( unsigned int  fragId,
unsigned int  channel,
unsigned int  adc 
)
static

Returns an ADC hash.

This function assumes drawer context

Parameters
fragIdThe fragment id
channelThe channel number
adcThe gain index

Definition at line 127 of file TileCalibUtils.cxx.

128 {
129  if(adc >= MAX_GAIN) throw TileCalib::IndexOutOfRange("TileCalibUtils::getAdcIdx", adc, MAX_GAIN);
130  return getChanIdxFromFragId(fragId, channel) * MAX_GAIN + adc;
131 }

◆ getChanIdx() [1/2]

unsigned int TileCalibUtils::getChanIdx ( unsigned int  drawerIdx,
unsigned int  channel 
)
static

Returns a channel hash.

This function assumes channel context

Parameters
drawerIdxThe drawer index
channelThe channel number

Definition at line 90 of file TileCalibUtils.cxx.

91 {
92  if(drawerIdx >= MAX_DRAWERIDX) throw TileCalib::IndexOutOfRange("TileCalibUtils::getChanIdx(drawIdx)", channel, MAX_DRAWERIDX);
93  if(channel >= MAX_CHAN ) throw TileCalib::IndexOutOfRange("TileCalibUtils::getChanIdx(channel)", channel, MAX_CHAN);
94  return drawerIdx * MAX_CHAN + channel;
95 }

◆ getChanIdx() [2/2]

unsigned int TileCalibUtils::getChanIdx ( unsigned int  ros,
unsigned int  drawer,
unsigned int  channel 
)
static

Returns a channel hash.

This function assumes channel context

Parameters
rosThe ROS index
drawerThe drawer index
channelThe channel number

Definition at line 81 of file TileCalibUtils.cxx.

82 {
83  if(channel >= MAX_CHAN) throw TileCalib::IndexOutOfRange("TileCalibUtils::getChanIdx", channel, MAX_CHAN);
84  return getDrawerIdx(ros, drawer) * MAX_CHAN + channel;
85 }

◆ getChanIdxFromFragId()

unsigned int TileCalibUtils::getChanIdxFromFragId ( unsigned int  fragId,
unsigned int  channel 
)
static

Returns a channel hash.

This function assumes channel context

Parameters
fragIdThe fragment id
channelThe channel number

Definition at line 100 of file TileCalibUtils.cxx.

101 {
102  if(channel >= MAX_CHAN) throw TileCalib::IndexOutOfRange("TileCalibUtils::getChanIdx", channel, MAX_CHAN);
103  return getDrawerIdxFromFragId(fragId) * MAX_CHAN + channel;
104 }

◆ getCommentChannel()

static unsigned int TileCalibUtils::getCommentChannel ( )
inlinestatic

Returns the COOL channel number for the comment channel.

WARNING: The comment channel number should never be changed!

Definition at line 82 of file TileCalibUtils.h.

82 {return 1000;}

◆ getDefaultDrawerIdx() [1/2]

unsigned int TileCalibUtils::getDefaultDrawerIdx ( unsigned int  drawerIdx)
static

Returns the default drawer for a given input drawer.

Parameters
drawerIdxThe input drawer index

Definition at line 163 of file TileCalibUtils.cxx.

163  {
164 
165  //=== Global Detector defaults in 0 - 3
166  //===
167  //=== Defaults for LB in 4 - 11
168  //=== Defaults for EB in 12 - 19
169  //===
170  //===
171  //=== Defaults are further shifted in extended barrel:
172  //--- + 1 for Inner MBTS and special C10
173  //--- + 2 for Outer MBTS
174  //--- + 3 for Merged E1
175  //--- + 4 for E4'
176  //--- + 5 for Special D40 with missing D4: EBA15/EBC18
177  //--- + 6 for Special D4 reduced in size
178  //--- + 7 for D4 on the top of EB around special D4
179  //
180  //--- e.g.:
181 
182  //--- LB in 4
183 
184  //--- EB in 12
185  //--- EB (Inner MBTS + special C10) in 13
186  //--- EB (Outer MBTS) in 14
187  //--- EB (Merged E1) in 15
188  //--- EB (E4') in 16
189  //--- EB (Special D40: EBA15/EBC18) in 17
190  //--- EB (Special D4 reduced in size) in 18
191  //--- EB (D4 on the top of EB around specail D4) in 19
192 
193 
194  //=== defaults for defaults
195  if(drawerIdx < MAX_DRAWR0) {
196  if (drawerIdx < 4) return 0;
197  unsigned int mod = (drawerIdx - 4) % 8;
198  return mod > 0 ? drawerIdx - mod : 0;
199  }
200 
201 
202  //=== defaults for existing drawers
203  drawerIdx -= MAX_DRAWR0;
204  if (drawerIdx < 2 * MAX_DRAWER) return 4; // LB
205 
206  drawerIdx -= 2 * MAX_DRAWER;
207  if (drawerIdx < MAX_DRAWER) { // EBA
208 
209  int OffsetEBA[] = { 0, 0, 0, 0, 0, 0, 3, 2, // Merged E+1: EBA07; Outer MBTS: EBA08
210  0, 0, 0, 0, 7, 6, 5, 7, // D+4: EBA13, EBA16; Special D+4: EBA14; Special D+40: EBA15
211  7, 6, 6, 7, 0, 0, 0, 2, // D+4: EBA17, EBA20; Special D+4: EBA18, EBA19; Outer MBTS: EBA24
212  3, 0, 0, 0, 0, 0, 0, 0, // Merged E+1: EBA25
213  0, 0, 0, 0, 0, 0, 1, 1, // Inner MBTS + special C+10: EBA39, EBA40
214  1, 1, 2, 3, 0, 0, 0, 0, // Inner MBTS + special C+10: EBA41, EBA42; Outer MBTS: EBA43; Merged E+1: EBA44
215  0, 0, 0, 0, 3, 2, 1, 1, // Merged E+1: EBA53; Outer MBTS: EBA54; Inner MBTS + special C+10: EBA55, EBA56
216  1, 1, 0, 0, 0, 0, 0, 0 // Inner MBTS + special C+10: EBA57, EBA58
217 
218  };
219 
220  return 12 + OffsetEBA[drawerIdx];
221 
222  }
223 
224  // EBC
225  drawerIdx -= MAX_DRAWER;
226  int OffsetEBC[] = { 0, 0, 0, 0, 0, 0, 3, 2, // Merged E-1: EBC07; Outer MBTS: EBC08
227  0, 0, 0, 0, 7, 6, 6, 7, // D-4: EBC13, EBC16; Special D-4: EBC14, EBC15;
228  7, 5, 6, 7, 0, 0, 0, 2, // D-4: EBC17, EBC20; Special D-40 EBC18; Special D-4: EBC19; Outer MBTS: EBC24
229  3, 0, 0, 3, 4, 0, 3, 4, // Merged E-1: EBC25, EBC28, EBC31; E-4': EBC29, EBC32
230  0, 4, 3, 0, 4, 3, 1, 1, // E-4': EBC34, EBC37; Merged E-1: EBC35, EBC38; Inner MBTS + special C-10: EBC39, EBC40
231  1, 1, 2, 3, 0, 0, 0, 0, // Inner MBTS + special C-10: EBC41, EBC42; Outer MBTS: EBC43; Merged E-1: EBC44
232  0, 0, 0, 0, 3, 2, 1, 1, // Merged E-1: EBC53; Outer MBTS: EBC54; Inner MBTS + special C-10: EBC55, EBC56
233  1, 1, 0, 0, 0, 0, 0, 0 // Inner MBTS + special C-10: EBC57, EBC58
234  };
235 
236  // Without this check we get a cppcheck false positive.
237  if (drawerIdx >= std::size(OffsetEBC)) std::abort();
238  return 12 + OffsetEBC[drawerIdx];
239 
240 }

◆ getDefaultDrawerIdx() [2/2]

unsigned int TileCalibUtils::getDefaultDrawerIdx ( unsigned int  ros,
unsigned int  drawer 
)
static

Returns the default drawer for a given input drawer.

Parameters
rosThe input ros
drawerThe input drawer

Definition at line 245 of file TileCalibUtils.cxx.

246 {
248 }

◆ getDrawerIdx()

unsigned int TileCalibUtils::getDrawerIdx ( unsigned int  ros,
unsigned int  drawer 
)
static

Returns a drawer hash.

This function assumes drawer context (i.e. only ROS and drawer are present)

Parameters
rosThe ROS index
drawerThe drawer index

Definition at line 60 of file TileCalibUtils.cxx.

61 {
62  if(ros >= MAX_ROS){ throw TileCalib::IndexOutOfRange("TileCalibUtils::getDrawerIdx", ros , MAX_ROS );}
63  if(!ros){ if(drawer >= MAX_DRAWR0) throw TileCalib::IndexOutOfRange("TileCalibUtils::getDrawerIdx", drawer, MAX_DRAWR0);}
64  else { if(drawer >= MAX_DRAWER) throw TileCalib::IndexOutOfRange("TileCalibUtils::getDrawerIdx", drawer, MAX_DRAWER);}
65  return (ros == 0 ? 0 : MAX_DRAWR0 + (ros - 1) * MAX_DRAWER) + drawer;
66 }

◆ getDrawerIdxFromFragId()

unsigned int TileCalibUtils::getDrawerIdxFromFragId ( unsigned int  fragId)
static

Returns a drawer hash from fragId This function assumes drawer context (i.e.

only ROS and drawer are present)

Parameters
fragIdThe fragment id, e.g. 0x100 for LBA01

Definition at line 71 of file TileCalibUtils.cxx.

72 {
73  unsigned int ros = fragId >> 8;
74  unsigned int drawer = fragId & 0xFF;
75  return getDrawerIdx(ros, drawer);
76 }

◆ getDrawerString()

std::string TileCalibUtils::getDrawerString ( unsigned int  ros,
unsigned int  drawer 
)
static

Return the drawer name, e.g.

LBA17

Definition at line 145 of file TileCalibUtils.cxx.

146 {
147  //=== check for valid index
149  //=== build ros name
150  std::ostringstream name;
151  if (ros == 1){ name << "LBA"; }
152  else if(ros == 2){ name << "LBC"; }
153  else if(ros == 3){ name << "EBA"; }
154  else if(ros == 4){ name << "EBC"; }
155  else{ name << "AUX"; }
156  //=== add drawer number
157  name << std::setw(2) << std::setfill('0') << drawer + 1;
158  return name.str();
159 }

◆ getFirstDrawerInPartitionIdx()

unsigned int TileCalibUtils::getFirstDrawerInPartitionIdx ( unsigned int  drawerIdx)
static

Returns the first drawer Idx in a partition of a given input drawer.

Parameters
drawerIdxThe input drawer index

Definition at line 253 of file TileCalibUtils.cxx.

254 {
255  if(drawerIdx >= MAX_DRAWERIDX) throw TileCalib::IndexOutOfRange("TileCalibUtils::getChanIdx(drawIdx)", 0, MAX_DRAWERIDX);
256 
257  unsigned int drawer0 = 0;
258  if(drawerIdx < MAX_DRAWR0) return drawer0;
259  else if(drawerIdx < MAX_DRAWR0 + 1 * MAX_DRAWER) return MAX_DRAWR0;
260  else if(drawerIdx < MAX_DRAWR0 + 2 * MAX_DRAWER) return MAX_DRAWR0 + 1 * MAX_DRAWER;
261  else if(drawerIdx < MAX_DRAWR0 + 3 * MAX_DRAWER) return MAX_DRAWR0 + 2 * MAX_DRAWER;
262  else return MAX_DRAWR0 + 3 * MAX_DRAWER;
263 }

◆ getFullTag()

std::string TileCalibUtils::getFullTag ( const std::string &  folder,
const std::string &  tag 
)
static

Returns the full tag string, composed of camelized folder name and tag part.

Parameters
folderThe full COOL folder path capitalized, eg. "/TILE/FILTER/OF1"
tagThe tag part, eg. "XX-YYY"

Definition at line 33 of file TileCalibUtils.cxx.

39 {
40 
41  std::string folderTag("");
42  bool isLower(true);
43  for (const char& c : folder) {
44  if(c == '/'){
45  isLower = false;
46  } else if(isLower) {
48  } else {
49  folderTag += char(std::toupper(c));
50  isLower = true;
51  }
52  }
53 
54  return (folderTag + "-" + tag);
55 }

◆ getMaxDrawer()

unsigned int TileCalibUtils::getMaxDrawer ( unsigned int  ros)
static

Returns the maximal channel number for a given drawer.

Returns 20 for ros==0, returns 64 for 1 <= ros <= 4.

Parameters
rosThe ROS index

Definition at line 136 of file TileCalibUtils.cxx.

137 {
138  if(ros >= MAX_ROS){throw TileCalib::IndexOutOfRange("TileCalibUtils::getMaxDrawer", ros, MAX_ROS);}
139  return ros == 0 ? MAX_DRAWR0 : MAX_DRAWER;
140 }

◆ max_chan()

static unsigned int TileCalibUtils::max_chan ( )
inlinestatic

Python compatibility function.

Definition at line 112 of file TileCalibUtils.h.

112 {return MAX_CHAN;}

◆ max_drawer()

static unsigned int TileCalibUtils::max_drawer ( )
inlinestatic

Python compatibility function.

Definition at line 108 of file TileCalibUtils.h.

108 {return MAX_DRAWER;}

◆ max_draweridx()

static unsigned int TileCalibUtils::max_draweridx ( )
inlinestatic

Python compatibility function.

Definition at line 116 of file TileCalibUtils.h.

116 {return MAX_DRAWERIDX;}

◆ max_drawr0()

static unsigned int TileCalibUtils::max_drawr0 ( )
inlinestatic

Python compatibility function.

Definition at line 110 of file TileCalibUtils.h.

110 {return MAX_DRAWR0;}

◆ max_gain()

static unsigned int TileCalibUtils::max_gain ( )
inlinestatic

Python compatibility function.

Definition at line 114 of file TileCalibUtils.h.

114 {return MAX_GAIN;}

◆ max_ros()

static unsigned int TileCalibUtils::max_ros ( )
inlinestatic

Python compatibility function.

Definition at line 106 of file TileCalibUtils.h.

106 {return MAX_ROS;}

◆ nogainl1_definition_chan()

static unsigned int TileCalibUtils::nogainl1_definition_chan ( )
inlinestatic

Python compatibility function.

Definition at line 130 of file TileCalibUtils.h.

130 {return NOGAINL1_DEFINITION_CHAN;}

◆ noisy_definition_chan()

static unsigned int TileCalibUtils::noisy_definition_chan ( )
inlinestatic

Python compatibility function.

Definition at line 128 of file TileCalibUtils.h.

128 {return NOISY_DEFINITION_CHAN;}

◆ timingdmubcoffset_definition_chan()

static unsigned int TileCalibUtils::timingdmubcoffset_definition_chan ( )
inlinestatic

Python compatibility function.

Definition at line 136 of file TileCalibUtils.h.

◆ trips_drawer()

static unsigned int TileCalibUtils::trips_drawer ( )
inlinestatic

Python compatibility function.

Definition at line 122 of file TileCalibUtils.h.

122 {return TRIPS_DRAWER;}

◆ trips_draweridx()

static unsigned int TileCalibUtils::trips_draweridx ( )
inlinestatic

Python compatibility function.

Definition at line 118 of file TileCalibUtils.h.

118 {return TRIPS_DRAWERIDX;}

◆ trips_ros()

static unsigned int TileCalibUtils::trips_ros ( )
inlinestatic

Python compatibility function.

Definition at line 120 of file TileCalibUtils.h.

120 {return TRIPS_ROS;}

◆ wrongbcid_definition_chan()

static unsigned int TileCalibUtils::wrongbcid_definition_chan ( )
inlinestatic

Python compatibility function.

Definition at line 134 of file TileCalibUtils.h.

Member Data Documentation

◆ BAD_DEFINITION_CHAN

const unsigned int TileCalibUtils::BAD_DEFINITION_CHAN = 0
static

Channel used for storing of bad channel definitions.

Definition at line 149 of file TileCalibUtils.h.

◆ BADTIMING_DEFINITION_CHAN

const unsigned int TileCalibUtils::BADTIMING_DEFINITION_CHAN = 3
static

Channel used for storing of bad timing channel definitions.

Definition at line 152 of file TileCalibUtils.h.

◆ DEFINITIONS_DRAWERIDX

const unsigned int TileCalibUtils::DEFINITIONS_DRAWERIDX = 1
static

Drawer used for storing of bad and noisy channel definitions.

Definition at line 148 of file TileCalibUtils.h.

◆ FELIX_FRAGID_OFFSET

const unsigned int TileCalibUtils::FELIX_FRAGID_OFFSET = 0x1000
static

Offset for frag ID used for FELIX in frag ID to ROB ID map.

Definition at line 157 of file TileCalibUtils.h.

◆ LAS_PART_CHAN

const unsigned int TileCalibUtils::LAS_PART_CHAN = 43
static

Empty channel number to store laser partition variation.

Definition at line 144 of file TileCalibUtils.h.

◆ MAX_CHAN

const unsigned int TileCalibUtils::MAX_CHAN = 48
static

Number of channels in drawer.

Definition at line 141 of file TileCalibUtils.h.

◆ MAX_DRAWER

const unsigned int TileCalibUtils::MAX_DRAWER = 64
static

Number of drawers in ROS 1-4.

Definition at line 139 of file TileCalibUtils.h.

◆ MAX_DRAWERIDX

const unsigned int TileCalibUtils::MAX_DRAWERIDX = 276
static

Maximal drawer index

Definition at line 143 of file TileCalibUtils.h.

◆ MAX_DRAWR0

const unsigned int TileCalibUtils::MAX_DRAWR0 = 20
static

Number of drawers in ROS 0

Definition at line 140 of file TileCalibUtils.h.

◆ MAX_GAIN

const unsigned int TileCalibUtils::MAX_GAIN = 2
static

Number of gains per channel

Definition at line 142 of file TileCalibUtils.h.

◆ MAX_MINIDRAWER

const unsigned int TileCalibUtils::MAX_MINIDRAWER = 4
static

Number of minidrawers.

Definition at line 155 of file TileCalibUtils.h.

◆ MAX_MINIDRAWER_CHAN

const unsigned int TileCalibUtils::MAX_MINIDRAWER_CHAN = 12
static

Number of channels in minidrawer.

Definition at line 156 of file TileCalibUtils.h.

◆ MAX_ROS

const unsigned int TileCalibUtils::MAX_ROS = 5
static

Number of ROSs

Definition at line 138 of file TileCalibUtils.h.

◆ NOGAINL1_DEFINITION_CHAN

const unsigned int TileCalibUtils::NOGAINL1_DEFINITION_CHAN = 2
static

Channel used for storing of NoGainLevel1 channel definitions.

Definition at line 151 of file TileCalibUtils.h.

◆ NOISY_DEFINITION_CHAN

const unsigned int TileCalibUtils::NOISY_DEFINITION_CHAN = 1
static

Channel used for storing of noisy channel definitions.

Definition at line 150 of file TileCalibUtils.h.

◆ TIMINGDMUBCOFFSET_DEFINITION_CHAN

const unsigned int TileCalibUtils::TIMINGDMUBCOFFSET_DEFINITION_CHAN = 5
static

Channel used for storing of affected timing channel definitions.

Definition at line 154 of file TileCalibUtils.h.

◆ TRIPS_DRAWER

const unsigned int TileCalibUtils::TRIPS_DRAWER = 2
static

Drawer used for storing trips probabilities.

Definition at line 147 of file TileCalibUtils.h.

◆ TRIPS_DRAWERIDX

const unsigned int TileCalibUtils::TRIPS_DRAWERIDX = 2
static

DrawerIdx used for storing trips probabilities.

Definition at line 145 of file TileCalibUtils.h.

◆ TRIPS_ROS

const unsigned int TileCalibUtils::TRIPS_ROS = 0
static

Ros used for storing trips probabilities.

Definition at line 146 of file TileCalibUtils.h.

◆ WRONGBCID_DEFINITION_CHAN

const unsigned int TileCalibUtils::WRONGBCID_DEFINITION_CHAN = 4
static

Channel used for storing of wrong BCID channel definitions.

Definition at line 153 of file TileCalibUtils.h.


The documentation for this class was generated from the following files:
TileCalib::IndexOutOfRange
Thrown if an index is out of range.
Definition: TileCalorimeter/TileCalib/TileCalibBlobObjs/TileCalibBlobObjs/Exception.h:141
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:24
TileCalibUtils::MAX_DRAWERIDX
static const unsigned int MAX_DRAWERIDX
Maximal drawer index
Definition: TileCalibUtils.h:143
xAOD::char
char
Definition: TrigDecision_v1.cxx:38
conifer::pow
constexpr int pow(int x)
Definition: conifer.h:20
TileCalibUtils::TRIPS_DRAWER
static const unsigned int TRIPS_DRAWER
Drawer used for storing trips probabilities.
Definition: TileCalibUtils.h:147
TileCalibUtils::TRIPS_ROS
static const unsigned int TRIPS_ROS
Ros used for storing trips probabilities.
Definition: TileCalibUtils.h:146
TileCalibUtils::NOISY_DEFINITION_CHAN
static const unsigned int NOISY_DEFINITION_CHAN
Channel used for storing of noisy channel definitions.
Definition: TileCalibUtils.h:150
TileCalibUtils::TRIPS_DRAWERIDX
static const unsigned int TRIPS_DRAWERIDX
DrawerIdx used for storing trips probabilities.
Definition: TileCalibUtils.h:145
yodamerge_tmp.scale
scale
Definition: yodamerge_tmp.py:138
Example_ReadSampleNoise.drawer
drawer
Definition: Example_ReadSampleNoise.py:39
TileCalibUtils::TIMINGDMUBCOFFSET_DEFINITION_CHAN
static const unsigned int TIMINGDMUBCOFFSET_DEFINITION_CHAN
Channel used for storing of affected timing channel definitions.
Definition: TileCalibUtils.h:154
TileCalibUtils::MAX_DRAWER
static const unsigned int MAX_DRAWER
Number of drawers in ROS 1-4.
Definition: TileCalibUtils.h:139
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
TileCalibUtils::WRONGBCID_DEFINITION_CHAN
static const unsigned int WRONGBCID_DEFINITION_CHAN
Channel used for storing of wrong BCID channel definitions.
Definition: TileCalibUtils.h:153
maskDeadModules.mod
mod
Definition: maskDeadModules.py:36
tolower
void tolower(std::string &s)
Definition: AthenaSummarySvc.cxx:111
TileCalibUtils::DEFINITIONS_DRAWERIDX
static const unsigned int DEFINITIONS_DRAWERIDX
Drawer used for storing of bad and noisy channel definitions.
Definition: TileCalibUtils.h:148
TileCalibUtils::BADTIMING_DEFINITION_CHAN
static const unsigned int BADTIMING_DEFINITION_CHAN
Channel used for storing of bad timing channel definitions.
Definition: TileCalibUtils.h:152
TileCalibUtils::MAX_ROS
static const unsigned int MAX_ROS
Number of ROSs
Definition: TileCalibUtils.h:138
maskDeadModules.ros
ros
Definition: maskDeadModules.py:35
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
TileCalibUtils::getDefaultDrawerIdx
static unsigned int getDefaultDrawerIdx(unsigned int drawerIdx)
Returns the default drawer for a given input drawer.
Definition: TileCalibUtils.cxx:163
TileCalibUtils::getChanIdx
static unsigned int getChanIdx(unsigned int ros, unsigned int drawer, unsigned int channel)
Returns a channel hash.
Definition: TileCalibUtils.cxx:81
TileCalibUtils::getChanIdxFromFragId
static unsigned int getChanIdxFromFragId(unsigned int fragId, unsigned int channel)
Returns a channel hash.
Definition: TileCalibUtils.cxx:100
CaloCondBlobAlgs_fillNoiseFromASCII.folderTag
folderTag
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:52
ReadFloatFromCool.adc
adc
Definition: ReadFloatFromCool.py:48
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TileCalibUtils::BAD_DEFINITION_CHAN
static const unsigned int BAD_DEFINITION_CHAN
Channel used for storing of bad channel definitions.
Definition: TileCalibUtils.h:149
TileCalibUtils::NOGAINL1_DEFINITION_CHAN
static const unsigned int NOGAINL1_DEFINITION_CHAN
Channel used for storing of NoGainLevel1 channel definitions.
Definition: TileCalibUtils.h:151
CaloCondBlobAlgs_fillNoiseFromASCII.folder
folder
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:56
TileCalibUtils::getDrawerIdx
static unsigned int getDrawerIdx(unsigned int ros, unsigned int drawer)
Returns a drawer hash.
Definition: TileCalibUtils.cxx:60
CaloCondBlobAlgs_fillNoiseFromASCII.tag
string tag
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:24
TileCalibUtils::MAX_CHAN
static const unsigned int MAX_CHAN
Number of channels in drawer.
Definition: TileCalibUtils.h:141
TileCalibUtils::getDrawerIdxFromFragId
static unsigned int getDrawerIdxFromFragId(unsigned int fragId)
Returns a drawer hash from fragId This function assumes drawer context (i.e.
Definition: TileCalibUtils.cxx:71
python.compressB64.c
def c
Definition: compressB64.py:93
TileCalibUtils::MAX_DRAWR0
static const unsigned int MAX_DRAWR0
Number of drawers in ROS 0
Definition: TileCalibUtils.h:140
TileCalibUtils::MAX_GAIN
static const unsigned int MAX_GAIN
Number of gains per channel
Definition: TileCalibUtils.h:142