CMS 3D CMS Logo

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

Typedefs

typedef uint16_t sample_type
 

Functions

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

Typedef Documentation

typedef uint16_t ecalMGPA::sample_type

Definition at line 8 of file EcalMGPASample.h.

Function Documentation

int ecalMGPA::adc ( sample_type  sample)
inline
int ecalMGPA::gainId ( sample_type  sample)
inline
sample_type ecalMGPA::pack ( int  adc,
int  gainId 
)
inline

Definition at line 14 of file EcalMGPASample.h.

14  {
15  return (adc&0xFFF) | ((gainId&0x3)<<12);
16  }
int adc(sample_type sample)
get the ADC sample (12 bits)
int gainId(sample_type sample)
get the gainId (2 bits)