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() [1/3]

EcalPseudoStripInputSample::EcalPseudoStripInputSample ( )

Definition at line 3 of file EcalPseudoStripInputSample.cc.

◆ EcalPseudoStripInputSample() [2/3]

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:80

◆ EcalPseudoStripInputSample() [3/3]

EcalPseudoStripInputSample::EcalPseudoStripInputSample ( int  pseudoStripInput,
bool  finegrain 
)

Definition at line 6 of file EcalPseudoStripInputSample.cc.

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

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

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.

References theSample.

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

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

◆ operator()()

uint16_t EcalPseudoStripInputSample::operator() ( )
inline

for streaming

Definition at line 28 of file EcalPseudoStripInputSample.h.

References theSample.

◆ pseudoStripInput()

int EcalPseudoStripInputSample::pseudoStripInput ( ) const
inline

get the pseudoStrip Input amplitude (12 bits)

Definition at line 23 of file EcalPseudoStripInputSample.h.

References theSample.

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

23 { return theSample & 0xFFF; }

◆ raw()

uint16_t EcalPseudoStripInputSample::raw ( ) const
inline

get the raw word

Definition at line 21 of file EcalPseudoStripInputSample.h.

References theSample.

◆ setValue()

void EcalPseudoStripInputSample::setValue ( uint16_t  data)
inline

Set data.

Definition at line 19 of file EcalPseudoStripInputSample.h.

References data, and theSample.

Referenced by Types._ProxyParameter::__init__().

19 { theSample = data; }
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80

Member Data Documentation

◆ theSample

uint16_t EcalPseudoStripInputSample::theSample
private