#include <EcalPnDiodeDigi.h>
Public Types | |
typedef EcalPnDiodeDetId | key_type |
For the sorted collection. | |
Public Member Functions | |
EcalPnDiodeDigi () | |
EcalPnDiodeDigi (const EcalPnDiodeDetId &id) | |
const EcalPnDiodeDetId & | id () const |
const EcalFEMSample & | operator[] (int i) const |
const EcalFEMSample & | sample (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< EcalFEMSample > | data_ |
EcalPnDiodeDetId | id_ |
int | size_ |
Definition at line 16 of file EcalPnDiodeDigi.h.
For the sorted collection.
Definition at line 18 of file EcalPnDiodeDigi.h.
EcalPnDiodeDigi::EcalPnDiodeDigi | ( | ) |
Definition at line 4 of file EcalPnDiodeDigi.cc.
: size_(0), data_(MAXSAMPLES) { }
EcalPnDiodeDigi::EcalPnDiodeDigi | ( | const EcalPnDiodeDetId & | id | ) | [explicit] |
Definition at line 6 of file EcalPnDiodeDigi.cc.
: id_(id), size_(0), data_(MAXSAMPLES) { }
const EcalPnDiodeDetId& EcalPnDiodeDigi::id | ( | void | ) | const [inline] |
Definition at line 23 of file EcalPnDiodeDigi.h.
References id_.
Referenced by operator<<().
{ return id_; }
const EcalFEMSample& EcalPnDiodeDigi::operator[] | ( | int | i | ) | const [inline] |
const EcalFEMSample& EcalPnDiodeDigi::sample | ( | int | i | ) | const [inline] |
Definition at line 27 of file EcalPnDiodeDigi.h.
Referenced by operator<<().
void EcalPnDiodeDigi::setSample | ( | int | i, |
const EcalFEMSample & | sam | ||
) | [inline] |
Definition at line 30 of file EcalPnDiodeDigi.h.
Referenced by EcalTBDaqFormatter::DecodeMEM(), EcalTB07DaqFormatter::DecodeMEM(), and DCCMemBlock::fillPnDiodeDigisCollection().
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().
{ if (size<0) size_=0; else if (size>MAXSAMPLES) size_=MAXSAMPLES; else size_=size; }
int EcalPnDiodeDigi::size | ( | void | ) | const [inline] |
Definition at line 24 of file EcalPnDiodeDigi.h.
References size_.
Referenced by operator<<(), and setSize().
{ return size_; }
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.