CMS 3D CMS Logo

EcalPseudoStripInputSample Class Reference

$Id : $ More...

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

List of all members.

Public Member Functions

 EcalPseudoStripInputSample (int pseudoStripInput, bool finegrain)
 EcalPseudoStripInputSample (uint16_t data)
 EcalPseudoStripInputSample ()
bool fineGrain () const
 get the fine-grain bit (1 bit, the 13-th)
uint16_t operator() ()
 for streaming
int pseudoStripInput () const
 get the pseudoStrip Input amplitude (12 bits)
uint16_t raw () const
 get the raw word
void setValue (uint16_t data)
 Set data.

Private Attributes

uint16_t theSample


Detailed Description

$Id : $

Definition at line 15 of file EcalPseudoStripInputSample.h.


Constructor & Destructor Documentation

EcalPseudoStripInputSample::EcalPseudoStripInputSample (  ) 

Definition at line 4 of file EcalPseudoStripInputSample.cc.

00004 : theSample(0) { }

EcalPseudoStripInputSample::EcalPseudoStripInputSample ( uint16_t  data  ) 

Definition at line 5 of file EcalPseudoStripInputSample.cc.

00005 : theSample(data) { }

EcalPseudoStripInputSample::EcalPseudoStripInputSample ( int  pseudoStripInput,
bool  finegrain 
)

Definition at line 7 of file EcalPseudoStripInputSample.cc.

References theSample.

00007                                                                                            { 
00008     theSample=(pseudoStripInput&0xFFF)|((fineGrain)?(0x1000):(0));
00009 }


Member Function Documentation

bool EcalPseudoStripInputSample::fineGrain (  )  const [inline]

get the fine-grain bit (1 bit, the 13-th)

Definition at line 28 of file EcalPseudoStripInputSample.h.

References theSample.

Referenced by operator<<().

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

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

for streaming

Definition at line 31 of file EcalPseudoStripInputSample.h.

References theSample.

00031 { return theSample; }

int EcalPseudoStripInputSample::pseudoStripInput (  )  const [inline]

get the pseudoStrip Input amplitude (12 bits)

Definition at line 26 of file EcalPseudoStripInputSample.h.

References theSample.

Referenced by operator<<().

00026 { return theSample&0xFFF; }

uint16_t EcalPseudoStripInputSample::raw (  )  const [inline]

get the raw word

Definition at line 24 of file EcalPseudoStripInputSample.h.

References theSample.

00024 { return theSample; }

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

Set data.

Definition at line 22 of file EcalPseudoStripInputSample.h.

References theSample.

00022 { theSample = data;}


Member Data Documentation

uint16_t EcalPseudoStripInputSample::theSample [private]

Definition at line 34 of file EcalPseudoStripInputSample.h.

Referenced by EcalPseudoStripInputSample(), fineGrain(), operator()(), pseudoStripInput(), raw(), and setValue().


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