CMS 3D CMS Logo

EcalPnDiodeDigi Class Reference

Id
EcalPnDiodeDigi.h,v 1.3 2007/04/16 12:58:56 meridian Exp
More...

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

List of all members.

Public Types

typedef EcalPnDiodeDetId key_type
 For the sorted collection.

Public Member Functions

 EcalPnDiodeDigi (const EcalPnDiodeDetId &id)
 EcalPnDiodeDigi ()
const EcalPnDiodeDetIdid () const
const EcalFEMSampleoperator[] (int i) const
const EcalFEMSamplesample (int i) const
void setSample (int i, const EcalFEMSample &sam)
void setSize (int size)
int size () const

Static Public Attributes

static const int MAXSAMPLES = 50

Private Attributes

std::vector< EcalFEMSampledata_
EcalPnDiodeDetId id_
int size_


Detailed Description

Id
EcalPnDiodeDigi.h,v 1.3 2007/04/16 12:58:56 meridian Exp

Definition at line 16 of file EcalPnDiodeDigi.h.


Member Typedef Documentation

typedef EcalPnDiodeDetId EcalPnDiodeDigi::key_type

For the sorted collection.

Definition at line 18 of file EcalPnDiodeDigi.h.


Constructor & Destructor Documentation

EcalPnDiodeDigi::EcalPnDiodeDigi (  ) 

Definition at line 4 of file EcalPnDiodeDigi.cc.

00004                                  : size_(0), data_(MAXSAMPLES) {
00005 }

EcalPnDiodeDigi::EcalPnDiodeDigi ( const EcalPnDiodeDetId id  )  [explicit]

Definition at line 6 of file EcalPnDiodeDigi.cc.

00006                                                            : id_(id),
00007                                                                                    size_(0), data_(MAXSAMPLES) {
00008 }


Member Function Documentation

const EcalPnDiodeDetId& EcalPnDiodeDigi::id ( void   )  const [inline]

Definition at line 23 of file EcalPnDiodeDigi.h.

References id_.

Referenced by operator<<().

00023 { return id_; }

const EcalFEMSample& EcalPnDiodeDigi::operator[] ( int  i  )  const [inline]

Definition at line 26 of file EcalPnDiodeDigi.h.

References data_.

00026 { return data_[i]; }

const EcalFEMSample& EcalPnDiodeDigi::sample ( int  i  )  const [inline]

Definition at line 27 of file EcalPnDiodeDigi.h.

References data_.

Referenced by EcalHVScanAnalyzer::maxPNDiode(), and operator<<().

00027 { return data_[i]; }

void EcalPnDiodeDigi::setSample ( int  i,
const EcalFEMSample sam 
) [inline]

Definition at line 30 of file EcalPnDiodeDigi.h.

References data_.

Referenced by EcalTBDaqFormatter::DecodeMEM(), EcalTB07DaqFormatter::DecodeMEM(), and Ecal2004TBSource::produce().

00030 { data_[i]=sam; }

void EcalPnDiodeDigi::setSize ( int  size  ) 

Definition at line 10 of file EcalPnDiodeDigi.cc.

References MAXSAMPLES, and size_.

Referenced by EcalTBDaqFormatter::DecodeMEM(), EcalTB07DaqFormatter::DecodeMEM(), and Ecal2004TBSource::produce().

00010                                       {
00011   if (size<0) size_=0;
00012   else if (size>MAXSAMPLES) size_=MAXSAMPLES;
00013   else size_=size;
00014 }

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

Definition at line 24 of file EcalPnDiodeDigi.h.

References size_.

Referenced by operator<<().

00024 { return size_; }


Member Data Documentation

std::vector<EcalFEMSample> EcalPnDiodeDigi::data_ [private]

Definition at line 36 of file EcalPnDiodeDigi.h.

Referenced by operator[](), sample(), and setSample().

EcalPnDiodeDetId EcalPnDiodeDigi::id_ [private]

Definition at line 34 of file EcalPnDiodeDigi.h.

Referenced by id().

const int EcalPnDiodeDigi::MAXSAMPLES = 50 [static]

Definition at line 32 of file EcalPnDiodeDigi.h.

Referenced by setSize().

int EcalPnDiodeDigi::size_ [private]

Definition at line 35 of file EcalPnDiodeDigi.h.

Referenced by setSize(), and size().


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