LDMX Software
|
Class to wrap around an double table of conditions. More...
#include <EcalReconConditions.h>
Public Member Functions | |
EcalReconConditions (const conditions::DoubleTableCondition &table, bool validate=true) | |
Constructor. | |
double | adcPedestal (const ldmx::EcalID &id) const |
get the ADC pedestal | |
double | adcGain (const ldmx::EcalID &id) const |
get the ADC gain | |
double | totPedestal (const ldmx::EcalID &id) const |
get the TOT pedestal | |
double | totGain (const ldmx::EcalID &id) const |
get the TOT gain | |
Static Public Attributes | |
static const std::string | CONDITIONS_NAME = "EcalReconConditions" |
the name of the EcalReconConditions table (must match python registration name) | |
static const unsigned int | IADC_PEDESTAL = 0 |
column index for ADC pedestal | |
static const unsigned int | IADC_GAIN = 1 |
column index for ADC threshold | |
static const unsigned int | ITOT_PEDESTAL = 2 |
column index for TOT pedestal | |
static const unsigned int | ITOT_GAIN = 3 |
column index for TOT gain | |
static const std::vector< std::string > | EXPECTED_COLUMNS |
expected order of column names matching the above indices (must match the indices above) | |
Private Attributes | |
const conditions::DoubleTableCondition & | the_table_ |
reference to the table of conditions storing the chip conditions | |
Class to wrap around an double table of conditions.
This hardcodes the column numbers and checks that the hardcoded numbers match the imported columns during construction.
Definition at line 17 of file EcalReconConditions.h.
ecal::EcalReconConditions::EcalReconConditions | ( | const conditions::DoubleTableCondition & | table, |
bool | validate = true |
||
) |
Constructor.
Assign the conditions table to use and (if validate is true), check if the hard-coded column indices correctly match the table that is passed.
@raises Exception if any of the column names from the passed table do not match the hardcoded indices.
[in] | table | double table of reconstruction conditions |
[in] | validate | true if you want to check the columns |
Definition at line 14 of file EcalReconConditions.cxx.
References EXPECTED_COLUMNS, conditions::BaseTableCondition::getColumnCount(), conditions::BaseTableCondition::getColumnNames(), framework::ConditionsObject::getName(), and the_table_.
|
inline |
get the ADC gain
The ADC gain converts the ADC counts measuring a voltage amplitude into an estimated charge deposition [fC].
[in] | id | raw ID for specific chip |
Definition at line 70 of file EcalReconConditions.h.
References conditions::HomogenousTableCondition< T >::get(), IADC_GAIN, and the_table_.
Referenced by ecal::EcalRecProducer::produce().
|
inline |
get the ADC pedestal
[in] | id | ECal ID for specific chip |
Definition at line 56 of file EcalReconConditions.h.
References conditions::HomogenousTableCondition< T >::get(), IADC_PEDESTAL, and the_table_.
Referenced by ecal::EcalRecProducer::produce().
|
inline |
get the TOT gain
The TOT gain converts counts measuring time over threshold into an estimate for charge deposited in that cell [fC].
[in] | id | ECal ID for specific chip |
Definition at line 94 of file EcalReconConditions.h.
References conditions::HomogenousTableCondition< T >::get(), ITOT_GAIN, and the_table_.
Referenced by ecal::EcalRecProducer::produce().
|
inline |
get the TOT pedestal
[in] | id | ECal ID for specific chip |
Definition at line 80 of file EcalReconConditions.h.
References conditions::HomogenousTableCondition< T >::get(), ITOT_PEDESTAL, and the_table_.
Referenced by ecal::EcalRecProducer::produce().
|
static |
the name of the EcalReconConditions table (must match python registration name)
Definition at line 21 of file EcalReconConditions.h.
Referenced by ecal::EcalRecProducer::produce().
|
static |
expected order of column names matching the above indices (must match the indices above)
The order of these column names needs to match the indices listed in the header.
Definition at line 32 of file EcalReconConditions.h.
Referenced by EcalReconConditions().
|
static |
column index for ADC threshold
Definition at line 25 of file EcalReconConditions.h.
Referenced by adcGain().
|
static |
column index for ADC pedestal
Definition at line 23 of file EcalReconConditions.h.
Referenced by adcPedestal().
|
static |
column index for TOT gain
Definition at line 29 of file EcalReconConditions.h.
Referenced by totGain().
|
static |
column index for TOT pedestal
Definition at line 27 of file EcalReconConditions.h.
Referenced by totPedestal().
|
private |
reference to the table of conditions storing the chip conditions
Definition at line 100 of file EcalReconConditions.h.
Referenced by adcGain(), adcPedestal(), EcalReconConditions(), totGain(), and totPedestal().