CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Static Public Member Functions | Static Public Attributes
hcal::Flavor5 Struct Reference

#include <DigiCollection.h>

Static Public Member Functions

static constexpr uint8_t adc (uint16_t const *const sample_start, uint8_t const shifter)
 

Static Public Attributes

static constexpr int HEADER_WORDS = 1
 
static constexpr int SAMPLES_PER_WORD = 2
 
static constexpr float WORDS_PER_SAMPLE = 0.5
 

Detailed Description

Definition at line 32 of file DigiCollection.h.

Member Function Documentation

static constexpr uint8_t hcal::Flavor5::adc ( uint16_t const *const  sample_start,
uint8_t const  shifter 
)
inlinestatic

Definition at line 37 of file DigiCollection.h.

Referenced by hcal::adc_for_sample< Flavor5 >().

37  {
38  return ((*sample_start >> shifter * 8) & 0x7f);
39  }

Member Data Documentation

constexpr int hcal::Flavor5::HEADER_WORDS = 1
static
constexpr int hcal::Flavor5::SAMPLES_PER_WORD = 2
static

Definition at line 34 of file DigiCollection.h.

constexpr float hcal::Flavor5::WORDS_PER_SAMPLE = 0.5
static

Definition at line 33 of file DigiCollection.h.