#include <HcalTDC.h>
Public Member Functions | |
unsigned int | getThresholdDAC () |
HcalTDC (unsigned int thresholdDAC=12) | |
void | setDbService (const HcalDbService *service) |
the Producer will probably update this every event More... | |
void | setRandomEngine (CLHEP::HepRandomEngine &engine) |
void | setThresholdDAC (unsigned int DAC) |
void | timing (const CaloSamples &lf, HcalUpgradeDataFrame &digi) const |
adds timing information to the digi More... | |
~HcalTDC () | |
Private Member Functions | |
double | getHysteresisThreshold (double nominal) const |
double | getThreshold (const HcalGenericDetId &detId) const |
Private Attributes | |
double const | lsb |
unsigned int | theDAC |
const HcalDbService * | theDbService |
CLHEP::RandGaussQ * | theRandGaussQ |
HcalTDCParameters | theTDCParameters |
HcalTDC::HcalTDC | ( | unsigned int | thresholdDAC = 12 | ) |
Definition at line 6 of file HcalTDC.cc.
HcalTDC::~HcalTDC | ( | ) |
|
private |
|
private |
Definition at line 108 of file HcalTDC.cc.
References HcalTDCParameters::deltaT(), HcalDbService::getHcalCalibrations(), HcalDbService::getHcalCalibrationWidths(), lsb, HcalTDCParameters::nbins(), HcalCalibrationWidths::pedestal(), HcalCalibrations::pedestal(), theDAC, theDbService, theRandGaussQ, and theTDCParameters.
Referenced by timing().
|
inline |
void HcalTDC::setDbService | ( | const HcalDbService * | service | ) |
the Producer will probably update this every event
Definition at line 136 of file HcalTDC.cc.
References theDbService.
Referenced by HcalElectronicsSim::setDbService().
void HcalTDC::setRandomEngine | ( | CLHEP::HepRandomEngine & | engine | ) |
Definition at line 132 of file HcalTDC.cc.
References theRandGaussQ.
Referenced by HcalElectronicsSim::setRandomEngine().
|
inline |
void HcalTDC::timing | ( | const CaloSamples & | lf, |
HcalUpgradeDataFrame & | digi | ||
) | const |
adds timing information to the digi
Definition at line 16 of file HcalTDC.cc.
References HcalUpgradeDataFrame::adc(), HcalTDCParameters::alreadyTransitionCode(), getThreshold(), i, HcalUpgradeDataFrame::id(), HcalTDCParameters::nbins(), HcalTDCParameters::noTransitionCode(), CaloSamples::preciseAt(), CaloSamples::preciseSize(), HcalUpgradeDataFrame::setSample(), CaloSamples::size(), and theTDCParameters.
Referenced by HcalElectronicsSim::analogToDigital().
|
private |
Definition at line 37 of file HcalTDC.h.
Referenced by getHysteresisThreshold(), and getThreshold().
|
private |
Definition at line 35 of file HcalTDC.h.
Referenced by getThreshold(), getThresholdDAC(), and setThresholdDAC().
|
private |
Definition at line 33 of file HcalTDC.h.
Referenced by getThreshold(), and setDbService().
|
mutableprivate |
Definition at line 39 of file HcalTDC.h.
Referenced by getThreshold(), setRandomEngine(), and ~HcalTDC().
|
private |
Definition at line 32 of file HcalTDC.h.
Referenced by getThreshold(), and timing().