#include <EcalEBTriggerPrimitiveDigi.h>
Public Types | |
typedef EBDetId | key_type |
For the sorted collection. More... | |
Public Member Functions | |
EcalEBTriggerPrimitiveDigi () | |
EcalEBTriggerPrimitiveDigi (const EBDetId &id) | |
int | encodedEt () const |
get the 10 bits Et of interesting sample More... | |
const EBDetId & | id () const |
bool | isDebug () const |
True if debug mode (# of samples > 1) More... | |
bool | l1aSpike () const |
Spike flag. More... | |
const EcalEBTriggerPrimitiveSample & | operator[] (int i) const |
const EcalEBTriggerPrimitiveSample & | sample (int i) const |
int | sampleOfInterest () const |
Gets the interesting sample. More... | |
void | setSample (int i, const EcalEBTriggerPrimitiveSample &sam) |
void | setSampleValue (int i, uint16_t value) |
void | setSize (int size) |
int | size () const |
void | swap (EcalEBTriggerPrimitiveDigi &rh) |
int | time () const |
Time info. More... | |
Static Public Attributes | |
static const int | MAXSAMPLES = 20 |
Private Attributes | |
std::vector< EcalEBTriggerPrimitiveSample > | data_ |
EBDetId | id_ |
int | size_ |
Definition at line 15 of file EcalEBTriggerPrimitiveDigi.h.
For the sorted collection.
Definition at line 17 of file EcalEBTriggerPrimitiveDigi.h.
EcalEBTriggerPrimitiveDigi::EcalEBTriggerPrimitiveDigi | ( | ) |
Definition at line 4 of file EcalEBTriggerPrimitiveDigi.cc.
EcalEBTriggerPrimitiveDigi::EcalEBTriggerPrimitiveDigi | ( | const EBDetId & | id | ) |
Definition at line 9 of file EcalEBTriggerPrimitiveDigi.cc.
int EcalEBTriggerPrimitiveDigi::encodedEt | ( | ) | const |
get the 10 bits Et of interesting sample
get the encoded/compressed Et of interesting sample
Definition at line 27 of file EcalEBTriggerPrimitiveDigi.cc.
References data_, sample(), and sampleOfInterest().
|
inline |
Definition at line 28 of file EcalEBTriggerPrimitiveDigi.h.
References id_.
Referenced by operator<<().
bool EcalEBTriggerPrimitiveDigi::isDebug | ( | ) | const |
True if debug mode (# of samples > 1)
Definition at line 51 of file EcalEBTriggerPrimitiveDigi.cc.
References size_.
bool EcalEBTriggerPrimitiveDigi::l1aSpike | ( | ) | const |
Spike flag.
Definition at line 35 of file EcalEBTriggerPrimitiveDigi.cc.
References data_, sample(), and sampleOfInterest().
|
inline |
Definition at line 31 of file EcalEBTriggerPrimitiveDigi.h.
References data_, and mps_fire::i.
|
inline |
Definition at line 32 of file EcalEBTriggerPrimitiveDigi.h.
References data_, and mps_fire::i.
Referenced by encodedEt(), l1aSpike(), operator<<(), and time().
int EcalEBTriggerPrimitiveDigi::sampleOfInterest | ( | ) | const |
Gets the interesting sample.
Definition at line 17 of file EcalEBTriggerPrimitiveDigi.cc.
References size_.
Referenced by encodedEt(), l1aSpike(), and time().
void EcalEBTriggerPrimitiveDigi::setSample | ( | int | i, |
const EcalEBTriggerPrimitiveSample & | sam | ||
) |
Definition at line 11 of file EcalEBTriggerPrimitiveDigi.cc.
References data_, and mps_fire::i.
|
inline |
Definition at line 36 of file EcalEBTriggerPrimitiveDigi.h.
References data_, and mps_fire::i.
void EcalEBTriggerPrimitiveDigi::setSize | ( | int | size | ) |
Definition at line 59 of file EcalEBTriggerPrimitiveDigi.cc.
References MAXSAMPLES, size(), and size_.
|
inline |
Definition at line 29 of file EcalEBTriggerPrimitiveDigi.h.
References size_.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), operator<<(), and setSize().
|
inline |
Definition at line 22 of file EcalEBTriggerPrimitiveDigi.h.
References data_, id_, size_, and std::swap().
int EcalEBTriggerPrimitiveDigi::time | ( | ) | const |
Time info.
Definition at line 43 of file EcalEBTriggerPrimitiveDigi.cc.
References data_, sample(), and sampleOfInterest().
|
private |
Definition at line 58 of file EcalEBTriggerPrimitiveDigi.h.
Referenced by encodedEt(), l1aSpike(), operator[](), sample(), setSample(), setSampleValue(), swap(), and time().
|
private |
Definition at line 56 of file EcalEBTriggerPrimitiveDigi.h.
|
static |
Definition at line 38 of file EcalEBTriggerPrimitiveDigi.h.
Referenced by setSize().
|
private |
Definition at line 57 of file EcalEBTriggerPrimitiveDigi.h.
Referenced by isDebug(), sampleOfInterest(), setSize(), size(), and swap().