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 () const
 get the fine-grain bit More...
 
 HcalTriggerPrimitiveSample ()
 
 HcalTriggerPrimitiveSample (uint16_t data)
 
 HcalTriggerPrimitiveSample (int encodedEt, bool finegrain, int slb, int slbchan)
 
uint16_t raw () const
 get the raw word More...
 
int slb () const
 get the slb site number More...
 
int slbAndChan () const
 get the id channel More...
 
int slbChan () const
 get the slb channel number More...
 

Private Attributes

uint16_t theSample
 

Detailed Description

Date:
2007/05/05 19:03:28
Revision:
1.6
Author
J. Mans - Minnesota

Definition at line 13 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 }
int slb() const
get the slb site number
bool fineGrain() const
get the fine-grain bit

Member Function Documentation

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

get the raw word

Definition at line 20 of file HcalTriggerPrimitiveSample.h.

References theSample.

Referenced by isTPGSOI(), operator<<(), HcalPacker::pack(), CastorUnpacker::unpack(), and HcalUnpacker::unpack().

int HcalTriggerPrimitiveSample::slb ( ) const
inline

get the slb site number

Definition at line 26 of file HcalTriggerPrimitiveSample.h.

References theSample.

Referenced by HcalTriggerPrimitiveSample(), CastorUnpacker::unpack(), and HcalUnpacker::unpack().

26 { return ((theSample>>13)&0x7); }
int HcalTriggerPrimitiveSample::slbAndChan ( ) const
inline

get the id channel

Definition at line 30 of file HcalTriggerPrimitiveSample.h.

References theSample.

Referenced by CastorUnpacker::unpack(), and HcalUnpacker::unpack().

30 { return (theSample>>11)&0x1F; }
int HcalTriggerPrimitiveSample::slbChan ( ) const
inline

get the slb channel number

Definition at line 28 of file HcalTriggerPrimitiveSample.h.

References theSample.

Referenced by CastorUnpacker::unpack(), and HcalUnpacker::unpack().

28 { return (theSample>>11)&0x3; }

Member Data Documentation

uint16_t HcalTriggerPrimitiveSample::theSample
private