#include <ESDataFrame.h>
Public Types | |
typedef ESDetId | key_type |
For the sorted collection. | |
Public Member Functions | |
ESDataFrame () | |
ESDataFrame (const ESDetId &id) | |
const ESDetId & | id () const |
const ESSample & | operator[] (int i) const |
const ESSample & | sample (int i) const |
void | setSample (int i, const ESSample &sam) |
void | setSize (int size) |
int | size () const |
Static Public Attributes | |
static const int | MAXSAMPLES = 3 |
Private Attributes | |
std::vector< ESSample > | data_ |
ESDetId | id_ |
int | size_ |
Definition at line 9 of file ESDataFrame.h.
typedef ESDetId ESDataFrame::key_type |
For the sorted collection.
Definition at line 13 of file ESDataFrame.h.
ESDataFrame::ESDataFrame | ( | ) |
Definition at line 3 of file ESDataFrame.cc.
: id_(0), size_(0), data_(MAXSAMPLES) { }
ESDataFrame::ESDataFrame | ( | const ESDetId & | id | ) | [explicit] |
Definition at line 9 of file ESDataFrame.cc.
: id_(id), size_(0), data_(MAXSAMPLES) { }
const ESDetId& ESDataFrame::id | ( | void | ) | const [inline] |
Definition at line 18 of file ESDataFrame.h.
References id_.
Referenced by EcalPreshowerDigisValidation::analyze(), ESTimingTask::analyze(), EcalMixingModuleValidation::analyze(), ESPedestalTask::analyze(), ESElectronicsSim::digitalToAnalog(), ESElectronicsSimFast::digitalToAnalog(), ESDataFormatterV4::DigiToRaw(), ESDataFormatterV1_1::DigiToRaw(), GlobalDigisAnalyzer::fillECal(), GlobalDigisProducer::fillECal(), operator<<(), ESZeroSuppressionProducer::produce(), ESRecHitSimAlgo::reconstruct(), ESRecHitAnalyticAlgo::reconstruct(), and ESRecHitFitAlgo::reconstruct().
{ return id_; }
const ESSample& ESDataFrame::operator[] | ( | int | i | ) | const [inline] |
const ESSample& ESDataFrame::sample | ( | int | i | ) | const [inline] |
Definition at line 23 of file ESDataFrame.h.
Referenced by ESTimingTask::analyze(), ESPedestalTask::analyze(), ESDataFormatterV4::DigiToRaw(), ESDataFormatterV1_1::DigiToRaw(), ESRecHitFitAlgo::EvalAmplitude(), ESRecHitAnalyticAlgo::EvalAmplitude(), ESRecHitSimAlgo::EvalAmplitude(), operator<<(), ESZeroSuppressionProducer::produce(), and ESUnpacker::word2digi().
void ESDataFrame::setSample | ( | int | i, |
const ESSample & | sam | ||
) | [inline] |
Definition at line 27 of file ESDataFrame.h.
Referenced by ESElectronicsSim::analogToDigital(), ESElectronicsSimFast::analogToDigital(), edm::DataMixingEMDigiWorker::putEM(), and ESUnpacker::word2digi().
void ESDataFrame::setSize | ( | int | size | ) |
Definition at line 16 of file ESDataFrame.cc.
References MAXSAMPLES, size(), and size_.
Referenced by ESElectronicsSim::analogToDigital(), ESElectronicsSimFast::analogToDigital(), and ESUnpacker::word2digi().
{ if (size > MAXSAMPLES) size_ = MAXSAMPLES; else if (size <= 0) size_=0; else size_ = size; }
int ESDataFrame::size | ( | void | ) | const [inline] |
Definition at line 20 of file ESDataFrame.h.
References size_.
Referenced by ESElectronicsSim::analogToDigital(), ESElectronicsSimFast::analogToDigital(), EcalPreshowerDigisValidation::analyze(), ESTimingTask::analyze(), EcalPreshowerNoiseDistrib::analyze(), EcalMixingModuleValidation::analyze(), ESElectronicsSim::digitalToAnalog(), ESElectronicsSimFast::digitalToAnalog(), ESDataFormatterV4::DigiToRaw(), ESDataFormatterV1_1::DigiToRaw(), ESRecHitFitAlgo::EvalAmplitude(), ESRecHitAnalyticAlgo::EvalAmplitude(), ESRecHitSimAlgo::EvalAmplitude(), GlobalDigisAnalyzer::fillECal(), GlobalDigisProducer::fillECal(), operator<<(), edm::DataMixingEMDigiWorker::putEM(), and setSize().
{ return size_; }
std::vector<ESSample> ESDataFrame::data_ [private] |
Definition at line 36 of file ESDataFrame.h.
Referenced by operator[](), sample(), and setSample().
ESDetId ESDataFrame::id_ [private] |
Definition at line 33 of file ESDataFrame.h.
Referenced by id().
const int ESDataFrame::MAXSAMPLES = 3 [static] |
Definition at line 29 of file ESDataFrame.h.
Referenced by EcalPreshowerDigisValidation::analyze(), EcalPreshowerNoiseDistrib::analyze(), EcalMixingModuleValidation::analyze(), EcalMixingModuleValidation::computeSDBunchDigi(), EcalMixingModuleValidation::endRun(), GlobalDigisAnalyzer::fillECal(), GlobalDigisProducer::fillECal(), and setSize().
int ESDataFrame::size_ [private] |
Definition at line 34 of file ESDataFrame.h.