5 #include "CLHEP/Random/RandGaussQ.h" 16 for (
int ibin = 0; ibin < lf.
size(); ++ibin) {
17 digi.
setSample(ibin, digi[ibin].
adc(), packedTDCs[ibin], digi[ibin].soi());
25 for (
int ibin = 0; ibin < lf.
size(); ++ibin) {
37 bool risingReady(
true);
39 bool hasTDCValues =
true;
43 for (
int ibin = 0; ibin < lf.
size(); ++ibin) {
58 int preciseBegin = ibin * tdcBins;
59 int preciseEnd = preciseBegin + tdcBins;
62 for (
int i = preciseBegin;
i < preciseEnd; ++
i) {
63 if ((!risingReady) && (
i == preciseBegin) && (
i != 0)) {
73 TDC_RisingEdge =
i - preciseBegin;
75 }
else if (
i == (preciseEnd - 1)) {
80 if ((!risingReady) && (
i == (preciseEnd - 1))) {
90 int packedTDC = TDC_RisingEdge;
92 result.push_back(packedTDC);
int size() const
get the size
double getThreshold() const
constexpr void setSample(edm::DataFrame::size_type isample, int adc, int le_tdc, int te_tdc, int capid, bool soi=false, bool ok=true)
set the sample contents
const HcalDbService * theDbService
std::vector< int > leadingEdgeTDC(const CaloSamples &lf) const
constexpr int adc() const
void timing(const CaloSamples &lf, QIE11DataFrame &digi) const
int alreadyTransitionCode() const
int preciseSize() const
get the size
constexpr bool ok() const
constexpr void setSample(edm::DataFrame::size_type isample, int adc, int tdc, bool soi=false)
set the sample contents
HcalTDC(double threshold_currentTDC=0.)
constexpr int capid() const
constexpr bool soi() const
int noTransitionCode() const
float preciseAt(int i) const
const function to access precise samples
uint16_t *__restrict__ uint16_t const *__restrict__ adc
void setDbService(const HcalDbService *service)
the Producer will probably update this every event
HcalTDCParameters theTDCParameters