#include <CaloSamples.h>
Public Member Functions | |
CaloSamples () | |
CaloSamples (const DetId &id, int size) | |
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... | |
double & | operator[] (int i) |
mutable operator to access samples More... | |
double | operator[] (int i) const |
const operator to access samples More... | |
int | presamples () const |
access presample information More... | |
CaloSamples & | scale (double value) |
multiply each item by this value More... | |
void | setBlank () |
void | setDetId (DetId detId) |
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] |
DetId | id_ |
int | presamples_ |
int | size_ |
Class which represents the charge/voltage measurements of an event/channel with the ADC decoding performed.
Definition at line 15 of file CaloSamples.h.
CaloSamples::CaloSamples | ( | ) |
|
explicit |
|
inline |
get the (generic) id
Definition at line 21 of file CaloSamples.h.
References id_.
Referenced by 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(), operator<<(), HcalAmplifier::pe2fC(), CastorNominalCoderTemplate::process(), HcalNominalCoderTemplate::process(), and edm::DataMixingHcalDigiWorker::putHcal().
bool CaloSamples::isBlank | ( | ) | const |
Definition at line 56 of file CaloSamples.cc.
References data_, alignCSCRings::e, funct::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 35 of file CaloSamples.cc.
References data, data_, f, i, MAXSAMPLES, evf::evtn::offset(), and lumiQTWidget::t.
Referenced by HcalTimeSlewSim::delay().
|
inline |
scale all samples
Definition at line 38 of file CaloSamples.h.
References scale().
CaloSamples & CaloSamples::operator+= | ( | double | value | ) |
add a value to all samples
Definition at line 28 of file CaloSamples.cc.
References data_, i, and MAXSAMPLES.
|
inline |
|
inline |
|
inline |
access presample information
Definition at line 31 of file CaloSamples.h.
References presamples_.
Referenced by CaloHitResponse::add(), HcalTimeSlewSim::charge(), CastorCoderDb::fC2adc_(), HcalCoderDb::fC2adc_(), CastorNominalCoderTemplate::process(), and HcalNominalCoderTemplate::process().
CaloSamples & CaloSamples::scale | ( | double | value | ) |
multiply each item by this value
Definition at line 21 of file CaloSamples.cc.
References data_, i, and MAXSAMPLES.
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 66 of file CaloSamples.cc.
References data_, lumiContext::fill, and MAXSAMPLES.
Referenced by CaloSamples().
|
inline |
void CaloSamples::setPresamples | ( | int | pre | ) |
set presample information
Definition at line 15 of file CaloSamples.cc.
References presamples_.
Referenced by CastorNominalCoder::adc2fC(), HcalNominalCoder::adc2fC(), CastorCoderDb::adc2fC_(), and HcalCoderDb::adc2fC_().
|
inline |
Definition at line 49 of file CaloSamples.h.
|
inline |
get the size
Definition at line 24 of file CaloSamples.h.
References size_.
Referenced by CaloHitResponse::add(), HcalAmplifier::addPedestals(), HPDIonFeedbackSim::addThermalNoise(), CastorAmplifier::amplify(), ESElectronicsSim::analogToDigital(), HcalTimeSlewSim::charge(), CastorElectronicsSim::convert(), HcalElectronicsSim::convert(), ESElectronicsSim::encode(), CastorCoderDb::fC2adc_(), HcalCoderDb::fC2adc_(), reco::HcalNoiseInfoProducer::filldigis(), GlobalDigisProducer::fillHCal(), GlobalDigisAnalyzer::fillHCal(), CaloHitResponse::makeAnalogSignal(), HcalSiPMHitResponse::makeSiPMSignal(), operator<<(), CastorNominalCoderTemplate::process(), HcalNominalCoderTemplate::process(), CaloHitRespoNew::putAnalogSignal(), edm::DataMixingHcalDigiWorker::putHcal(), HcalDigiTester::reco(), CastorSimpleRecAlgoImpl::reco(), HcalSimpleRecAlgoImpl::reco(), ZdcSimpleRecAlgoImpl::reco1(), ZdcSimpleRecAlgoImpl::reco2(), HcalSimpleRecAlgo::reconstruct(), and setSize().
|
private |
Definition at line 58 of file CaloSamples.h.
Referenced by isBlank(), offsetTime(), operator+=(), operator[](), scale(), and setBlank().
|
private |
Definition at line 57 of file CaloSamples.h.
Referenced by id(), and setDetId().
|
static |
Definition at line 55 of file CaloSamples.h.
Referenced by EcalMixingModuleValidation::computeSDBunchDigi(), isBlank(), offsetTime(), operator+=(), scale(), and setBlank().
|
private |
Definition at line 59 of file CaloSamples.h.
Referenced by presamples(), and setPresamples().
|
private |
Definition at line 59 of file CaloSamples.h.