CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Static Public Attributes | Private Attributes
EcalPnDiodeDigi Class Reference

#include <EcalPnDiodeDigi.h>

Public Types

typedef EcalPnDiodeDetId key_type
 For the sorted collection. More...
 

Public Member Functions

 EcalPnDiodeDigi ()
 
 EcalPnDiodeDigi (const EcalPnDiodeDetId &id)
 
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

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.

4  : size_(0), data_(MAXSAMPLES) {
5 }
std::vector< EcalFEMSample > data_
static const int MAXSAMPLES
EcalPnDiodeDigi::EcalPnDiodeDigi ( const EcalPnDiodeDetId id)
explicit

Definition at line 6 of file EcalPnDiodeDigi.cc.

6  : id_(id),
7  size_(0), data_(MAXSAMPLES) {
8 }
EcalPnDiodeDetId id_
std::vector< EcalFEMSample > data_
static const int MAXSAMPLES

Member Function Documentation

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

Definition at line 23 of file EcalPnDiodeDigi.h.

References id_.

Referenced by operator<<().

23 { return id_; }
EcalPnDiodeDetId id_
const EcalFEMSample& EcalPnDiodeDigi::operator[] ( int  i) const
inline

Definition at line 26 of file EcalPnDiodeDigi.h.

References data_, and i.

26 { return data_[i]; }
int i
Definition: DBlmapReader.cc:9
std::vector< EcalFEMSample > data_
const EcalFEMSample& EcalPnDiodeDigi::sample ( int  i) const
inline

Definition at line 27 of file EcalPnDiodeDigi.h.

References data_, and i.

Referenced by operator<<().

27 { return data_[i]; }
int i
Definition: DBlmapReader.cc:9
std::vector< EcalFEMSample > data_
void EcalPnDiodeDigi::setSample ( int  i,
const EcalFEMSample sam 
)
inline

Definition at line 30 of file EcalPnDiodeDigi.h.

References data_, and i.

Referenced by EcalTBDaqFormatter::DecodeMEM(), EcalTB07DaqFormatter::DecodeMEM(), and DCCMemBlock::fillPnDiodeDigisCollection().

30 { data_[i]=sam; }
int i
Definition: DBlmapReader.cc:9
std::vector< EcalFEMSample > data_
void EcalPnDiodeDigi::setSize ( int  size)

Definition at line 10 of file EcalPnDiodeDigi.cc.

References MAXSAMPLES, size(), and size_.

Referenced by EcalTBDaqFormatter::DecodeMEM(), EcalTB07DaqFormatter::DecodeMEM(), and DCCMemBlock::fillPnDiodeDigisCollection().

10  {
11  if (size<0) size_=0;
12  else if (size>MAXSAMPLES) size_=MAXSAMPLES;
13  else size_=size;
14 }
int size() const
static const int MAXSAMPLES
int EcalPnDiodeDigi::size ( void  ) const
inline

Definition at line 24 of file EcalPnDiodeDigi.h.

References size_.

Referenced by operator<<(), and setSize().

24 { 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().