CMS 3D CMS Logo

HcalTriggerPrimitiveSample Class Reference

Date
2007/12/14 08:50:43
Revision
1.7
More...

#include <DataFormats/HcalDigi/interface/HcalTriggerPrimitiveSample.h>

List of all members.

Public Member Functions

int compressedEt () const
 get the encoded/compressed Et
bool fineGrain () const
 get the fine-grain bit
 HcalTriggerPrimitiveSample (int encodedEt, bool finegrain, int slb, int slbchan)
 HcalTriggerPrimitiveSample (uint16_t data)
 HcalTriggerPrimitiveSample ()
uint16_t raw () const
 get the raw word
int slb () const
 get the slb site number
int slbAndChan () const
 get the id channel
int slbChan () const
 get the slb channel number

Private Attributes

uint16_t theSample


Detailed Description

Date
2007/12/14 08:50:43
Revision
1.7

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.

00004 : theSample(0) { }

HcalTriggerPrimitiveSample::HcalTriggerPrimitiveSample ( uint16_t  data  ) 

Definition at line 5 of file HcalTriggerPrimitiveSample.cc.

00005 : theSample(data) { }

HcalTriggerPrimitiveSample::HcalTriggerPrimitiveSample ( int  encodedEt,
bool  finegrain,
int  slb,
int  slbchan 
)

Definition at line 7 of file HcalTriggerPrimitiveSample.cc.

References theSample.

00007                                                                                                           { 
00008   theSample=(((slb)&0x7)<<13)|((slbchan&0x3)<<11)|(encodedEt&0xFF)|
00009     ((fineGrain)?(0x100):(0));
00010 }


Member Function Documentation

int HcalTriggerPrimitiveSample::compressedEt (  )  const [inline]

get the encoded/compressed Et

Definition at line 22 of file HcalTriggerPrimitiveSample.h.

References theSample.

Referenced by HcalLuttoDB::extractOutputLut(), CaloTPGTranscoderULUT::hcaletValue(), operator<<(), HcalTrigPrimMonitor::processEvent(), and HcalTriggerPrimitiveDigi::SOI_compressedEt().

00022 { return theSample&0xFF; }

bool HcalTriggerPrimitiveSample::fineGrain (  )  const [inline]

get the fine-grain bit

Definition at line 24 of file HcalTriggerPrimitiveSample.h.

References theSample.

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

00024 { return (theSample&0x100)!=0; }

uint16_t HcalTriggerPrimitiveSample::raw (  )  const [inline]

get the raw word

Definition at line 20 of file HcalTriggerPrimitiveSample.h.

References theSample.

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

00020 { return theSample; }

int HcalTriggerPrimitiveSample::slb (  )  const [inline]

get the slb site number

Definition at line 26 of file HcalTriggerPrimitiveSample.h.

References theSample.

Referenced by HcalUnpacker::unpack().

00026 { 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 HcalUnpacker::unpack().

00030 { 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 HcalUnpacker::unpack().

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


Member Data Documentation

uint16_t HcalTriggerPrimitiveSample::theSample [private]

Definition at line 33 of file HcalTriggerPrimitiveSample.h.

Referenced by compressedEt(), fineGrain(), HcalTriggerPrimitiveSample(), raw(), slb(), slbAndChan(), and slbChan().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:24:02 2009 for CMSSW by  doxygen 1.5.4