CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Typedefs | Functions
ecalMGPA 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 ecalMGPA::sample_type

Definition at line 9 of file EcalMGPASample.h.

Function Documentation

constexpr int ecalMGPA::adc ( sample_type  sample)

get the ADC sample (12 bits)

Definition at line 12 of file EcalMGPASample.h.

References ecalPh1::kAdcMask.

12 { return sample & ecalPh1::kAdcMask; }
static constexpr unsigned int kAdcMask
Definition: EcalConstants.h:34
constexpr int ecalMGPA::gainId ( sample_type  sample)

get the gainId (2 bits)

Definition at line 14 of file EcalMGPASample.h.

References ecalPh1::kGainIdMask, and ecalPh1::NBITS.

static constexpr unsigned int NBITS
Definition: EcalConstants.h:31
static constexpr unsigned int kGainIdMask
Definition: EcalConstants.h:35
constexpr sample_type ecalMGPA::pack ( int  adc,
int  gainId 
)

Definition at line 15 of file EcalMGPASample.h.

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

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