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

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); }
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; }
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

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

Definition at line 12 of file DigiCollection.h.

Referenced by HcalDigisProducerGPU::acquire().

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

Definition at line 11 of file DigiCollection.h.

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

Definition at line 10 of file DigiCollection.h.