CMS 3D CMS Logo

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

#include <EcalEBTriggerPrimitiveSample.h>

Public Member Functions

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

Private Attributes

uint16_t theSample
 

Detailed Description

Author
N. Marinelli - Univ of Notre Dame

Definition at line 14 of file EcalEBTriggerPrimitiveSample.h.

Constructor & Destructor Documentation

EcalEBTriggerPrimitiveSample::EcalEBTriggerPrimitiveSample ( )
EcalEBTriggerPrimitiveSample::EcalEBTriggerPrimitiveSample ( uint16_t  data)

Definition at line 6 of file EcalEBTriggerPrimitiveSample.cc.

6 : theSample(data) { }
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
EcalEBTriggerPrimitiveSample::EcalEBTriggerPrimitiveSample ( int  encodedEt)

Definition at line 18 of file EcalEBTriggerPrimitiveSample.cc.

References theSample.

18  {
19  theSample=encodedEt&0x3FF;
20 }
int encodedEt() const
get the encoded Et (10 bits)
EcalEBTriggerPrimitiveSample::EcalEBTriggerPrimitiveSample ( int  encodedEt,
bool  isASpike 
)

Definition at line 8 of file EcalEBTriggerPrimitiveSample.cc.

References theSample.

8  {
9  theSample=(encodedEt&0x3FF)| ((isASpike)?(0x400):(0));
10 }
int encodedEt() const
get the encoded Et (10 bits)
EcalEBTriggerPrimitiveSample::EcalEBTriggerPrimitiveSample ( int  encodedEt,
bool  isASpike,
int  timing 
)

Definition at line 13 of file EcalEBTriggerPrimitiveSample.cc.

References theSample.

13  {
14  theSample=(encodedEt&0x3FF)| ((isASpike)?(0x400):(0)) | timing<<11;
15 }
int encodedEt() const
get the encoded Et (10 bits)

Member Function Documentation

int EcalEBTriggerPrimitiveSample::encodedEt ( ) const
inline

get the encoded Et (10 bits)

Definition at line 37 of file EcalEBTriggerPrimitiveSample.h.

References theSample.

Referenced by operator<<().

37 { return theSample&0x3FF; }
bool EcalEBTriggerPrimitiveSample::l1aSpike ( ) const
inline

Definition at line 39 of file EcalEBTriggerPrimitiveSample.h.

References theSample.

Referenced by operator<<().

39 { return (theSample&0x400)!=0; }
uint16_t EcalEBTriggerPrimitiveSample::operator() ( )
inline

for streaming

Definition at line 44 of file EcalEBTriggerPrimitiveSample.h.

References theSample.

uint16_t EcalEBTriggerPrimitiveSample::raw ( ) const
inline

get the raw word

Definition at line 34 of file EcalEBTriggerPrimitiveSample.h.

References theSample.

void EcalEBTriggerPrimitiveSample::setValue ( uint16_t  data)
inline
int EcalEBTriggerPrimitiveSample::time ( ) const
inline

Definition at line 41 of file EcalEBTriggerPrimitiveSample.h.

References theSample.

Referenced by operator<<().

Member Data Documentation

uint16_t EcalEBTriggerPrimitiveSample::theSample
private