ATLAS Offline Software
Classes | Macros | Variables
TileRawChannel2Bytes5.h File Reference
#include <vector>
#include <stdio.h>
#include <stdint.h>
Include dependency graph for TileRawChannel2Bytes5.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TileRawChannel2Bytes5
 Converts the TileRawChannel object into bytes as it. More...
 
struct  TileRawChannel2Bytes5::TileChanData
 

Macros

#define if_Frag5_DO_PED(w, code, gain, amp, time)
 ped4 | ped5 More...
 
#define if_Frag5_DO_AMP_RAW_DUMP(w, code, gain, amp, time)
 amp5 | amp6 | raws | rawf | dump More...
 
#define if_Frag5_DO_NULL(w, code, gain, amp, time)
 null More...
 
#define if_Frag5_DO_FULL(w, code, gain, amp, time)
 full More...
 
#define if_Frag5_unpack_reco_bin(w, code, gain, amp, time)
 if_unpack_reco_bin More...
 
#define Frag5_unpack_reco_bin(w, code, gain, amp, time)   if_Frag5_unpack_reco_bin(w, code, gain, amp, time);
 unpack_reco_bin More...
 
#define Frag5_unpack_bin2reco(unit, gain, amp_bin, amp, time_bin, time)
 unpack_bin2reco More...
 
#define Frag5_unpack_bin2sum(unit, amp_bin)   amp_bin/AMPLITUDE_FACTOR5_HG[unit]
 unpack_bin2sum More...
 

Variables

const int AMPLITUDE_OFFSET5 [2] = { 512, 2048 }
 
const double AMPLITUDE_FACTOR5_LG [4] = { 16.0, 32.0, 32.0, 2.0/64.0 }
 
const double AMPLITUDE_FACTOR5_HG [4] = { 16.0, 32.0*64, 32.0*64., 2.0 }
 
const int NOFWORDS_WEIGHTS_7S_1GAIN = 22
 
const int NOFWORDS_WEIGHTS_7S = 2*NOFWORDS_WEIGHTS_7S_1GAIN
 
const int RECALIB_OFFSET = 48*NOFWORDS_WEIGHTS_7S + 1
 

Macro Definition Documentation

◆ Frag5_unpack_bin2reco

#define Frag5_unpack_bin2reco (   unit,
  gain,
  amp_bin,
  amp,
  time_bin,
  time 
)
Value:
{ \
time = time_bin/2.0; \
amp = (gain) ? amp_bin/AMPLITUDE_FACTOR5_HG[unit] \
: amp_bin/AMPLITUDE_FACTOR5_LG[unit]; \
}

unpack_bin2reco

Definition at line 233 of file TileRawChannel2Bytes5.h.

◆ Frag5_unpack_bin2sum

#define Frag5_unpack_bin2sum (   unit,
  amp_bin 
)    amp_bin/AMPLITUDE_FACTOR5_HG[unit]

unpack_bin2sum

Definition at line 241 of file TileRawChannel2Bytes5.h.

◆ Frag5_unpack_reco_bin

#define Frag5_unpack_reco_bin (   w,
  code,
  gain,
  amp,
  time 
)    if_Frag5_unpack_reco_bin(w, code, gain, amp, time);

unpack_reco_bin

Definition at line 229 of file TileRawChannel2Bytes5.h.

◆ if_Frag5_DO_AMP_RAW_DUMP

#define if_Frag5_DO_AMP_RAW_DUMP (   w,
  code,
  gain,
  amp,
  time 
)
Value:
gain = (w >> 31); \
amp = (w & 0x7FFF) - AMPLITUDE_OFFSET5[gain]; \
time = ((int32_t)(w << (32 - 15 - 6)) >> (32 - 6)); \
} else { \
time = 0; \
} \
}

amp5 | amp6 | raws | rawf | dump

Definition at line 192 of file TileRawChannel2Bytes5.h.

◆ if_Frag5_DO_FULL

#define if_Frag5_DO_FULL (   w,
  code,
  gain,
  amp,
  time 
)
Value:
gain = (w >> 31); \
int overflow = (w >> 23) & 0x1; \
amp = (overflow ? 0x7FFF : 0x0) - AMPLITUDE_OFFSET5[gain]; \
time = 0; \
}

full

Definition at line 213 of file TileRawChannel2Bytes5.h.

◆ if_Frag5_DO_NULL

#define if_Frag5_DO_NULL (   w,
  code,
  gain,
  amp,
  time 
)
Value:
int bit = w & 0x1; \
gain = bit; \
amp = 0; \
time = 0; \
}

