Belle II Software  release-08-01-10
CDCADCDeltaPedestals Class Reference

Database object for ADC pedestals. More...

#include <CDCADCDeltaPedestals.h>

Inheritance diagram for CDCADCDeltaPedestals:
Collaboration diagram for CDCADCDeltaPedestals:

Public Member Functions

 CDCADCDeltaPedestals ()
 Default constructor.
 
void setSamplingWindow (unsigned short sample)
 Set time window for sampling. More...
 
void setPedestal (int board, int ch, float pedestal)
 Set ADC pedestals in the list. More...
 
unsigned short getEntries () const
 Get the no. More...
 
std::map< unsigned short, float > getPedestals () const
 Get the whole list.
 
float getPedestal (const unsigned short &board, const unsigned short &ch) const
 Get ADC pedestal for the specified board. More...
 
void dump () const
 Print out all contents.
 

Private Member Functions

 ClassDef (CDCADCDeltaPedestals, 1)
 ClassDef.
 

Private Attributes

std::map< unsigned short, float > m_pedestals
 ADC pedestal list.
 
unsigned short m_samplingWindow = 10
 ADC sampling window.
 

Detailed Description

Database object for ADC pedestals.

Definition at line 23 of file CDCADCDeltaPedestals.h.

Member Function Documentation

◆ getEntries()

unsigned short getEntries ( ) const
inline

Get the no.

of entries in the list.

Definition at line 59 of file CDCADCDeltaPedestals.h.

60  {
61  return m_pedestals.size();
62  }
std::map< unsigned short, float > m_pedestals
ADC pedestal list.

◆ getPedestal()

float getPedestal ( const unsigned short &  board,
const unsigned short &  ch 
) const
inline

Get ADC pedestal for the specified board.

Parameters
boardBoard id.
chChannel id.
Returns
pedestal for the board (and channel).

Definition at line 78 of file CDCADCDeltaPedestals.h.

◆ setPedestal()

void setPedestal ( int  board,
int  ch,
float  pedestal 
)
inline

Set ADC pedestals in the list.

Parameters
boardBoard id
chChannel id
pedestalPedestal value

Definition at line 47 of file CDCADCDeltaPedestals.h.

◆ setSamplingWindow()

void setSamplingWindow ( unsigned short  sample)
inline

Set time window for sampling.

Parameters
sample

Definition at line 36 of file CDCADCDeltaPedestals.h.


The documentation for this class was generated from the following file: