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

Definition at line 15 of file EcalPnDiodeDigi.h.

Member Typedef Documentation

For the sorted collection.

Definition at line 17 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 ( ) const
inline

Definition at line 22 of file EcalPnDiodeDigi.h.

References id_.

Referenced by operator<<().

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

Definition at line 25 of file EcalPnDiodeDigi.h.

References data_, and i.

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

Definition at line 26 of file EcalPnDiodeDigi.h.

References data_, and i.

Referenced by operator<<().

26 { 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 29 of file EcalPnDiodeDigi.h.

References data_, and i.

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

29 { 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 23 of file EcalPnDiodeDigi.h.

References size_.

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

23 { return size_; }

Member Data Documentation

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

Definition at line 35 of file EcalPnDiodeDigi.h.

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

EcalPnDiodeDetId EcalPnDiodeDigi::id_
private

Definition at line 33 of file EcalPnDiodeDigi.h.

Referenced by id().

const int EcalPnDiodeDigi::MAXSAMPLES = 50
static

Definition at line 31 of file EcalPnDiodeDigi.h.

Referenced by setSize().

int EcalPnDiodeDigi::size_
private

Definition at line 34 of file EcalPnDiodeDigi.h.

Referenced by setSize(), and size().