CMS 3D CMS Logo

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 12 of file EcalPseudoStripInputSample.h.

Constructor & Destructor Documentation

EcalPseudoStripInputSample::EcalPseudoStripInputSample ( )

Definition at line 3 of file EcalPseudoStripInputSample.cc.

EcalPseudoStripInputSample::EcalPseudoStripInputSample ( uint16_t  data)

Definition at line 4 of file EcalPseudoStripInputSample.cc.

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

Definition at line 6 of file EcalPseudoStripInputSample.cc.

References theSample.

6  {
7  theSample = (pseudoStripInput & 0xFFF) | ((fineGrain) ? (0x1000) : (0));
8 }
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 25 of file EcalPseudoStripInputSample.h.

References theSample.

Referenced by operator<<().

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

for streaming

Definition at line 28 of file EcalPseudoStripInputSample.h.

References theSample.

int EcalPseudoStripInputSample::pseudoStripInput ( ) const
inline

get the pseudoStrip Input amplitude (12 bits)

Definition at line 23 of file EcalPseudoStripInputSample.h.

References theSample.

Referenced by operator<<().

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

get the raw word

Definition at line 21 of file EcalPseudoStripInputSample.h.

References theSample.

void EcalPseudoStripInputSample::setValue ( uint16_t  data)
inline

Member Data Documentation

uint16_t EcalPseudoStripInputSample::theSample
private