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
EcalPseudoStripInputSample Class Reference

#include <EcalPseudoStripInputSample.h>

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) More...
 
uint16_t operator() ()
 for streaming More...
 
int pseudoStripInput () const
 get the pseudoStrip Input amplitude (12 bits) More...
 
uint16_t raw () const
 get the raw word More...
 
void setValue (uint16_t data)
 Set data. More...
 

Private Attributes

uint16_t theSample
 

Detailed Description

Definition at line 14 of file EcalPseudoStripInputSample.h.

Constructor & Destructor Documentation

EcalPseudoStripInputSample::EcalPseudoStripInputSample ( )

Definition at line 4 of file EcalPseudoStripInputSample.cc.

EcalPseudoStripInputSample::EcalPseudoStripInputSample ( uint16_t  data)

Definition at line 5 of file EcalPseudoStripInputSample.cc.

5 : theSample(data) { }
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
EcalPseudoStripInputSample::EcalPseudoStripInputSample ( int  pseudoStripInput,
bool  finegrain 
)

Definition at line 7 of file EcalPseudoStripInputSample.cc.

References theSample.

7  {
8  theSample=(pseudoStripInput&0xFFF)|((fineGrain)?(0x1000):(0));
9 }
bool fineGrain() const
get the fine-grain bit (1 bit, the 13-th)
int pseudoStripInput() const
get the pseudoStrip Input amplitude (12 bits)

Member Function Documentation

bool EcalPseudoStripInputSample::fineGrain ( ) const
inline

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

Definition at line 27 of file EcalPseudoStripInputSample.h.

References theSample.

Referenced by operator<<().

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

for streaming

Definition at line 30 of file EcalPseudoStripInputSample.h.

References theSample.

int EcalPseudoStripInputSample::pseudoStripInput ( ) const
inline

get the pseudoStrip Input amplitude (12 bits)

Definition at line 25 of file EcalPseudoStripInputSample.h.

References theSample.

Referenced by operator<<().

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

get the raw word

Definition at line 23 of file EcalPseudoStripInputSample.h.

References theSample.

void EcalPseudoStripInputSample::setValue ( uint16_t  data)
inline

Member Data Documentation

uint16_t EcalPseudoStripInputSample::theSample
private