LDMX Software
|
Class to wrap around an integer table of conditions. More...
#include <HgcrocTriggerCalculations.h>
Public Member Functions | |
HgcrocTriggerConditions (const conditions::IntegerTableCondition &, bool validate=true) | |
Constructor. | |
int | adcPedestal (unsigned int id) const |
get the ADC pedestal | |
int | adcThreshold (unsigned int id) const |
get the ADC threshold | |
int | totPedestal (unsigned int id) const |
get the TOT pedestal | |
int | totThreshold (unsigned int id) const |
get the TOT threshold | |
int | totGain (unsigned int id) const |
get the TOT gain | |
Static Public Attributes | |
static const unsigned int | IADC_PEDESTAL = 0 |
column index for ADC pedestal | |
static const unsigned int | IADC_THRESHOLD = 1 |
column index for ADC threshold | |
static const unsigned int | ITOT_PEDESTAL = 2 |
column index for TOT pedestal | |
static const unsigned int | ITOT_THRESHOLD = 3 |
column index for TOT threshold | |
static const unsigned int | ITOT_GAIN = 4 |
column index for TOT gain | |
Private Attributes | |
const conditions::IntegerTableCondition & | ict_ |
reference to the table of conditions storing the chip conditions | |
Class to wrap around an integer table of conditions.
This hardcodes the column numbers and checks that the hardcoded numbers match the imported columns during construction.
Definition at line 24 of file HgcrocTriggerCalculations.h.
ldmx::HgcrocTriggerConditions::HgcrocTriggerConditions | ( | const conditions::IntegerTableCondition & | ict, |
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.
Definition at line 9 of file HgcrocTriggerCalculations.cxx.
References conditions::BaseTableCondition::getColumnCount(), conditions::BaseTableCondition::getColumnNames(), framework::ConditionsObject::getName(), and ict_.
|
inline |
get the ADC pedestal
[in] | id | raw ID for specific chip |
Definition at line 56 of file HgcrocTriggerCalculations.h.
References conditions::HomogenousTableCondition< T >::get(), IADC_PEDESTAL, and ict_.
Referenced by ldmx::HgcrocTriggerCalculations::addDigi().
|
inline |
get the ADC threshold
[in] | id | raw ID for specific chip |
Definition at line 64 of file HgcrocTriggerCalculations.h.
References conditions::HomogenousTableCondition< T >::get(), IADC_THRESHOLD, and ict_.
Referenced by ldmx::HgcrocTriggerCalculations::addDigi().
|
inline |
get the TOT gain
[in] | id | raw ID for specific chip |
Definition at line 92 of file HgcrocTriggerCalculations.h.
References conditions::HomogenousTableCondition< T >::get(), ict_, and ITOT_GAIN.
Referenced by ldmx::HgcrocTriggerCalculations::addDigi().
|
inline |
get the TOT pedestal
[in] | id | raw ID for specific chip |
Definition at line 74 of file HgcrocTriggerCalculations.h.
References conditions::HomogenousTableCondition< T >::get(), ict_, and ITOT_PEDESTAL.
Referenced by ldmx::HgcrocTriggerCalculations::addDigi().
|
inline |
get the TOT threshold
[in] | id | raw ID for specific chip |
Definition at line 82 of file HgcrocTriggerCalculations.h.
References conditions::HomogenousTableCondition< T >::get(), ict_, and ITOT_THRESHOLD.
Referenced by ldmx::HgcrocTriggerCalculations::addDigi().
|
static |
column index for ADC pedestal
Definition at line 27 of file HgcrocTriggerCalculations.h.
Referenced by adcPedestal().
|
static |
column index for ADC threshold
Definition at line 29 of file HgcrocTriggerCalculations.h.
Referenced by adcThreshold().
|
private |
reference to the table of conditions storing the chip conditions
Definition at line 96 of file HgcrocTriggerCalculations.h.
Referenced by adcPedestal(), adcThreshold(), HgcrocTriggerConditions(), totGain(), totPedestal(), and totThreshold().
|
static |
column index for TOT gain
Definition at line 35 of file HgcrocTriggerCalculations.h.
Referenced by totGain().
|
static |
column index for TOT pedestal
Definition at line 31 of file HgcrocTriggerCalculations.h.
Referenced by totPedestal().
|
static |
column index for TOT threshold
Definition at line 33 of file HgcrocTriggerCalculations.h.
Referenced by totThreshold().