Project
Loading...
Searching...
No Matches
o2::emcal::EMCALChannelScaleFactors Class Reference

#include <EMCALChannelScaleFactors.h>

Public Member Functions

void insertVal (unsigned int cellID, float E_min, float E_max, float scale)
 
float getScaleVal (unsigned int cellID, float E) const
 

Detailed Description

Definition at line 130 of file EMCALChannelScaleFactors.h.

Member Function Documentation

◆ getScaleVal()

float EMCALChannelScaleFactors::getScaleVal ( unsigned int  cellID,
float  E 
) const

Get the scale factor for a given cell and energy

Parameters
cellThe cell number
EThe energy
Returns
The scale factor
Exceptions
CalibContainerIndexExceptionin case the cell ID exceeds the range of cells in EMCAL
InvalidEnergyIntervalExceptionin case no energy interval is found for the requested energy value and cell ID

Definition at line 29 of file EMCALChannelScaleFactors.cxx.

◆ insertVal()

void EMCALChannelScaleFactors::insertVal ( unsigned int  cellID,
float  E_min,
float  E_max,
float  scale 
)

Insert value into the map

Parameters
cellThe cell number
E_minMinimum energy of the interval
E_maxMaximum energy of the interval
scaleScale factor for number of hits in bad channel calibration
Exceptions
CalibContainerIndexExceptionin case the cell ID exceeds the range of cells in EMCAL

Definition at line 20 of file EMCALChannelScaleFactors.cxx.


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