|
ATLAS Offline Software
|
Go to the documentation of this file.
73 unsigned int ros = fragId >> 8;
74 unsigned int drawer = fragId & 0xFF;
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"; }
157 name << std::setw(2) << std::setfill(
'0') <<
drawer + 1;
196 if (drawerIdx < 4)
return 0;
197 unsigned int mod = (drawerIdx - 4) % 8;
198 return mod > 0 ? drawerIdx -
mod : 0;
209 int OffsetEBA[] = { 0, 0, 0, 0, 0, 0, 3, 2,
210 0, 0, 0, 0, 7, 6, 5, 7,
211 7, 6, 6, 7, 0, 0, 0, 2,
212 3, 0, 0, 0, 0, 0, 0, 0,
213 0, 0, 0, 0, 0, 0, 1, 1,
214 1, 1, 2, 3, 0, 0, 0, 0,
215 0, 0, 0, 0, 3, 2, 1, 1,
216 1, 1, 0, 0, 0, 0, 0, 0
220 return 12 + OffsetEBA[drawerIdx];
226 int OffsetEBC[] = { 0, 0, 0, 0, 0, 0, 3, 2,
227 0, 0, 0, 0, 7, 6, 6, 7,
228 7, 5, 6, 7, 0, 0, 0, 2,
229 3, 0, 0, 3, 4, 0, 3, 4,
230 0, 4, 3, 0, 4, 3, 1, 1,
231 1, 1, 2, 3, 0, 0, 0, 0,
232 0, 0, 0, 0, 3, 2, 1, 1,
233 1, 1, 0, 0, 0, 0, 0, 0
237 if (drawerIdx >=
std::size(OffsetEBC)) std::abort();
238 return 12 + OffsetEBC[drawerIdx];
257 unsigned int drawer0 = 0;
274 float absVal = std::fabs(
val);
static unsigned int getMaxDrawer(unsigned int ros)
Returns the maximal channel number for a given drawer.
Thrown if an index is out of range.
static const unsigned int MAX_DRAWERIDX
Maximal drawer index
static unsigned int getFirstDrawerInPartitionIdx(unsigned int drawerIdx)
Returns the first drawer Idx in a partition of a given input drawer.
static const unsigned int TRIPS_DRAWER
Drawer used for storing trips probabilities.
static const unsigned int TRIPS_ROS
Ros used for storing trips probabilities.
static const unsigned int NOISY_DEFINITION_CHAN
Channel used for storing of noisy channel definitions.
static const unsigned int TRIPS_DRAWERIDX
DrawerIdx used for storing trips probabilities.
static const unsigned int TIMINGDMUBCOFFSET_DEFINITION_CHAN
Channel used for storing of affected timing channel definitions.
static const unsigned int MAX_DRAWER
Number of drawers in ROS 1-4.
static const unsigned int WRONGBCID_DEFINITION_CHAN
Channel used for storing of wrong BCID channel definitions.
void tolower(std::string &s)
static const unsigned int DEFINITIONS_DRAWERIDX
Drawer used for storing of bad and noisy channel definitions.
static const unsigned int BADTIMING_DEFINITION_CHAN
Channel used for storing of bad timing channel definitions.
static unsigned int getAdcIdxFromFragId(unsigned int fragId, unsigned int channel, unsigned int adc)
Returns an ADC hash.
static const unsigned int MAX_ROS
Number of ROSs
static unsigned int getDefaultDrawerIdx(unsigned int drawerIdx)
Returns the default drawer for a given input drawer.
static unsigned int getChanIdx(unsigned int ros, unsigned int drawer, unsigned int channel)
Returns a channel hash.
static unsigned int getChanIdxFromFragId(unsigned int fragId, unsigned int channel)
Returns a channel hash.
static std::string getDrawerString(unsigned int ros, unsigned int drawer)
Return the drawer name, e.g.
static const unsigned int BAD_DEFINITION_CHAN
Channel used for storing of bad channel definitions.
static const unsigned int NOGAINL1_DEFINITION_CHAN
Channel used for storing of NoGainLevel1 channel definitions.
static unsigned int getAdcIdx(unsigned int ros, unsigned int drawer, unsigned int channel, unsigned int adc)
Returns an ADC hash.
static unsigned int getDrawerIdx(unsigned int ros, unsigned int drawer)
Returns a drawer hash.
static float fixedPointPrecision(float val, unsigned int nBits=16)
Returns the input in fixed point precision.
static const unsigned int LAS_PART_CHAN
Empty channel number to store laser partition variation.
static const unsigned int MAX_CHAN
Number of channels in drawer.
static unsigned int getDrawerIdxFromFragId(unsigned int fragId)
Returns a drawer hash from fragId This function assumes drawer context (i.e.
static const unsigned int MAX_DRAWR0
Number of drawers in ROS 0
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.
static const unsigned int MAX_GAIN
Number of gains per channel