#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 | setPreciseSize (unsigned int size) |
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 | |
std::vector< double > | data_ |
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(), HcalSiPMHitResponse::finalizeHits(), operator<<(), HcalAmplifier::pe2fC(), CastorNominalCoderTemplate::process(), HcalNominalCoderTemplate::process(), and edm::DataMixingHcalDigiWorker::putHcal().
bool CaloSamples::isBlank | ( | ) | const |
Definition at line 86 of file CaloSamples.cc.
References data_, MillePedeFileConverter_cfg::e, mps_fire::i, and size_.
Referenced by setPreciseSize().
CaloSamples & CaloSamples::offsetTime | ( | double | offset | ) |
shift all the samples by a time, in ns, interpolating
Definition at line 69 of file CaloSamples.cc.
References data, data_, f, mps_fire::i, PFRecoTauDiscriminationByIsolation_cfi::offset, size_, and lumiQTWidget::t.
Referenced by operator*=().
|
inline |
scale all samples
Definition at line 43 of file CaloSamples.h.
References PFRecoTauDiscriminationByIsolation_cfi::offset, offsetTime(), operator+=(), trackingPlots::other, and scale().
CaloSamples & CaloSamples::operator+= | ( | double | value | ) |
add a value to all samples
Definition at line 43 of file CaloSamples.cc.
References data_, deltaTprecise_, mps_fire::i, preciseData_, and size_.
Referenced by operator*=().
CaloSamples & CaloSamples::operator+= | ( | const CaloSamples & | other | ) |
Definition at line 51 of file CaloSamples.cc.
References data_, mps_fire::i, preciseData_, preciseSize_, presamples_, resetPrecise(), and size_.
|
inline |
mutable operator to access samples
Definition at line 26 of file CaloSamples.h.
References data_, and mps_fire::i.
|
inline |
const operator to access samples
Definition at line 28 of file CaloSamples.h.
References data_, and mps_fire::i.
|
inline |
const function to access precise samples
Definition at line 33 of file CaloSamples.h.
References mps_fire::i, and preciseData_.
Referenced by HcalTDC::timing().
|
inline |
mutable function to access precise samples
Definition at line 31 of file CaloSamples.h.
References mps_fire::i, and preciseData_.
Referenced by CaloHitResponse::makeAnalogSignal(), and HcalSiPMHitResponse::makeSiPMSignal().
|
inline |
|
inline |
Definition at line 75 of file CaloSamples.h.
References precisePresamples_.
Referenced by setPrecise().
|
inline |
get the size
Definition at line 70 of file CaloSamples.h.
References preciseData_, and preciseSize_.
Referenced by HcalSiPMHitResponse::makeSiPMSignal(), operator<<(), and HcalTDC::timing().
|
inline |
access presample information
Definition at line 36 of file CaloSamples.h.
References presamples_, scale(), and setPresamples().
Referenced by HcalTimeSlewSim::charge(), HcalTimeSlewSim::delay(), CastorCoderDb::fC2adc_(), HcalCoderDb::fC2adc_(), HcalSiPMHitResponse::makeBlankSignal(), CastorNominalCoderTemplate::process(), HcalNominalCoderTemplate::process(), and HcalDigisValidation::reco().
void CaloSamples::resetPrecise | ( | ) |
Definition at line 31 of file CaloSamples.cc.
References preciseData_, and preciseSize_.
Referenced by CaloHitResponse::makeAnalogSignal(), HcalSiPMHitResponse::makeSiPMSignal(), operator+=(), and setPrecise().
CaloSamples & CaloSamples::scale | ( | double | value | ) |
multiply each item by this value
Definition at line 35 of file CaloSamples.cc.
References data_, mps_fire::i, preciseData_, size_, 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*=(), presamples(), Vispa.Gui.VispaWidget.VispaWidget::setZoom(), and Vispa.Gui.ConnectableWidget.ConnectableWidget::sizeHint().
void CaloSamples::setBlank | ( | ) |
Definition at line 95 of file CaloSamples.cc.
References data_, lumiContext::fill, and preciseData_.
Referenced by CaloSamples(), and setPreciseSize().
|
inline |
|
inline |
Definition at line 78 of file CaloSamples.h.
References deltaTprecise_, precisePresamples(), precisePresamples_, and resetPrecise().
Referenced by HcalSiPMHitResponse::makeBlankSignal().
|
inline |
Definition at line 60 of file CaloSamples.h.
References isBlank(), preciseData_, preciseSize_, setBlank(), and size().
Referenced by HcalSiPMHitResponse::finalizeHits().
void CaloSamples::setPresamples | ( | int | pre | ) |
set presample information
Definition at line 33 of file CaloSamples.cc.
References presamples_.
Referenced by CastorNominalCoder::adc2fC(), HcalNominalCoder::adc2fC(), CastorCoderDb::adc2fC_(), HcalCoderDb::adc2fC_(), HcalSiPMHitResponse::makeBlankSignal(), presamples(), and HcalSignalGenerator< HBHEDigitizerTraits >::samplesInPE().
|
inline |
|
inline |
get the size
Definition at line 24 of file CaloSamples.h.
References size_.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), DigiTask::_process(), HcalSiPMHitResponse::add(), EcalHitResponse::add(), CaloHitResponse::add(), HcalAmplifier::addPedestals(), HPDIonFeedbackSim::addThermalNoise(), CastorAmplifier::amplify(), HcalAmplifier::amplify(), ESElectronicsSim::analogToDigital(), HcalTimeSlewSim::charge(), CastorElectronicsSim::convert(), HcalElectronicsSim::convert(), HcalTimeSlewSim::delay(), ESElectronicsSim::encode(), CastorCoderDb::fC2adc_(), HcalCoderDb::fC2adc_(), reco::HcalNoiseInfoProducer::filldigis(), GlobalDigisProducer::fillHCal(), GlobalDigisAnalyzer::fillHCal(), HcalSiPMHitResponse::finalizeHits(), CaloHitResponse::makeAnalogSignal(), operator<<(), HcalElectronicsSim::premix(), CastorNominalCoderTemplate::process(), HcalNominalCoderTemplate::process(), HBHEPhase1Reconstructor::processData(), edm::DataMixingHcalDigiWorker::putHcal(), CastorSimpleRecAlgoImpl::reco(), HcalDigisValidation::reco(), ZdcSimpleRecAlgoImpl::reco1(), ZdcSimpleRecAlgoImpl::reco2(), HFPreRecAlgo::reconstruct(), HcalSimpleRecAlgoImpl::removePileup(), setPreciseSize(), HBHENegativeFlagSetter::setPulseShapeFlags(), setSize(), and HcalTDC::timing().
|
private |
Definition at line 91 of file CaloSamples.h.
Referenced by isBlank(), offsetTime(), operator+=(), operator[](), scale(), setBlank(), and setSize().
|
private |
Definition at line 92 of file CaloSamples.h.
Referenced by operator+=(), preciseDeltaT(), and setPrecise().
|
private |
Definition at line 89 of file CaloSamples.h.
Referenced by id(), and setDetId().
|
static |
Definition at line 86 of file CaloSamples.h.
Referenced by EcalMixingModuleValidation::computeSDBunchDigi(), HcalSimpleRecAlgoImpl::removePileup(), and HBHENegativeFlagSetter::setPulseShapeFlags().
|
private |
Definition at line 93 of file CaloSamples.h.
Referenced by operator+=(), preciseAt(), preciseAtMod(), preciseSize(), resetPrecise(), scale(), setBlank(), and setPreciseSize().
|
private |
Definition at line 94 of file CaloSamples.h.
Referenced by precisePresamples(), and setPrecise().
|
private |
Definition at line 94 of file CaloSamples.h.
Referenced by operator+=(), preciseSize(), resetPrecise(), and setPreciseSize().
|
private |
Definition at line 90 of file CaloSamples.h.
Referenced by operator+=(), presamples(), and setPresamples().
|
private |
Definition at line 90 of file CaloSamples.h.
Referenced by isBlank(), offsetTime(), operator+=(), scale(), setSize(), and size().