2#ifndef HCAL_HCALRECONCONDTIONS_H_
3#define HCAL_HCALRECONCONDTIONS_H_
5#include "Conditions/SimpleTableCondition.h"
6#include "DetDescr/HcalDigiID.h"
T get(unsigned int id, unsigned int col) const
Get an entry by DetectorId and number.
Base class for all conditions objects, very simple.
Class to wrap around the various recon condition tables.
static const unsigned int i_lower_offset
index of lower_offset in tot_calib table
static const unsigned int i_high_offset
index of high_offset in tot_calib table
double adcGain(const ldmx::HcalDigiID &id, int idx=0) const
get the ADC gain
static const unsigned int i_flagged
index of flagged in tot_calib table
bool is_adc(const ldmx::HcalDigiID &id, double sum_tot) const
check if the input digi is in ADC mode (or not) using the digi id and its evaluated sum tot
const conditions::DoubleTableCondition & adc_pedestals_
reference to the table of conditions storing the adc pedestals
double linearize(const ldmx::HcalDigiID &id, double sum_tot) const
linearize the input sum_tot for the input channel into unified amplitude units
static const std::string CONDITIONS_NAME
the name of the HcalReconConditions table (must match python registration name)
double totCalib(const ldmx::HcalDigiID &id, int idx=0) const
get a TOT calibration value
double adcPedestal(const ldmx::HcalDigiID &id, int idx=0) const
get the ADC pedestal
static const unsigned int i_m_adc_i
index of m_adc_i in tot_calib table
static const unsigned int i_channel
index of channel in tot_calib table
const conditions::DoubleTableCondition & tot_calibs_
reference to the table of conditions storing the tot calibrations
static const unsigned int i_high_slope
index of high_slope in tot_calib table
static const unsigned int i_cut_point_tot
index of cut_point_tot in tot_calib table
double toaCalib(const ldmx::HcalDigiID &id, int idx=0) const
get a TOA calibration value
static const unsigned int i_tot_not
index of tot_not in tot_calib table
static const unsigned int i_low_slope
index of low_slope in tot_calib table
const conditions::DoubleTableCondition & adc_gains_
reference to the table of conditions storing the adc gains
const conditions::DoubleTableCondition & toa_calibs_
reference to the table of conditions storing the toa calibrations
static const unsigned int i_low_power
index of low_power in tot_calib table
Extension of HcalAbstractID providing access to HCal digi information.