CMS 3D CMS Logo

Public Member Functions | Private Attributes

EcalPseudoStripInputSample Class Reference

#include <EcalPseudoStripInputSample.h>

List of all members.

Public Member Functions

 EcalPseudoStripInputSample ()
 EcalPseudoStripInputSample (uint16_t data)
 EcalPseudoStripInputSample (int pseudoStripInput, bool finegrain)
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.

: theSample(0) { }
EcalPseudoStripInputSample::EcalPseudoStripInputSample ( uint16_t  data)

Definition at line 5 of file EcalPseudoStripInputSample.cc.

: theSample(data) { }
EcalPseudoStripInputSample::EcalPseudoStripInputSample ( int  pseudoStripInput,
bool  finegrain 
)

Definition at line 7 of file EcalPseudoStripInputSample.cc.

References theSample.

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

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<<().

{ return (theSample&0x1000)!=0; }
uint16_t EcalPseudoStripInputSample::operator() ( ) [inline]

for streaming

Definition at line 31 of file EcalPseudoStripInputSample.h.

References theSample.

{ 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<<().

{ return theSample&0xFFF; }
uint16_t EcalPseudoStripInputSample::raw ( ) const [inline]

get the raw word

Definition at line 24 of file EcalPseudoStripInputSample.h.

References theSample.

{ return theSample; }
void EcalPseudoStripInputSample::setValue ( uint16_t  data) [inline]

Set data.

Definition at line 22 of file EcalPseudoStripInputSample.h.

References runTheMatrix::data, and theSample.


Member Data Documentation