CMS 3D CMS Logo

List of all members | Static Public Member Functions | Static Public Attributes
hcal::Flavor3 Struct Reference

#include <DigiCollection.h>

Static Public Member Functions

static constexpr uint8_t adc (uint16_t const *const sample_start)
 
static constexpr uint8_t capid (uint16_t const *const sample_start)
 
static constexpr uint8_t soibit (uint16_t const *const sample_start)
 
static constexpr uint8_t tdc (uint16_t const *const sample_start)
 

Static Public Attributes

static constexpr int HEADER_WORDS = 1
 
static constexpr int SAMPLES_PER_WORD = 1
 
static constexpr int WORDS_PER_SAMPLE = 1
 

Detailed Description

Definition at line 20 of file DigiCollection.h.

Member Function Documentation

◆ adc()

static constexpr uint8_t hcal::Flavor3::adc ( uint16_t const *const  sample_start)
inlinestaticconstexpr

Definition at line 25 of file DigiCollection.h.

25 { return (*sample_start & 0xff); }

◆ capid()

static constexpr uint8_t hcal::Flavor3::capid ( uint16_t const *const  sample_start)
inlinestaticconstexpr

Definition at line 28 of file DigiCollection.h.

28 { return ((*sample_start >> 10) & 0x3); }

Referenced by hcal::capid_for_sample< Flavor3 >().

◆ soibit()

static constexpr uint8_t hcal::Flavor3::soibit ( uint16_t const *const  sample_start)
inlinestaticconstexpr

Definition at line 27 of file DigiCollection.h.

27 { return ((*sample_start >> 14) & 0x1); }

References testProducerWithPsetDescEmpty_cfi::x1.

◆ tdc()

static constexpr uint8_t hcal::Flavor3::tdc ( uint16_t const *const  sample_start)
inlinestaticconstexpr

Definition at line 26 of file DigiCollection.h.

26 { return ((*sample_start >> 8) & 0x3); }

Member Data Documentation

◆ HEADER_WORDS

constexpr int hcal::Flavor3::HEADER_WORDS = 1
staticconstexpr

◆ SAMPLES_PER_WORD

constexpr int hcal::Flavor3::SAMPLES_PER_WORD = 1
staticconstexpr

Definition at line 22 of file DigiCollection.h.

◆ WORDS_PER_SAMPLE

constexpr int hcal::Flavor3::WORDS_PER_SAMPLE = 1
staticconstexpr

Definition at line 21 of file DigiCollection.h.

Referenced by hcal::capid_for_sample< Flavor3 >().

testProducerWithPsetDescEmpty_cfi.x1
x1
Definition: testProducerWithPsetDescEmpty_cfi.py:33