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

#include <CalibParams.h>

Public Member Functions

 CalibParams ()=default
 Constructor.
 
 CalibParams (int test)
 Constructor for tests.
 
 CalibParams (CalibParams &a)=default
 Constructor for tests.
 
CalibParamsoperator= (const CalibParams &other)=default
 
 ~CalibParams ()=default
 Destructor.
 
float getGain (short cellID) const
 Get High Gain energy calibration coefficients.
 
void setGain (short cellID, float c)
 Set High Gain energy calibration coefficient.
 
bool setGain (TH2 *h, char module)
 Set High Gain energy calibration coefficients for one module in the form of 2D histogram.
 
float getHGLGRatio (short cellID) const
 Get High Gain to Low Gain ratio calibration coefficients.
 
void setHGLGRatio (short cellID, float r)
 Set High Gain to Low Gain ratio.
 
bool setHGLGRatio (TH2 *h, char module)
 Set High Gain to Low Gain ratio for one module in the form of 2D histogram.
 
float getHGTimeCalib (short cellID) const
 Get High Gain time calibration coefficients.
 
void setHGTimeCalib (short cellID, float t)
 Set High Gain time calibration coefficient.
 
bool setHGTimeCalib (TH2 *h, char module)
 Set High Gain time calibration coefficients for one module in the form of 2D histogram.
 
float getLGTimeCalib (short cellID) const
 Get Low Gain time calibration coefficient.
 
void setLGTimeCalib (short cellID, float t)
 Set time calibration coefficient.
 
bool setLGTimeCalib (TH2 *h, char module)
 Set Low Gain time calibration coefficients for one module in the form of 2D histogram.
 

Detailed Description

Definition at line 33 of file CalibParams.h.

Constructor & Destructor Documentation

◆ CalibParams() [1/3]

o2::phos::CalibParams::CalibParams ( )
default

Constructor.

◆ CalibParams() [2/3]

CalibParams::CalibParams ( int  test)

Constructor for tests.

Definition at line 23 of file CalibParams.cxx.

◆ CalibParams() [3/3]

o2::phos::CalibParams::CalibParams ( CalibParams a)
default

Constructor for tests.

◆ ~CalibParams()

o2::phos::CalibParams::~CalibParams ( )
default

Destructor.

Member Function Documentation

◆ getGain()

float o2::phos::CalibParams::getGain ( short  cellID) const
inline

Get High Gain energy calibration coefficients.

Parameters
cellIDAbsolute ID of cell
Returns
high gain energy calibration coefficient of the cell

Definition at line 53 of file CalibParams.h.

◆ getHGLGRatio()

float o2::phos::CalibParams::getHGLGRatio ( short  cellID) const
inline

Get High Gain to Low Gain ratio calibration coefficients.

Parameters
cellIDAbsolute ID of cell
Returns
High Gain to Low Gain ratio of the cell

Definition at line 69 of file CalibParams.h.

◆ getHGTimeCalib()

float o2::phos::CalibParams::getHGTimeCalib ( short  cellID) const
inline

Get High Gain time calibration coefficients.

Parameters
cellIDAbsolute ID of cell
Returns
high gain time calibration coefficient of the cell

Definition at line 85 of file CalibParams.h.

◆ getLGTimeCalib()

float o2::phos::CalibParams::getLGTimeCalib ( short  cellID) const
inline

Get Low Gain time calibration coefficient.

Parameters
cellIDAbsolute ID of cell
Returns
low gain time calibration coefficient of the cell

Definition at line 101 of file CalibParams.h.

◆ operator=()

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

◆ setGain() [1/2]

void o2::phos::CalibParams::setGain ( short  cellID,
float  c 
)
inline

Set High Gain energy calibration coefficient.

Parameters
cellIDAbsolute ID of cell
cis the calibration coefficient

Definition at line 58 of file CalibParams.h.

◆ setGain() [2/2]

bool CalibParams::setGain ( TH2 *  h,
char  module 
)

Set High Gain energy calibration coefficients for one module in the form of 2D histogram.

Parameters
2D(64,56)histogram with calibration coefficients
modulenumber
Returns
Is successful

Definition at line 32 of file CalibParams.cxx.

◆ setHGLGRatio() [1/2]

void o2::phos::CalibParams::setHGLGRatio ( short  cellID,
float  r 
)
inline

Set High Gain to Low Gain ratio.

Parameters
cellIDAbsolute ID of cell
ris the calibration coefficient

Definition at line 74 of file CalibParams.h.

◆ setHGLGRatio() [2/2]

bool CalibParams::setHGLGRatio ( TH2 *  h,
char  module 
)

Set High Gain to Low Gain ratio for one module in the form of 2D histogram.

Parameters
2D(64,56)histogram with High Gain to Low Gain ratio
modulenumber
Returns
Is successful

Definition at line 69 of file CalibParams.cxx.

◆ setHGTimeCalib() [1/2]

void o2::phos::CalibParams::setHGTimeCalib ( short  cellID,
float  t 
)
inline

Set High Gain time calibration coefficient.

Parameters
cellIDAbsolute ID of cell
tis the calibration coefficient

Definition at line 90 of file CalibParams.h.

◆ setHGTimeCalib() [2/2]

bool CalibParams::setHGTimeCalib ( TH2 *  h,
char  module 
)

Set High Gain time calibration coefficients for one module in the form of 2D histogram.

Parameters
2D(64,56)histogram with calibration coefficients
modulenumber
Returns
Is successful

Definition at line 105 of file CalibParams.cxx.

◆ setLGTimeCalib() [1/2]

void o2::phos::CalibParams::setLGTimeCalib ( short  cellID,
float  t 
)
inline

Set time calibration coefficient.

Parameters
cellIDAbsolute ID of cell
tis the calibration coefficient

Definition at line 106 of file CalibParams.h.

◆ setLGTimeCalib() [2/2]

bool CalibParams::setLGTimeCalib ( TH2 *  h,
char  module 
)

Set Low Gain time calibration coefficients for one module in the form of 2D histogram.

Parameters
2D(64,56)histogram with calibration coefficients
modulenumber
Returns
Is successful

Definition at line 141 of file CalibParams.cxx.


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