#include <EcalEBPhase2TriggerPrimitiveDigi.h>
Public Types | |
typedef EBDetId | key_type |
For the sorted collection. More... | |
Public Member Functions | |
EcalEBPhase2TriggerPrimitiveDigi () | |
EcalEBPhase2TriggerPrimitiveDigi (const EBDetId &id) | |
int | encodedEt () const |
get the 12 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 EcalEBPhase2TriggerPrimitiveSample & | operator[] (int i) const |
const EcalEBPhase2TriggerPrimitiveSample & | sample (int i) const |
int | sampleOfInterest () const |
Gets the interesting sample. More... | |
void | setSample (int i, const EcalEBPhase2TriggerPrimitiveSample &sam) |
void | setSampleValue (int i, uint16_t value) |
void | setSize (int size) |
int | size () const |
void | swap (EcalEBPhase2TriggerPrimitiveDigi &rh) |
int | time () const |
Time info. More... | |
Private Attributes | |
std::vector< EcalEBPhase2TriggerPrimitiveSample > | data_ |
EBDetId | id_ |
int | size_ |
Definition at line 15 of file EcalEBPhase2TriggerPrimitiveDigi.h.
For the sorted collection.
Definition at line 17 of file EcalEBPhase2TriggerPrimitiveDigi.h.
EcalEBPhase2TriggerPrimitiveDigi::EcalEBPhase2TriggerPrimitiveDigi | ( | ) |
Definition at line 8 of file EcalEBPhase2TriggerPrimitiveDigi.cc.
EcalEBPhase2TriggerPrimitiveDigi::EcalEBPhase2TriggerPrimitiveDigi | ( | const EBDetId & | id | ) |
Definition at line 10 of file EcalEBPhase2TriggerPrimitiveDigi.cc.
int EcalEBPhase2TriggerPrimitiveDigi::encodedEt | ( | ) | const |
get the 12 bits Et of interesting sample
get the encoded/compressed Et of interesting sample
Definition at line 28 of file EcalEBPhase2TriggerPrimitiveDigi.cc.
References data_, sample(), and sampleOfInterest().
|
inline |
Definition at line 28 of file EcalEBPhase2TriggerPrimitiveDigi.h.
References id_.
Referenced by operator<<().
bool EcalEBPhase2TriggerPrimitiveDigi::isDebug | ( | ) | const |
True if debug mode (# of samples > 1)
Definition at line 52 of file EcalEBPhase2TriggerPrimitiveDigi.cc.
References size_.
bool EcalEBPhase2TriggerPrimitiveDigi::l1aSpike | ( | ) | const |
Spike flag.
Definition at line 36 of file EcalEBPhase2TriggerPrimitiveDigi.cc.
References data_, sample(), and sampleOfInterest().
|
inline |
Definition at line 31 of file EcalEBPhase2TriggerPrimitiveDigi.h.
References data_, and mps_fire::i.
|
inline |
Definition at line 32 of file EcalEBPhase2TriggerPrimitiveDigi.h.
References data_, and mps_fire::i.
Referenced by encodedEt(), l1aSpike(), operator<<(), and time().
int EcalEBPhase2TriggerPrimitiveDigi::sampleOfInterest | ( | ) | const |
Gets the interesting sample.
Definition at line 17 of file EcalEBPhase2TriggerPrimitiveDigi.cc.
References size_.
Referenced by encodedEt(), l1aSpike(), and time().
void EcalEBPhase2TriggerPrimitiveDigi::setSample | ( | int | i, |
const EcalEBPhase2TriggerPrimitiveSample & | sam | ||
) |
Definition at line 13 of file EcalEBPhase2TriggerPrimitiveDigi.cc.
References data_, and mps_fire::i.
|
inline |
Definition at line 36 of file EcalEBPhase2TriggerPrimitiveDigi.h.
References data_, and mps_fire::i.
void EcalEBPhase2TriggerPrimitiveDigi::setSize | ( | int | size | ) |
Definition at line 54 of file EcalEBPhase2TriggerPrimitiveDigi.cc.
References MAXSAMPLES, and size_.
|
inline |
Definition at line 29 of file EcalEBPhase2TriggerPrimitiveDigi.h.
References size_.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), and operator<<().
|
inline |
Definition at line 22 of file EcalEBPhase2TriggerPrimitiveDigi.h.
References data_, id_, size_, and swap().
int EcalEBPhase2TriggerPrimitiveDigi::time | ( | ) | const |
Time info.
Definition at line 44 of file EcalEBPhase2TriggerPrimitiveDigi.cc.
References data_, sample(), and sampleOfInterest().
|
private |
Definition at line 56 of file EcalEBPhase2TriggerPrimitiveDigi.h.
Referenced by encodedEt(), l1aSpike(), operator[](), sample(), setSample(), setSampleValue(), swap(), and time().
|
private |
Definition at line 54 of file EcalEBPhase2TriggerPrimitiveDigi.h.
|
private |
Definition at line 55 of file EcalEBPhase2TriggerPrimitiveDigi.h.
Referenced by isDebug(), sampleOfInterest(), setSize(), size(), and swap().