CMS 3D CMS Logo

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 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

◆ adc() [1/2]

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  }

◆ adc() [2/2]

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

Definition at line 43 of file HcalDigiSoA.h.

43  {
44  return ((*sample_start >> shifter * 8) & 0x7f);
45  }

Member Data Documentation

◆ HEADER_WORDS

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

◆ SAMPLES_PER_WORD

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

Definition at line 34 of file DigiCollection.h.

◆ WORDS_PER_SAMPLE

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

Definition at line 33 of file DigiCollection.h.