CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
EcalEBPhase2TriggerPrimitiveSample Class Reference

#include <EcalEBPhase2TriggerPrimitiveSample.h>

Public Member Functions

 EcalEBPhase2TriggerPrimitiveSample ()
 
 EcalEBPhase2TriggerPrimitiveSample (uint32_t data)
 
 EcalEBPhase2TriggerPrimitiveSample (int encodedEt)
 
 EcalEBPhase2TriggerPrimitiveSample (int encodedEt, bool isASpike)
 
 EcalEBPhase2TriggerPrimitiveSample (int encodedEt, bool isASpike, int timing)
 
int encodedEt () const
 get the encoded Et (12 bits) More...
 
bool l1aSpike () const
 
uint32_t operator() ()
 for streaming More...
 
uint32_t raw () const
 get the raw word More...
 
void setValue (uint32_t data)
 Set data. More...
 
int time () const
 

Private Attributes

uint32_t theSample_
 

Detailed Description

Author
N. Marinelli - Univ of Notre Dame

Definition at line 12 of file EcalEBPhase2TriggerPrimitiveSample.h.

Constructor & Destructor Documentation

◆ EcalEBPhase2TriggerPrimitiveSample() [1/5]

EcalEBPhase2TriggerPrimitiveSample::EcalEBPhase2TriggerPrimitiveSample ( )

◆ EcalEBPhase2TriggerPrimitiveSample() [2/5]

EcalEBPhase2TriggerPrimitiveSample::EcalEBPhase2TriggerPrimitiveSample ( uint32_t  data)

Definition at line 5 of file EcalEBPhase2TriggerPrimitiveSample.cc.

References theSample_.

5  : theSample_(data) {
6  theSample_ = theSample_ & 0x3ffff;
7 }
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80

◆ EcalEBPhase2TriggerPrimitiveSample() [3/5]

EcalEBPhase2TriggerPrimitiveSample::EcalEBPhase2TriggerPrimitiveSample ( int  encodedEt)

Definition at line 19 of file EcalEBPhase2TriggerPrimitiveSample.cc.

References encodedEt(), and theSample_.

19  {
20  theSample_ = encodedEt & 0xFFF;
21  theSample_ = theSample_ & 0x3ffff;
22 }
int encodedEt() const
get the encoded Et (12 bits)

◆ EcalEBPhase2TriggerPrimitiveSample() [4/5]

EcalEBPhase2TriggerPrimitiveSample::EcalEBPhase2TriggerPrimitiveSample ( int  encodedEt,
bool  isASpike 
)

Definition at line 9 of file EcalEBPhase2TriggerPrimitiveSample.cc.

References encodedEt(), and theSample_.

9  {
10  theSample_ = (encodedEt & 0xFFF) | ((isASpike) ? (0x1000) : (0));
11  theSample_ = theSample_ & 0x3ffff;
12 }
int encodedEt() const
get the encoded Et (12 bits)

◆ EcalEBPhase2TriggerPrimitiveSample() [5/5]

EcalEBPhase2TriggerPrimitiveSample::EcalEBPhase2TriggerPrimitiveSample ( int  encodedEt,
bool  isASpike,
int  timing 
)

Definition at line 14 of file EcalEBPhase2TriggerPrimitiveSample.cc.

References encodedEt(), theSample_, and ecalMatacq_cfi::timing.

14  {
15  theSample_ = (encodedEt & 0xFFF) | ((isASpike) ? (0x1000) : (0)) | timing << 13;
16  theSample_ = theSample_ & 0x3ffff;
17 }
int encodedEt() const
get the encoded Et (12 bits)

Member Function Documentation

◆ encodedEt()

int EcalEBPhase2TriggerPrimitiveSample::encodedEt ( ) const
inline

get the encoded Et (12 bits)

Definition at line 34 of file EcalEBPhase2TriggerPrimitiveSample.h.

References theSample_.

Referenced by EcalEBPhase2TriggerPrimitiveSample(), and operator<<().

34 { return (theSample_ & 0x3ffff) & 0xFFF; }

◆ l1aSpike()

bool EcalEBPhase2TriggerPrimitiveSample::l1aSpike ( ) const
inline

Definition at line 36 of file EcalEBPhase2TriggerPrimitiveSample.h.

References theSample_.

Referenced by operator<<().

36 { return (theSample_ & 0x3ffff & 0x1000) != 0; }

◆ operator()()

uint32_t EcalEBPhase2TriggerPrimitiveSample::operator() ( )
inline

for streaming

Definition at line 41 of file EcalEBPhase2TriggerPrimitiveSample.h.

References theSample_.

◆ raw()

uint32_t EcalEBPhase2TriggerPrimitiveSample::raw ( ) const
inline

get the raw word

Definition at line 31 of file EcalEBPhase2TriggerPrimitiveSample.h.

References theSample_.

◆ setValue()

void EcalEBPhase2TriggerPrimitiveSample::setValue ( uint32_t  data)
inline

Set data.

Definition at line 21 of file EcalEBPhase2TriggerPrimitiveSample.h.

References data, and theSample_.

Referenced by Types._ProxyParameter::__init__().

21 { theSample_ = data; }
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80

◆ time()

int EcalEBPhase2TriggerPrimitiveSample::time ( ) const
inline

Definition at line 38 of file EcalEBPhase2TriggerPrimitiveSample.h.

References theSample_.

Referenced by operator<<().

38 { return (theSample_ & 0x3ffff) >> 13; }

Member Data Documentation

◆ theSample_

uint32_t EcalEBPhase2TriggerPrimitiveSample::theSample_
private