CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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)
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

get fine-grain bit (traditional)

Definition at line 23 of file HcalTriggerPrimitiveSample.h.

References i, and theSample.

Referenced by HcalTriggerPrimitiveSample(), operator<<(), CastorTriggerPrimitiveDigi::SOI_fineGrain(), and HcalTriggerPrimitiveDigi::SOI_fineGrain().

23 { return (((theSample)>>(i+8))&0x1)!=0; }
int i
Definition: DBlmapReader.cc:9
uint16_t HcalTriggerPrimitiveSample::raw ( ) const
inline

Member Data Documentation

uint16_t HcalTriggerPrimitiveSample::theSample
private