CMS 3D CMS Logo

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

#include <HcalTriggerPrimitiveSample.h>

Public Member Functions

int compressedEt () const
 get the encoded/compressed Et More...
 
bool fineGrain (int i=0) const
 get fine-grain bit (traditional) More...
 
 HcalTriggerPrimitiveSample ()
 
 HcalTriggerPrimitiveSample (uint16_t data)
 
 HcalTriggerPrimitiveSample (int encodedEt, bool finegrain, int slb, int slbchan)
 
 HcalTriggerPrimitiveSample (int encodedEt, int finegrainExtended)
 
uint16_t raw () const
 get the raw word More...
 

Private Attributes

uint16_t theSample
 

Detailed Description

Author
J. Mans - Minnesota

Definition at line 11 of file HcalTriggerPrimitiveSample.h.

Constructor & Destructor Documentation

HcalTriggerPrimitiveSample::HcalTriggerPrimitiveSample ( )

Definition at line 3 of file HcalTriggerPrimitiveSample.cc.

HcalTriggerPrimitiveSample::HcalTriggerPrimitiveSample ( uint16_t  data)

Definition at line 4 of file HcalTriggerPrimitiveSample.cc.

4 : theSample(data) {}
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
HcalTriggerPrimitiveSample::HcalTriggerPrimitiveSample ( int  encodedEt,
bool  finegrain,
int  slb,
int  slbchan 
)

Definition at line 6 of file HcalTriggerPrimitiveSample.cc.

References fineGrain(), slb(), and theSample.

6  {
7  theSample = (((slb)&0x7) << 13) | ((slbchan & 0x3) << 11) | (encodedEt & 0xFF) | ((fineGrain) ? (0x100) : (0));
8 }
bool fineGrain(int i=0) const
get fine-grain bit (traditional)
static int slb(const HcalTriggerPrimitiveSample &theSample)
HcalTriggerPrimitiveSample::HcalTriggerPrimitiveSample ( int  encodedEt,
int  finegrainExtended 
)

Definition at line 10 of file HcalTriggerPrimitiveSample.cc.

References theSample.

10  {
11  theSample = (encodedEt & 0xFF) | ((fineGrainExt & 0x3F) << 8);
12 }

Member Function Documentation

int HcalTriggerPrimitiveSample::compressedEt ( ) const
inline
bool HcalTriggerPrimitiveSample::fineGrain ( int  i = 0) const
inline
uint16_t HcalTriggerPrimitiveSample::raw ( ) const
inline

Member Data Documentation

uint16_t HcalTriggerPrimitiveSample::theSample
private