CMS 3D CMS Logo

ESDataFrame Class Reference

#include <DataFormats/EcalDigi/interface/ESDataFrame.h>

List of all members.

Public Types

typedef ESDetId key_type
 For the sorted collection.

Public Member Functions

 ESDataFrame (const ESDetId &id)
 ESDataFrame ()
const ESDetIdid () const
const ESSampleoperator[] (int i) const
const ESSamplesample (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< ESSampledata_
ESDetId id_
int size_


Detailed Description

Definition at line 9 of file ESDataFrame.h.


Member Typedef Documentation

typedef ESDetId ESDataFrame::key_type

For the sorted collection.

Definition at line 13 of file ESDataFrame.h.


Constructor & Destructor Documentation

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 }


Member Function Documentation

const ESDetId& ESDataFrame::id ( void   )  const [inline]

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_; }

const ESSample& ESDataFrame::operator[] ( int  i  )  const [inline]

Definition at line 22 of file ESDataFrame.h.

References data_.

00022 { return data_[i]; }

const ESSample& ESDataFrame::sample ( int  i  )  const [inline]

Definition at line 23 of file ESDataFrame.h.

References data_.

Referenced by ESDataFormatter::DigiToRaw(), ESDataFormatter::DigiToRawTB(), ESRecHitSimAlgo::EvalAmplitude(), operator<<(), and ESUnpacker::word2digi().

00023 { return data_[i]; }

void ESDataFrame::setSample ( int  i,
const ESSample sam 
) [inline]

Definition at line 27 of file ESDataFrame.h.

References data_.

Referenced by ESElectronicsSim::analogToDigital(), ESElectronicsSimFast::analogToDigital(), and ESUnpacker::word2digi().

00027 { data_[i] = sam; }

void ESDataFrame::setSize ( int  size  ) 

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 }

int ESDataFrame::size ( void   )  const [inline]

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_; }


Member Data Documentation

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::endJob(), GlobalDigisAnalyzer::fillECal(), GlobalDigisProducer::fillECal(), and setSize().

int ESDataFrame::size_ [private]

Definition at line 34 of file ESDataFrame.h.

Referenced by setSize(), and size().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:20:25 2009 for CMSSW by  doxygen 1.5.4