#include <EcalPseudoStripInputDigi.h>
Public Types | |
typedef EcalTriggerElectronicsId | key_type |
For the sorted collection. | |
Public Member Functions | |
EcalPseudoStripInputDigi () | |
EcalPseudoStripInputDigi (const EcalTriggerElectronicsId &id) | |
bool | fineGrain () const |
get the fine-grain bit of interesting sample | |
const EcalTriggerElectronicsId & | id () const |
bool | isDebug () const |
True if debug mode (# of samples > 1) | |
const EcalPseudoStripInputSample & | operator[] (int i) const |
int | pseudoStripInput () const |
get the encoded/compressed Et of interesting sample | |
const EcalPseudoStripInputSample & | sample (int i) const |
int | sampleOfInterest () const |
Gets the interesting sample. | |
void | setSample (int i, const EcalPseudoStripInputSample &sam) |
void | setSampleValue (int i, uint16_t value) |
void | setSize (int size) |
int | size () const |
Static Public Attributes | |
static const int | MAXSAMPLES = 20 |
Private Attributes | |
std::vector < EcalPseudoStripInputSample > | data_ |
EcalTriggerElectronicsId | id_ |
int | size_ |
$Id : $
Definition at line 16 of file EcalPseudoStripInputDigi.h.
For the sorted collection.
Definition at line 18 of file EcalPseudoStripInputDigi.h.
EcalPseudoStripInputDigi::EcalPseudoStripInputDigi | ( | ) |
Definition at line 4 of file EcalPseudoStripInputDigi.cc.
: size_(0), data_(MAXSAMPLES) { }
EcalPseudoStripInputDigi::EcalPseudoStripInputDigi | ( | const EcalTriggerElectronicsId & | id | ) | [explicit] |
Definition at line 7 of file EcalPseudoStripInputDigi.cc.
: id_(id), size_(0), data_(MAXSAMPLES) { }
bool EcalPseudoStripInputDigi::fineGrain | ( | ) | const |
get the fine-grain bit of interesting sample
Definition at line 32 of file EcalPseudoStripInputDigi.cc.
References data_, sample(), and sampleOfInterest().
{ int sample = sampleOfInterest(); if (sample != -1) return data_[sample].fineGrain(); else return false; }
const EcalTriggerElectronicsId& EcalPseudoStripInputDigi::id | ( | void | ) | const [inline] |
Definition at line 23 of file EcalPseudoStripInputDigi.h.
References id_.
Referenced by operator<<().
{ return id_; }
bool EcalPseudoStripInputDigi::isDebug | ( | ) | const |
True if debug mode (# of samples > 1)
Definition at line 41 of file EcalPseudoStripInputDigi.cc.
References size_.
const EcalPseudoStripInputSample& EcalPseudoStripInputDigi::operator[] | ( | int | i | ) | const [inline] |
int EcalPseudoStripInputDigi::pseudoStripInput | ( | ) | const |
get the encoded/compressed Et of interesting sample
get the pseudoStrip input of interesting sample
Definition at line 22 of file EcalPseudoStripInputDigi.cc.
References data_, sample(), and sampleOfInterest().
{ int sample = sampleOfInterest(); if (sample != -1) return data_[sample].pseudoStripInput(); else return -1; }
const EcalPseudoStripInputSample& EcalPseudoStripInputDigi::sample | ( | int | i | ) | const [inline] |
Definition at line 27 of file EcalPseudoStripInputDigi.h.
Referenced by fineGrain(), operator<<(), and pseudoStripInput().
int EcalPseudoStripInputDigi::sampleOfInterest | ( | ) | const |
Gets the interesting sample.
Definition at line 11 of file EcalPseudoStripInputDigi.cc.
References size_.
Referenced by fineGrain(), and pseudoStripInput().
void EcalPseudoStripInputDigi::setSample | ( | int | i, |
const EcalPseudoStripInputSample & | sam | ||
) | [inline] |
Definition at line 30 of file EcalPseudoStripInputDigi.h.
Referenced by EcalElectronicsMapper::fillMaps().
void EcalPseudoStripInputDigi::setSampleValue | ( | int | i, |
uint16_t | value | ||
) | [inline] |
Definition at line 31 of file EcalPseudoStripInputDigi.h.
Referenced by DCCEETCCBlock::addTriggerPrimitivesToCollection().
void EcalPseudoStripInputDigi::setSize | ( | int | size | ) |
Definition at line 50 of file EcalPseudoStripInputDigi.cc.
References MAXSAMPLES, size(), and size_.
Referenced by EcalElectronicsMapper::fillMaps().
{ if (size<0) size_=0; else if (size>MAXSAMPLES) size_=MAXSAMPLES; else size_=size; }
int EcalPseudoStripInputDigi::size | ( | void | ) | const [inline] |
Definition at line 24 of file EcalPseudoStripInputDigi.h.
References size_.
Referenced by operator<<(), and setSize().
{ return size_; }
std::vector<EcalPseudoStripInputSample> EcalPseudoStripInputDigi::data_ [private] |
Definition at line 52 of file EcalPseudoStripInputDigi.h.
Referenced by fineGrain(), operator[](), pseudoStripInput(), sample(), setSample(), and setSampleValue().
Definition at line 50 of file EcalPseudoStripInputDigi.h.
Referenced by id().
const int EcalPseudoStripInputDigi::MAXSAMPLES = 20 [static] |
Definition at line 33 of file EcalPseudoStripInputDigi.h.
Referenced by setSize().
int EcalPseudoStripInputDigi::size_ [private] |
Definition at line 51 of file EcalPseudoStripInputDigi.h.
Referenced by isDebug(), sampleOfInterest(), setSize(), and size().