CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Typedefs | Functions
ecalLiteDTU Namespace Reference

Typedefs

typedef uint16_t sample_type
 

Functions

constexpr int adc (sample_type sample)
 get the ADC sample (12 bits) More...
 
constexpr int gainId (sample_type sample)
 get the gainId (2 bits) More...
 
constexpr sample_type pack (int adc, int gainId)
 

Typedef Documentation

typedef uint16_t ecalLiteDTU::sample_type

Definition at line 9 of file EcalLiteDTUSample.h.

Function Documentation

constexpr int ecalLiteDTU::adc ( sample_type  sample)

get the ADC sample (12 bits)

Definition at line 12 of file EcalLiteDTUSample.h.

References ecalPh2::kAdcMask.

12 { return sample & ecalPh2::kAdcMask; }
static constexpr unsigned int kAdcMask
Definition: EcalConstants.h:18
constexpr int ecalLiteDTU::gainId ( sample_type  sample)
constexpr sample_type ecalLiteDTU::pack ( int  adc,
int  gainId 
)

Definition at line 15 of file EcalLiteDTUSample.h.

References ecalPh2::kAdcMask, ecalPh2::kGainIdMask, and ecalPh2::NBITS.

15  {
17  }
static constexpr unsigned int kGainIdMask
Definition: EcalConstants.h:19
static constexpr unsigned int kAdcMask
Definition: EcalConstants.h:18
constexpr int gainId(sample_type sample)
get the gainId (2 bits)
static constexpr unsigned int NBITS
Definition: EcalConstants.h:13
uint16_t *__restrict__ uint16_t const *__restrict__ adc