#include <CaloSamples.h>
Public Member Functions | |
CaloSamples () | |
CaloSamples (const DetId &id, int size) | |
CaloSamples (const DetId &id, int size, int preciseSize) | |
DetId | id () const |
get the (generic) id More... | |
bool | isBlank () const |
CaloSamples & | offsetTime (double offset) |
shift all the samples by a time, in ns, interpolating More... | |
CaloSamples & | operator*= (double value) |
scale all samples More... | |
CaloSamples & | operator+= (double value) |
add a value to all samples More... | |
CaloSamples & | operator+= (const CaloSamples &other) |
double & | operator[] (int i) |
mutable operator to access samples More... | |
double | operator[] (int i) const |
const operator to access samples More... | |
float | preciseAt (int i) const |
const function to access precise samples More... | |
float & | preciseAtMod (int i) |
mutable function to access precise samples More... | |
float | preciseDeltaT () const |
int | precisePresamples () const |
int | preciseSize () const |
get the size More... | |
int | presamples () const |
access presample information More... | |
void | resetPrecise () |
CaloSamples & | scale (double value) |
multiply each item by this value More... | |
void | setBlank () |
void | setDetId (DetId detId) |
void | setPrecise (int precisePresamples, float deltaT) |
void | setPresamples (int pre) |
set presample information More... | |
void | setSize (unsigned int size) |
int | size () const |
get the size More... | |
Static Public Attributes | |
static const int | MAXSAMPLES =10 |
Private Attributes | |
double | data_ [MAXSAMPLES] |
float | deltaTprecise_ |
DetId | id_ |
std::vector< float > | preciseData_ |
int | precisePresamples_ |
int | preciseSize_ |
int | presamples_ |
int | size_ |
Class which represents the charge/voltage measurements of an event/channel with the ADC decoding performed.
Definition at line 14 of file CaloSamples.h.
CaloSamples::CaloSamples | ( | ) |
|
explicit |
|
explicit |
|
inline |
get the (generic) id
Definition at line 21 of file CaloSamples.h.
References id_.
Referenced by HcalSiPMHitResponse::add(), EcalHitResponse::add(), CaloHitResponse::add(), HcalAmplifier::addPedestals(), HPDIonFeedbackSim::addThermalNoise(), CastorAmplifier::amplify(), HcalAmplifier::amplify(), EcalMixingModuleValidation::computeSDBunchDigi(), CastorElectronicsSim::convert(), HcalElectronicsSim::convert(), HcalTimeSlewSim::delay(), ESElectronicsSim::encode(), CastorCoderDb::fC2adc_(), HcalCoderDb::fC2adc_(), HcalBaseSignalGenerator::fC2pe(), HcalCoderDb::fCUpgrade2adc_(), HcalSiPMHitResponse::finalizeHits(), operator<<(), HcalAmplifier::pe2fC(), CastorNominalCoderTemplate::process(), HcalNominalCoderTemplate::process(), and edm::DataMixingHcalDigiWorker::putHcal().
bool CaloSamples::isBlank | ( | ) | const |
Definition at line 90 of file CaloSamples.cc.
References data_, alignCSCRings::e, edm::false, i, MAXSAMPLES, and funct::true.
Referenced by CaloHitRespoNew::findSignal().
CaloSamples & CaloSamples::offsetTime | ( | double | offset | ) |
shift all the samples by a time, in ns, interpolating
Definition at line 69 of file CaloSamples.cc.
References AlCaHLTBitMon_QueryRunRegistry::data, data_, f, i, MAXSAMPLES, hltrates_dqm_sourceclient-live_cfg::offset, and tree::t.
|
inline |
scale all samples
Definition at line 43 of file CaloSamples.h.
References scale().
CaloSamples & CaloSamples::operator+= | ( | double | value | ) |
add a value to all samples
Definition at line 42 of file CaloSamples.cc.
References data_, deltaTprecise_, i, j, MAXSAMPLES, and preciseData_.
CaloSamples & CaloSamples::operator+= | ( | const CaloSamples & | other | ) |
Definition at line 49 of file CaloSamples.cc.
References data_, i, preciseData_, preciseSize_, presamples_, resetPrecise(), and size_.
|
inline |
|
inline |
|
inline |
const function to access precise samples
Definition at line 33 of file CaloSamples.h.
References i, and preciseData_.
Referenced by HcalTDC::timing().
|
inline |
mutable function to access precise samples
Definition at line 31 of file CaloSamples.h.
References i, and preciseData_.
Referenced by HcalSiPMHitResponse::differentiatePreciseSamples(), and HcalSiPMHitResponse::makeSiPMSignal().
|
inline |
Definition at line 64 of file CaloSamples.h.
References deltaTprecise_.
Referenced by HcalSiPMHitResponse::differentiatePreciseSamples().
|
inline |
Definition at line 63 of file CaloSamples.h.
References precisePresamples_.
Referenced by setPrecise().
|
inline |
get the size
Definition at line 62 of file CaloSamples.h.
References preciseData_, and preciseSize_.
Referenced by HcalSiPMHitResponse::differentiatePreciseSamples(), HcalSiPMHitResponse::makeSiPMSignal(), operator<<(), and HcalTDC::timing().
|
inline |
access presample information
Definition at line 36 of file CaloSamples.h.
References presamples_.
Referenced by CaloHitResponse::add(), HcalTimeSlewSim::charge(), HcalTimeSlewSim::delay(), CastorCoderDb::fC2adc_(), HcalCoderDb::fC2adc_(), HcalCoderDb::fCUpgrade2adc_(), CastorNominalCoderTemplate::process(), and HcalNominalCoderTemplate::process().
void CaloSamples::resetPrecise | ( | ) |
Definition at line 27 of file CaloSamples.cc.
References preciseData_, and preciseSize_.
Referenced by HcalSiPMHitResponse::makeSiPMSignal(), and operator+=().
CaloSamples & CaloSamples::scale | ( | double | value | ) |
multiply each item by this value
Definition at line 35 of file CaloSamples.cc.
References data_, i, j, MAXSAMPLES, preciseData_, and relativeConstraints::value.
Referenced by Vispa.Gui.PortWidget.PortWidget::connectionPoint(), Vispa.Gui.VispaWidget.VispaWidget::drawHeaderBackground(), Vispa.Gui.ConnectableWidget.ConnectableWidget::drawPortNames(), Vispa.Gui.ConnectableWidget.ConnectableWidget::getEffectivePortHeight(), Vispa.Gui.VispaWidget.VispaWidget::imageRectF(), Vispa.Gui.VispaWidget.VispaWidget::move(), operator*=(), Vispa.Gui.VispaWidget.VispaWidget::setZoom(), and Vispa.Gui.ConnectableWidget.ConnectableWidget::sizeHint().
void CaloSamples::setBlank | ( | ) |
Definition at line 100 of file CaloSamples.cc.
References data_, lumiContext::fill, MAXSAMPLES, and preciseData_.
Referenced by CaloSamples().
|
inline |
|
inline |
Definition at line 66 of file CaloSamples.h.
References deltaTprecise_, precisePresamples(), and precisePresamples_.
void CaloSamples::setPresamples | ( | int | pre | ) |
set presample information
Definition at line 31 of file CaloSamples.cc.
References presamples_.
Referenced by CastorNominalCoder::adc2fC(), HcalNominalCoder::adc2fC(), CastorCoderDb::adc2fC_(), HcalCoderDb::adc2fC_(), and HcalSignalGenerator< HBHEDigitizerTraits >::samplesInPE().
|
inline |
Definition at line 55 of file CaloSamples.h.
|
inline |
get the size
Definition at line 24 of file CaloSamples.h.
References size_.
Referenced by EcalHitResponse::add(), CaloHitResponse::add(), HcalAmplifier::addPedestals(), HPDIonFeedbackSim::addThermalNoise(), CastorAmplifier::amplify(), ESElectronicsSim::analogToDigital(), HcalDeterministicFit::apply(), PulseShapeFitOOTPileupCorrection::apply(), HcalTimeSlewSim::charge(), CastorElectronicsSim::convert(), HcalElectronicsSim::convert(), HcalTimeSlewSim::delay(), ESElectronicsSim::encode(), CastorCoderDb::fC2adc_(), HcalCoderDb::fC2adc_(), HcalCoderDb::fCUpgrade2adc_(), reco::HcalNoiseInfoProducer::filldigis(), GlobalDigisProducer::fillHCal(), GlobalDigisAnalyzer::fillHCal(), HcalSiPMHitResponse::finalizeHits(), CaloHitResponse::makeAnalogSignal(), HcalSiPMHitResponse::makeSiPMSignal(), operator<<(), CastorNominalCoderTemplate::process(), HcalNominalCoderTemplate::process(), CaloHitRespoNew::putAnalogSignal(), edm::DataMixingHcalDigiWorker::putHcal(), HcalDigiTester::reco(), CastorSimpleRecAlgoImpl::reco(), HcalSimpleRecAlgoImpl::reco(), ZdcSimpleRecAlgoImpl::reco1(), ZdcSimpleRecAlgoImpl::reco2(), HcalSimpleRecAlgoImpl::recoHBHE(), HcalSimpleRecAlgoImpl::removePileup(), HBHENegativeFlagSetter::setPulseShapeFlags(), setSize(), and HcalTDC::timing().
|
private |
Definition at line 76 of file CaloSamples.h.
Referenced by isBlank(), offsetTime(), operator+=(), operator[](), scale(), and setBlank().
|
private |
Definition at line 78 of file CaloSamples.h.
Referenced by operator+=(), preciseDeltaT(), and setPrecise().
|
private |
Definition at line 75 of file CaloSamples.h.
Referenced by id(), and setDetId().
|
static |
Definition at line 73 of file CaloSamples.h.
Referenced by EcalMixingModuleValidation::computeSDBunchDigi(), isBlank(), offsetTime(), operator+=(), HcalSimpleRecAlgoImpl::removePileup(), scale(), setBlank(), and HBHENegativeFlagSetter::setPulseShapeFlags().
|
private |
Definition at line 79 of file CaloSamples.h.
Referenced by operator+=(), preciseAt(), preciseAtMod(), preciseSize(), resetPrecise(), scale(), and setBlank().
|
private |
Definition at line 80 of file CaloSamples.h.
Referenced by precisePresamples(), and setPrecise().
|
private |
Definition at line 80 of file CaloSamples.h.
Referenced by operator+=(), preciseSize(), and resetPrecise().
|
private |
Definition at line 77 of file CaloSamples.h.
Referenced by operator+=(), presamples(), and setPresamples().
|
private |
Definition at line 77 of file CaloSamples.h.
Referenced by operator+=(), setSize(), and size().