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 4 of file HcalTriggerPrimitiveSample.cc.

HcalTriggerPrimitiveSample::HcalTriggerPrimitiveSample ( uint16_t  data)

Definition at line 5 of file HcalTriggerPrimitiveSample.cc.

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

Definition at line 7 of file HcalTriggerPrimitiveSample.cc.

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

7  {
8  theSample=(((slb)&0x7)<<13)|((slbchan&0x3)<<11)|(encodedEt&0xFF)|
9  ((fineGrain)?(0x100):(0));
10 }
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 12 of file HcalTriggerPrimitiveSample.cc.

References theSample.

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

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