CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
EcalPseudoStripInputSample Class Reference

#include <EcalPseudoStripInputSample.h>

Public Member Functions

 EcalPseudoStripInputSample ()
 
 EcalPseudoStripInputSample (int pseudoStripInput, bool finegrain)
 
 EcalPseudoStripInputSample (uint16_t data)
 
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() [1/3]

EcalPseudoStripInputSample::EcalPseudoStripInputSample ( )

Definition at line 3 of file EcalPseudoStripInputSample.cc.

3 : theSample(0) {}

◆ EcalPseudoStripInputSample() [2/3]

EcalPseudoStripInputSample::EcalPseudoStripInputSample ( uint16_t  data)

Definition at line 4 of file EcalPseudoStripInputSample.cc.

4 : theSample(data) {}

◆ EcalPseudoStripInputSample() [3/3]

EcalPseudoStripInputSample::EcalPseudoStripInputSample ( int  pseudoStripInput,
bool  finegrain 
)

Definition at line 6 of file EcalPseudoStripInputSample.cc.

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

References fineGrain(), pseudoStripInput(), and theSample.

Member Function Documentation

◆ fineGrain()

bool EcalPseudoStripInputSample::fineGrain ( ) const
inline

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

Definition at line 25 of file EcalPseudoStripInputSample.h.

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

References theSample.

Referenced by EcalPseudoStripInputSample(), and operator<<().

◆ operator()()

uint16_t EcalPseudoStripInputSample::operator() ( )
inline

for streaming

Definition at line 28 of file EcalPseudoStripInputSample.h.

28 { return theSample; }

References theSample.

◆ pseudoStripInput()

int EcalPseudoStripInputSample::pseudoStripInput ( ) const
inline

get the pseudoStrip Input amplitude (12 bits)

Definition at line 23 of file EcalPseudoStripInputSample.h.

23 { return theSample & 0xFFF; }

References theSample.

Referenced by EcalPseudoStripInputSample(), and operator<<().

◆ raw()

uint16_t EcalPseudoStripInputSample::raw ( ) const
inline

get the raw word

Definition at line 21 of file EcalPseudoStripInputSample.h.

21 { return theSample; }

References theSample.

◆ setValue()

void EcalPseudoStripInputSample::setValue ( uint16_t  data)
inline

Set data.

Definition at line 19 of file EcalPseudoStripInputSample.h.

19 { theSample = data; }

References data, and theSample.

Member Data Documentation

◆ theSample

uint16_t EcalPseudoStripInputSample::theSample
private
EcalPseudoStripInputSample::pseudoStripInput
int pseudoStripInput() const
get the pseudoStrip Input amplitude (12 bits)
Definition: EcalPseudoStripInputSample.h:23
EcalPseudoStripInputSample::theSample
uint16_t theSample
Definition: EcalPseudoStripInputSample.h:31
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
EcalPseudoStripInputSample::fineGrain
bool fineGrain() const
get the fine-grain bit (1 bit, the 13-th)
Definition: EcalPseudoStripInputSample.h:25