CMS 3D CMS Logo

EcalTriggerPrimitiveSample Class Reference

$Id : $ More...

#include <DataFormats/EcalDigi/interface/EcalTriggerPrimitiveSample.h>

List of all members.

Public Member Functions

int compressedEt () const
 get the encoded/compressed Et (8 bits)
 EcalTriggerPrimitiveSample (int encodedEt, bool finegrain, int triggerFlag)
 EcalTriggerPrimitiveSample (uint16_t data)
 EcalTriggerPrimitiveSample ()
bool fineGrain () const
 get the fine-grain bit (1 bit)
uint16_t operator() ()
 for streaming
uint16_t raw () const
 get the raw word
void setValue (uint16_t data)
 Set data.
int ttFlag () const
 get the Trigger tower Flag (3 bits)

Private Attributes

uint16_t theSample


Detailed Description

$Id : $

Definition at line 15 of file EcalTriggerPrimitiveSample.h.


Constructor & Destructor Documentation

EcalTriggerPrimitiveSample::EcalTriggerPrimitiveSample (  ) 

Definition at line 5 of file EcalTriggerPrimitiveSample.cc.

00005 : theSample(0) { }

EcalTriggerPrimitiveSample::EcalTriggerPrimitiveSample ( uint16_t  data  ) 

Definition at line 6 of file EcalTriggerPrimitiveSample.cc.

00006 : theSample(data) { }

EcalTriggerPrimitiveSample::EcalTriggerPrimitiveSample ( int  encodedEt,
bool  finegrain,
int  triggerFlag 
)

Definition at line 8 of file EcalTriggerPrimitiveSample.cc.

References theSample.

00008                                                                                                 { 
00009   theSample=((ttFlag&0x7)<<9)|(encodedEt&0xFF)|
00010     ((fineGrain)?(0x100):(0));
00011 }


Member Function Documentation

int EcalTriggerPrimitiveSample::compressedEt (  )  const [inline]

get the encoded/compressed Et (8 bits)

Definition at line 26 of file EcalTriggerPrimitiveSample.h.

References theSample.

Referenced by operator<<().

00026 { return theSample&0xFF; }

bool EcalTriggerPrimitiveSample::fineGrain (  )  const [inline]

get the fine-grain bit (1 bit)

Definition at line 28 of file EcalTriggerPrimitiveSample.h.

References theSample.

Referenced by operator<<().

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

uint16_t EcalTriggerPrimitiveSample::operator() (  )  [inline]

for streaming

Definition at line 33 of file EcalTriggerPrimitiveSample.h.

References theSample.

00033 { return theSample; }

uint16_t EcalTriggerPrimitiveSample::raw (  )  const [inline]

get the raw word

Definition at line 24 of file EcalTriggerPrimitiveSample.h.

References theSample.

Referenced by L1EmulBias::ModifyCollection().

00024 { return theSample; }

void EcalTriggerPrimitiveSample::setValue ( uint16_t  data  )  [inline]

Set data.

Definition at line 22 of file EcalTriggerPrimitiveSample.h.

References theSample.

00022 { theSample = data;}

int EcalTriggerPrimitiveSample::ttFlag (  )  const [inline]

get the Trigger tower Flag (3 bits)

Definition at line 30 of file EcalTriggerPrimitiveSample.h.

References theSample.

Referenced by operator<<().

00030 { return (theSample>>9)&0x7; }


Member Data Documentation

uint16_t EcalTriggerPrimitiveSample::theSample [private]

Definition at line 36 of file EcalTriggerPrimitiveSample.h.

Referenced by compressedEt(), EcalTriggerPrimitiveSample(), fineGrain(), operator()(), raw(), setValue(), and ttFlag().


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