2#ifndef ECAL_ECALRECONCONDTIONS_H_
3#define ECAL_ECALRECONCONDTIONS_H_
5#include "Conditions/SimpleTableCondition.h"
48 bool validate =
true);
Class that defines an ECal detector ID with a cell number.
T get(unsigned int id, unsigned int col) const
Get an entry by DetectorId and number.
Class to wrap around an double table of conditions.
double adcPedestal(const ldmx::EcalID &id) const
get the ADC pedestal
const conditions::DoubleTableCondition & the_table_
reference to the table of conditions storing the chip conditions
static const unsigned int IADC_PEDESTAL
column index for ADC pedestal
static const unsigned int ITOT_GAIN
column index for TOT gain
double adcGain(const ldmx::EcalID &id) const
get the ADC gain
static const unsigned int IADC_GAIN
column index for ADC threshold
double totPedestal(const ldmx::EcalID &id) const
get the TOT pedestal
static const std::vector< std::string > EXPECTED_COLUMNS
expected order of column names matching the above indices (must match the indices above)
static const std::string CONDITIONS_NAME
the name of the EcalReconConditions table (must match python registration name)
double totGain(const ldmx::EcalID &id) const
get the TOT gain
static const unsigned int ITOT_PEDESTAL
column index for TOT pedestal
Extension of DetectorID providing access to ECal layers and cell numbers in a hex grid.