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

#include <Pedestals.h>

Public Member Functions

 Pedestals ()=default
 Constructor.
 
 Pedestals (int test)
 Constructor for tests.
 
 ~Pedestals ()=default
 Destructor.
 
short getPedestal (short cellID) const
 Get pedestal.
 
float getPedSigma (short cellID) const
 
void setPedestal (short cellID, short c)
 Set pedestal.
 
void setPedSigma (short cellID, float c)
 
bool setPedestals (TH1 *h)
 Set pedestals from 1D histogram with cell absId in x axis.
 
bool setPedSigmas (TH1F *h)
 

Detailed Description

Definition at line 34 of file Pedestals.h.

Constructor & Destructor Documentation

◆ Pedestals() [1/2]

o2::cpv::Pedestals::Pedestals ( )
default

Constructor.

◆ Pedestals() [2/2]

Pedestals::Pedestals ( int  test)

Constructor for tests.

Definition at line 19 of file Pedestals.cxx.

◆ ~Pedestals()

o2::cpv::Pedestals::~Pedestals ( )
default

Destructor.

Member Function Documentation

◆ getPedestal()

short o2::cpv::Pedestals::getPedestal ( short  cellID) const
inline

Get pedestal.

Parameters
cellIDAbsolute ID of cell
Returns
pedestal for the cell

Definition at line 49 of file Pedestals.h.

◆ getPedSigma()

float o2::cpv::Pedestals::getPedSigma ( short  cellID) const
inline

Definition at line 50 of file Pedestals.h.

◆ setPedestal()

void o2::cpv::Pedestals::setPedestal ( short  cellID,
short  c 
)
inline

Set pedestal.

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

Definition at line 55 of file Pedestals.h.

◆ setPedestals()

bool Pedestals::setPedestals ( 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 26 of file Pedestals.cxx.

◆ setPedSigma()

void o2::cpv::Pedestals::setPedSigma ( short  cellID,
float  c 
)
inline

Definition at line 61 of file Pedestals.h.

◆ setPedSigmas()

bool Pedestals::setPedSigmas ( TH1F *  h)

Definition at line 50 of file Pedestals.cxx.


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