#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(), CaloHitResponse::add(), HcalElectronicsSim::analogToDigital(), EcalMixingModuleValidation::computeSDBunchDigi(), ESElectronicsSim::encode(), CastorCoderDb::fC2adc_(), HcalCoderDb::fC2adc_(), HcalSiPMHitResponse::finalizeHits(), CastorNominalCoderTemplate::process(), HcalNominalCoderTemplate::process(), and edm::DataMixingHcalDigiWorker::putHcal().
bool CaloSamples::isBlank | ( | ) | const |
Definition at line 100 of file CaloSamples.cc.
References data_, MillePedeFileConverter_cfg::e, mps_fire::i, and size_.
CaloSamples & CaloSamples::offsetTime | ( | double | offset | ) |
shift all the samples by a time, in ns, interpolating
Definition at line 83 of file CaloSamples.cc.
References data, data_, f, mps_fire::i, hltrates_dqm_sourceclient-live_cfg::offset, size_, and submitPVValidationJobs::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 43 of file CaloSamples.cc.
References data_, deltaTprecise_, mps_fire::i, dqmiolumiharvest::j, preciseData_, and size_.
CaloSamples & CaloSamples::operator+= | ( | const CaloSamples & | other | ) |
Definition at line 51 of file CaloSamples.cc.
References data_, deltaTprecise_, mps_fire::i, trackingPlots::other, 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::leadingEdgeTDC().
|
inline |
mutable function to access precise samples
Definition at line 31 of file CaloSamples.h.
References mps_fire::i, and preciseData_.
Referenced by 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 HcalTDC::leadingEdgeTDC(), and HcalSiPMHitResponse::makeSiPMSignal().
|
inline |
access presample information
Definition at line 36 of file CaloSamples.h.
References presamples_.
Referenced by CastorCoderDb::fC2adc_(), HcalCoderDb::fC2adc_(), CastorNominalCoderTemplate::process(), HcalNominalCoderTemplate::process(), and HcalDigisValidation::reco().
void CaloSamples::resetPrecise | ( | ) |
Definition at line 31 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_, mps_fire::i, dqmiolumiharvest::j, preciseData_, size_, and relativeConstraints::value.
Referenced by operator*=().
void CaloSamples::setBlank | ( | ) |
Definition at line 109 of file CaloSamples.cc.
References data_, ntuplemaker::fill, and preciseData_.
Referenced by CaloSamples().
|
inline |
|
inline |
Definition at line 78 of file CaloSamples.h.
References deltaTprecise_, precisePresamples(), and precisePresamples_.
|
inline |
Definition at line 60 of file CaloSamples.h.
References preciseData_, preciseSize_, and size().
Referenced by HcalSiPMHitResponse::finalizeHits().
void CaloSamples::setPresamples | ( | int | pre | ) |
set presample information
Definition at line 33 of file CaloSamples.cc.
References findAndChange::pre, and presamples_.
Referenced by CastorNominalCoder::adc2fC(), HcalNominalCoder::adc2fC(), CastorCoderDb::adc2fC_(), and HcalCoderDb::adc2fC_().
|
inline |
|
inline |
get the size
Definition at line 24 of file CaloSamples.h.
References size_.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), HcalSiPMHitResponse::add(), CaloHitResponse::add(), ESElectronicsSim::encode(), CastorCoderDb::fC2adc_(), HcalCoderDb::fC2adc_(), reco::HcalNoiseInfoProducer::filldigis(), GlobalDigisProducer::fillHCal(), GlobalDigisAnalyzer::fillHCal(), HcalSiPMHitResponse::finalizeHits(), HcalTDC::leadingEdgeTDC(), CastorNominalCoderTemplate::process(), HcalNominalCoderTemplate::process(), edm::DataMixingHcalDigiWorker::putHcal(), CastorSimpleRecAlgoImpl::reco(), HcalDigisValidation::reco(), ZdcSimpleRecAlgo_Run3::reco0(), ZdcSimpleRecAlgoImpl::reco1(), ZdcSimpleRecAlgoImpl::reco2(), setPreciseSize(), 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().