CMS 3D CMS Logo

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

#include <DigiCollection.h>

Static Public Member Functions

static constexpr uint8_t adc (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 9 of file DigiCollection.h.

Member Function Documentation

◆ adc()

static constexpr uint8_t hcal::Flavor1::adc ( uint16_t const *const  sample_start)
inlinestatic

Definition at line 14 of file DigiCollection.h.

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

◆ soibit()

static constexpr uint8_t hcal::Flavor1::soibit ( uint16_t const *const  sample_start)
inlinestatic

Definition at line 16 of file DigiCollection.h.

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

◆ tdc()

static constexpr uint8_t hcal::Flavor1::tdc ( uint16_t const *const  sample_start)
inlinestatic

Definition at line 15 of file DigiCollection.h.

15 { return (*sample_start >> 8) & 0x3f; }

Member Data Documentation

◆ HEADER_WORDS

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

Definition at line 12 of file DigiCollection.h.

Referenced by HcalDigisProducerGPU::acquire().

◆ SAMPLES_PER_WORD

constexpr int hcal::Flavor1::SAMPLES_PER_WORD = 1
static

Definition at line 11 of file DigiCollection.h.

◆ WORDS_PER_SAMPLE

constexpr int hcal::Flavor1::WORDS_PER_SAMPLE = 1
static

Definition at line 10 of file DigiCollection.h.