ATLAS Offline Software
|
Static class providing several utility functions and constants. More...
#include <TileCalibUtils.h>
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... | |
Static class providing several utility functions and constants.
Definition at line 15 of file TileCalibUtils.h.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
static |
|
static |
Returns an ADC hash.
This function assumes drawer context
drawerIdx | The drawer index |
channel | The channel number |
adc | The gain index |
Definition at line 118 of file TileCalibUtils.cxx.
|
static |
Returns an ADC hash.
This function assumes ADC context)
ros | The ROS index |
drawer | The drawer index |
channel | The channel number |
adc | The gain index |
Definition at line 109 of file TileCalibUtils.cxx.
|
static |
Returns an ADC hash.
This function assumes drawer context
fragId | The fragment id |
channel | The channel number |
adc | The gain index |
Definition at line 127 of file TileCalibUtils.cxx.
|
static |
Returns a channel hash.
This function assumes channel context
drawerIdx | The drawer index |
channel | The channel number |
Definition at line 90 of file TileCalibUtils.cxx.
|
static |
Returns a channel hash.
This function assumes channel context
ros | The ROS index |
drawer | The drawer index |
channel | The channel number |
Definition at line 81 of file TileCalibUtils.cxx.
|
static |
Returns a channel hash.
This function assumes channel context
fragId | The fragment id |
channel | The channel number |
Definition at line 100 of file TileCalibUtils.cxx.
|
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.
|
static |
Returns the default drawer for a given input drawer.
drawerIdx | The input drawer index |
Definition at line 163 of file TileCalibUtils.cxx.
|
static |
Returns the default drawer for a given input drawer.
ros | The input ros |
drawer | The input drawer |
Definition at line 245 of file TileCalibUtils.cxx.
|
static |
Returns a drawer hash.
This function assumes drawer context (i.e. only ROS and drawer are present)
ros | The ROS index |
drawer | The drawer index |
Definition at line 60 of file TileCalibUtils.cxx.
|
static |
Returns a drawer hash from fragId This function assumes drawer context (i.e.
only ROS and drawer are present)
fragId | The fragment id, e.g. 0x100 for LBA01 |
Definition at line 71 of file TileCalibUtils.cxx.
|
static |
|
static |
Returns the first drawer Idx in a partition of a given input drawer.
drawerIdx | The input drawer index |
Definition at line 253 of file TileCalibUtils.cxx.
|
static |
Returns the full tag string, composed of camelized folder name and tag part.
folder | The full COOL folder path capitalized, eg. "/TILE/FILTER/OF1" |
tag | The tag part, eg. "XX-YYY" |
Definition at line 33 of file TileCalibUtils.cxx.
|
static |
Returns the maximal channel number for a given drawer.
Returns 20 for ros==0, returns 64 for 1 <= ros <= 4.
ros | The ROS index |
Definition at line 136 of file TileCalibUtils.cxx.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
static |
Channel used for storing of bad channel definitions.
Definition at line 149 of file TileCalibUtils.h.
|
static |
Channel used for storing of bad timing channel definitions.
Definition at line 152 of file TileCalibUtils.h.
|
static |
Drawer used for storing of bad and noisy channel definitions.
Definition at line 148 of file TileCalibUtils.h.
|
static |
Offset for frag ID used for FELIX in frag ID to ROB ID map.
Definition at line 157 of file TileCalibUtils.h.
|
static |
Empty channel number to store laser partition variation.
Definition at line 144 of file TileCalibUtils.h.
|
static |
Number of channels in drawer.
Definition at line 141 of file TileCalibUtils.h.
|
static |
Number of drawers in ROS 1-4.
Definition at line 139 of file TileCalibUtils.h.
|
static |
Maximal drawer index
Definition at line 143 of file TileCalibUtils.h.
|
static |
Number of drawers in ROS 0
Definition at line 140 of file TileCalibUtils.h.
|
static |
Number of gains per channel
Definition at line 142 of file TileCalibUtils.h.
|
static |
Number of minidrawers.
Definition at line 155 of file TileCalibUtils.h.
|
static |
Number of channels in minidrawer.
Definition at line 156 of file TileCalibUtils.h.
|
static |
Number of ROSs
Definition at line 138 of file TileCalibUtils.h.
|
static |
Channel used for storing of NoGainLevel1 channel definitions.
Definition at line 151 of file TileCalibUtils.h.
|
static |
Channel used for storing of noisy channel definitions.
Definition at line 150 of file TileCalibUtils.h.
|
static |
Channel used for storing of affected timing channel definitions.
Definition at line 154 of file TileCalibUtils.h.
|
static |
Drawer used for storing trips probabilities.
Definition at line 147 of file TileCalibUtils.h.
|
static |
DrawerIdx used for storing trips probabilities.
Definition at line 145 of file TileCalibUtils.h.
|
static |
Ros used for storing trips probabilities.
Definition at line 146 of file TileCalibUtils.h.
|
static |
Channel used for storing of wrong BCID channel definitions.
Definition at line 153 of file TileCalibUtils.h.