#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 17 of file EcalEBTriggerPrimitiveDigi.h.
For the sorted collection.
Definition at line 19 of file EcalEBTriggerPrimitiveDigi.h.
EcalEBTriggerPrimitiveDigi::EcalEBTriggerPrimitiveDigi | ( | ) |
Definition at line 5 of file EcalEBTriggerPrimitiveDigi.cc.
EcalEBTriggerPrimitiveDigi::EcalEBTriggerPrimitiveDigi | ( | const EBDetId & | id | ) |
Definition at line 11 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 34 of file EcalEBTriggerPrimitiveDigi.cc.
References data_, sample(), and sampleOfInterest().
Referenced by EcalEBTrigPrimAnalyzer::analyze().
|
inline |
Definition at line 31 of file EcalEBTriggerPrimitiveDigi.h.
References id_.
Referenced by EcalEBTrigPrimAnalyzer::analyze(), and operator<<().
bool EcalEBTriggerPrimitiveDigi::isDebug | ( | ) | const |
True if debug mode (# of samples > 1)
Definition at line 62 of file EcalEBTriggerPrimitiveDigi.cc.
References size_.
bool EcalEBTriggerPrimitiveDigi::l1aSpike | ( | ) | const |
Spike flag.
Definition at line 44 of file EcalEBTriggerPrimitiveDigi.cc.
References data_, sample(), and sampleOfInterest().
|
inline |
Definition at line 34 of file EcalEBTriggerPrimitiveDigi.h.
References data_, and mps_fire::i.
|
inline |
Definition at line 35 of file EcalEBTriggerPrimitiveDigi.h.
References data_, mps_fire::i, setSample(), setSize(), and size().
Referenced by EcalEBTrigPrimAnalyzer::analyze(), encodedEt(), l1aSpike(), operator<<(), and time().
int EcalEBTriggerPrimitiveDigi::sampleOfInterest | ( | ) | const |
Gets the interesting sample.
Definition at line 23 of file EcalEBTriggerPrimitiveDigi.cc.
References size_.
Referenced by encodedEt(), l1aSpike(), and time().
void EcalEBTriggerPrimitiveDigi::setSample | ( | int | i, |
const EcalEBTriggerPrimitiveSample & | sam | ||
) |
Definition at line 15 of file EcalEBTriggerPrimitiveDigi.cc.
References data_, and mps_fire::i.
Referenced by EcalEBTrigPrimTestAlgo::run(), and sample().
|
inline |
Definition at line 39 of file EcalEBTriggerPrimitiveDigi.h.
References data_, and mps_fire::i.
void EcalEBTriggerPrimitiveDigi::setSize | ( | int | size | ) |
Definition at line 71 of file EcalEBTriggerPrimitiveDigi.cc.
References MAXSAMPLES, size(), and size_.
Referenced by EcalEBTrigPrimTestAlgo::run(), and sample().
|
inline |
Definition at line 32 of file EcalEBTriggerPrimitiveDigi.h.
References size_.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), EcalEBTrigPrimAnalyzer::analyze(), operator<<(), EcalEBTrigPrimTestAlgo::run(), sample(), and setSize().
|
inline |
Definition at line 25 of file EcalEBTriggerPrimitiveDigi.h.
References data_, id_, size_, and std::swap().
Referenced by swap().
int EcalEBTriggerPrimitiveDigi::time | ( | ) | const |
Time info.
Definition at line 53 of file EcalEBTriggerPrimitiveDigi.cc.
References data_, sample(), and sampleOfInterest().
|
private |
Definition at line 61 of file EcalEBTriggerPrimitiveDigi.h.
Referenced by encodedEt(), l1aSpike(), operator[](), sample(), setSample(), setSampleValue(), swap(), and time().
|
private |
Definition at line 59 of file EcalEBTriggerPrimitiveDigi.h.
|
static |
Definition at line 41 of file EcalEBTriggerPrimitiveDigi.h.
Referenced by setSize().
|
private |
Definition at line 60 of file EcalEBTriggerPrimitiveDigi.h.
Referenced by isDebug(), sampleOfInterest(), setSize(), size(), and swap().