Project
Loading...
Searching...
No Matches
o2::phos::Pedestals Class Reference

#include <Pedestals.h>

Public Member Functions

 Pedestals ()=default
 Constructor.
 
 Pedestals (int test)
 Constructor for tests.
 
Pedestalsoperator= (const Pedestals &other)=default
 
 ~Pedestals ()=default
 Destructor.
 
short getHGPedestal (short cellID) const
 Get pedestal.
 
void setHGPedestal (short cellID, short c)
 Set pedestal.
 
short getLGPedestal (short cellID) const
 Get pedestal.
 
void setLGPedestal (short cellID, short c)
 Set pedestal.
 
bool setHGPedestals (TH1 *h)
 Set pedestals from 1D histogram with cell absId in x axis.
 
bool setLGPedestals (TH1 *h)
 Set pedestals from 1D histogram with cell absId in x axis.
 
float getHGRMS (short cellID) const
 Get pedestal RMS.
 
void setHGRMS (short cellID, float c)
 Set pedestal RMS.
 
float getLGRMS (short cellID) const
 Get pedestal.
 
void setLGRMS (short cellID, float c)
 Set LG pedestal RMS.
 

Detailed Description

Definition at line 33 of file Pedestals.h.

Constructor & Destructor Documentation

◆ Pedestals() [1/2]

o2::phos::Pedestals::Pedestals ( )
default

Constructor.

◆ Pedestals() [2/2]

Pedestals::Pedestals ( int  test)

Constructor for tests.

Definition at line 18 of file Pedestals.cxx.

◆ ~Pedestals()

o2::phos::Pedestals::~Pedestals ( )
default

Destructor.

Member Function Documentation

◆ getHGPedestal()

short o2::phos::Pedestals::getHGPedestal ( short  cellID) const
inline

Get pedestal.

Parameters
cellIDAbsolute ID of cell
Returns
pedestal for the cell

Definition at line 60 of file Pedestals.h.

◆ getHGRMS()

float o2::phos::Pedestals::getHGRMS ( short  cellID) const
inline

Get pedestal RMS.

Parameters
cellIDAbsolute ID of cell
Returns
pedestal RMS for the cell

Definition at line 90 of file Pedestals.h.

◆ getLGPedestal()

short o2::phos::Pedestals::getLGPedestal ( short  cellID) const
inline

Get pedestal.

Parameters
cellIDAbsolute ID of cell
Returns
pedestal for the cell

Definition at line 70 of file Pedestals.h.

◆ getLGRMS()

float o2::phos::Pedestals::getLGRMS ( short  cellID) const
inline

Get pedestal.

Parameters
cellIDAbsolute ID of cell
Returns
pedestal RMS for the LG cell

Definition at line 100 of file Pedestals.h.

◆ operator=()

Pedestals & o2::phos::Pedestals::operator= ( const Pedestals other)
default

◆ setHGPedestal()

void o2::phos::Pedestals::setHGPedestal ( short  cellID,
short  c 
)
inline

Set pedestal.

Parameters
cellIDAbsolute ID of cell
cis the pedestal (expected to be in range <254)

Definition at line 65 of file Pedestals.h.

◆ setHGPedestals()

bool Pedestals::setHGPedestals ( TH1 *  h)

Set pedestals from 1D histogram with cell absId in x axis.

Parameters
1D(NCHANNELS)histogram with calibration coefficients
Returns
Is successful

Definition at line 25 of file Pedestals.cxx.

◆ setHGRMS()

void o2::phos::Pedestals::setHGRMS ( short  cellID,
float  c 
)
inline

Set pedestal RMS.

Parameters
cellIDAbsolute ID of cell
cis the pedestal RMS (expected to be in range 0..5, larger values=bad channel=overflow)

Definition at line 95 of file Pedestals.h.

◆ setLGPedestal()

void o2::phos::Pedestals::setLGPedestal ( short  cellID,
short  c 
)
inline

Set pedestal.

Parameters
cellIDAbsolute ID of cell
cis the pedestal (expected to be in range <254)

Definition at line 75 of file Pedestals.h.

◆ setLGPedestals()

bool Pedestals::setLGPedestals ( TH1 *  h)

Set pedestals from 1D histogram with cell absId in x axis.

Parameters
1D(NCHANNELS)histogram with calibration coefficients
Returns
Is successful

Definition at line 47 of file Pedestals.cxx.

◆ setLGRMS()

void o2::phos::Pedestals::setLGRMS ( short  cellID,
float  c 
)
inline

Set LG pedestal RMS.

Parameters
cellIDAbsolute ID of cell
cis the pedestal RMS (expected to be in range 0..5, larger values=bad channel=overflow)

Definition at line 105 of file Pedestals.h.


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