null

Definition at line 204 of file TileRawChannel2Bytes5.h.

◆ if_Frag5_DO_PED

#define if_Frag5_DO_PED (   w,
  code,
  gain,
  amp,
  time 
)
Value:
gain = 1; \
amp = (w & 0x1FF) - 256; \
time = 0; \
}

ped4 | ped5

Definition at line 184 of file TileRawChannel2Bytes5.h.

◆ if_Frag5_unpack_reco_bin

#define if_Frag5_unpack_reco_bin (   w,
  code,
  gain,
  amp,
  time 
)
Value:

if_unpack_reco_bin

Definition at line 222 of file TileRawChannel2Bytes5.h.

Variable Documentation

◆ AMPLITUDE_FACTOR5_HG

const double AMPLITUDE_FACTOR5_HG[4] = { 16.0, 32.0*64, 32.0*64., 2.0 }

Definition at line 33 of file TileRawChannel2Bytes5.h.

◆ AMPLITUDE_FACTOR5_LG

const double AMPLITUDE_FACTOR5_LG[4] = { 16.0, 32.0, 32.0, 2.0/64.0 }

Definition at line 32 of file TileRawChannel2Bytes5.h.

◆ AMPLITUDE_OFFSET5

const int AMPLITUDE_OFFSET5[2] = { 512, 2048 }

Definition at line 31 of file TileRawChannel2Bytes5.h.

◆ NOFWORDS_WEIGHTS_7S

const int NOFWORDS_WEIGHTS_7S = 2*NOFWORDS_WEIGHTS_7S_1GAIN

Definition at line 36 of file TileRawChannel2Bytes5.h.

◆ NOFWORDS_WEIGHTS_7S_1GAIN

const int NOFWORDS_WEIGHTS_7S_1GAIN = 22

Definition at line 35 of file TileRawChannel2Bytes5.h.

◆ RECALIB_OFFSET

const int RECALIB_OFFSET = 48*NOFWORDS_WEIGHTS_7S + 1

Definition at line 37 of file TileRawChannel2Bytes5.h.

plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:216
if_Frag5_DO_AMP_RAW_DUMP
#define if_Frag5_DO_AMP_RAW_DUMP(w, code, gain, amp, time)
amp5 | amp6 | raws | rawf | dump
Definition: TileRawChannel2Bytes5.h:191
TileRawChannel2Bytes5::is_code_null
static bool is_code_null(uint32_t code)
Definition: TileRawChannel2Bytes5.h:85
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
if_Frag5_DO_FULL
#define if_Frag5_DO_FULL(w, code, gain, amp, time)
full
Definition: TileRawChannel2Bytes5.h:212
if_Frag5_DO_NULL
#define if_Frag5_DO_NULL(w, code, gain, amp, time)
null
Definition: TileRawChannel2Bytes5.h:203
AMPLITUDE_FACTOR5_LG
const double AMPLITUDE_FACTOR5_LG[4]
Definition: TileRawChannel2Bytes5.h:32
TileRawChannel2Bytes5::is_code_full
static bool is_code_full(uint32_t code)
Definition: TileRawChannel2Bytes5.h:84
TileRawChannel2Bytes5::is_code_ped
static bool is_code_ped(uint32_t code)
Definition: TileRawChannel2Bytes5.h:87
histSizes.code
code
Definition: histSizes.py:129
AMPLITUDE_OFFSET5
const int AMPLITUDE_OFFSET5[2]
Definition: TileRawChannel2Bytes5.h:31
TileRawChannel2Bytes5::is_code_amp_raw_dump
static bool is_code_amp_raw_dump(uint32_t code)
Definition: TileRawChannel2Bytes5.h:89
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:242
unit
const PlainObject unit() const
This is a plugin that makes Eigen look like CLHEP & defines some convenience methods.
Definition: AmgMatrixBasePlugin.h:21
TileRawChannel2Bytes5::is_code_amp
static bool is_code_amp(uint32_t code)
Definition: TileRawChannel2Bytes5.h:88
if_Frag5_DO_PED
#define if_Frag5_DO_PED(w, code, gain, amp, time)
ped4 | ped5
Definition: TileRawChannel2Bytes5.h:183
AMPLITUDE_FACTOR5_HG
const double AMPLITUDE_FACTOR5_HG[4]
Definition: TileRawChannel2Bytes5.h:33
python.IoTestsLib.w
def w
Definition: IoTestsLib.py:200