#include <DataFormats/EcalDigi/interface/ESDataFrame.h>
Public Types | |
typedef ESDetId | key_type |
For the sorted collection. | |
Public Member Functions | |
ESDataFrame (const ESDetId &id) | |
ESDataFrame () | |
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 |
ESDataFrame::ESDataFrame | ( | ) |
Definition at line 3 of file ESDataFrame.cc.
00003 : id_(0), 00004 size_(0), 00005 data_(MAXSAMPLES) 00006 { 00007 }
ESDataFrame::ESDataFrame | ( | const ESDetId & | id | ) | [explicit] |
Definition at line 9 of file ESDataFrame.cc.
00009 : 00010 id_(id), 00011 size_(0), 00012 data_(MAXSAMPLES) 00013 { 00014 }
Definition at line 18 of file ESDataFrame.h.
References id_.
Referenced by EcalPreshowerDigisValidation::analyze(), EcalMixingModuleValidation::analyze(), ESElectronicsSim::digitalToAnalog(), ESElectronicsSimFast::digitalToAnalog(), ESDataFormatter::DigiToRaw(), ESDataFormatter::DigiToRawTB(), GlobalDigisAnalyzer::fillECal(), GlobalDigisProducer::fillECal(), operator<<(), and ESRecHitSimAlgo::reconstruct().
00018 { return id_; }
Definition at line 23 of file ESDataFrame.h.
References data_.
Referenced by ESDataFormatter::DigiToRaw(), ESDataFormatter::DigiToRawTB(), ESRecHitSimAlgo::EvalAmplitude(), operator<<(), and ESUnpacker::word2digi().
Definition at line 27 of file ESDataFrame.h.
References data_.
Referenced by ESElectronicsSim::analogToDigital(), ESElectronicsSimFast::analogToDigital(), and ESUnpacker::word2digi().
Definition at line 16 of file ESDataFrame.cc.
References MAXSAMPLES, and size_.
Referenced by ESElectronicsSim::analogToDigital(), ESElectronicsSimFast::analogToDigital(), and ESUnpacker::word2digi().
00016 { 00017 if (size > MAXSAMPLES) size_ = MAXSAMPLES; 00018 else if (size <= 0) size_=0; 00019 else size_ = size; 00020 }
Definition at line 20 of file ESDataFrame.h.
References size_.
Referenced by ESElectronicsSim::analogToDigital(), ESElectronicsSimFast::analogToDigital(), EcalPreshowerDigisValidation::analyze(), EcalPreshowerNoiseDistrib::analyze(), EcalMixingModuleValidation::analyze(), ESElectronicsSim::digitalToAnalog(), ESElectronicsSimFast::digitalToAnalog(), ESDataFormatter::DigiToRaw(), ESDataFormatter::DigiToRawTB(), ESRecHitSimAlgo::EvalAmplitude(), GlobalDigisAnalyzer::fillECal(), GlobalDigisProducer::fillECal(), and operator<<().
00020 { return size_; }
std::vector<ESSample> ESDataFrame::data_ [private] |
ESDetId ESDataFrame::id_ [private] |
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::endJob(), GlobalDigisAnalyzer::fillECal(), GlobalDigisProducer::fillECal(), and setSize().
int ESDataFrame::size_ [private] |