#include <EcalTriggerPrimitiveDigi.h>
Public Types | |
typedef EcalTrigTowerDetId | key_type |
For the sorted collection. More... | |
Public Member Functions | |
int | compressedEt () const |
get the encoded/compressed Et of interesting sample More... | |
EcalTriggerPrimitiveDigi () | |
EcalTriggerPrimitiveDigi (const EcalTrigTowerDetId &id) | |
bool | fineGrain () const |
get the fine-grain bit of interesting sample More... | |
const EcalTrigTowerDetId & | id () const |
bool | isDebug () const |
True if debug mode (# of samples > 1) More... | |
int | l1aSpike () const |
const EcalTriggerPrimitiveSample & | operator[] (int i) const |
const EcalTriggerPrimitiveSample & | sample (int i) const |
int | sampleOfInterest () const |
Gets the interesting sample. More... | |
void | setSample (int i, const EcalTriggerPrimitiveSample &sam) |
void | setSampleValue (int i, uint16_t value) |
void | setSize (int size) |
int | sFGVB () const |
int | size () const |
void | swap (EcalTriggerPrimitiveDigi &rh) |
int | ttFlag () const |
get the Trigger tower Flag of interesting sample More... | |
Static Public Attributes | |
static const int | MAXSAMPLES = 20 |
Private Attributes | |
std::vector< EcalTriggerPrimitiveSample > | data_ |
EcalTrigTowerDetId | id_ |
int | size_ |
see also EcalTrigPrimCompactColl.
Definition at line 16 of file EcalTriggerPrimitiveDigi.h.
For the sorted collection.
Definition at line 18 of file EcalTriggerPrimitiveDigi.h.
EcalTriggerPrimitiveDigi::EcalTriggerPrimitiveDigi | ( | ) |
Definition at line 4 of file EcalTriggerPrimitiveDigi.cc.
|
explicit |
Definition at line 6 of file EcalTriggerPrimitiveDigi.cc.
int EcalTriggerPrimitiveDigi::compressedEt | ( | ) | const |
get the encoded/compressed Et of interesting sample
Definition at line 19 of file EcalTriggerPrimitiveDigi.cc.
References data_, sample(), and sampleOfInterest().
Referenced by TCCBlockFormatter::DigiToRaw(), EcalTPGScale::getTPGInGeV(), EcalFEtoDigi::produce(), and EcalTrigPrimFunctionalAlgo::run_part2().
bool EcalTriggerPrimitiveDigi::fineGrain | ( | ) | const |
get the fine-grain bit of interesting sample
Definition at line 28 of file EcalTriggerPrimitiveDigi.cc.
References data_, sample(), and sampleOfInterest().
Referenced by TCCBlockFormatter::DigiToRaw(), and EcalFEtoDigi::produce().
|
inline |
Definition at line 29 of file EcalTriggerPrimitiveDigi.h.
References id_.
Referenced by TCCBlockFormatter::DigiToRaw(), EcalTPGScale::getTPGInGeV(), operator<<(), EcalSelectiveReadoutProducer::printTTFlags(), and EcalFEtoDigi::produce().
bool EcalTriggerPrimitiveDigi::isDebug | ( | ) | const |
True if debug mode (# of samples > 1)
Definition at line 52 of file EcalTriggerPrimitiveDigi.cc.
References size_.
|
inline |
Gets the L1A spike detection flag. Beware the flag is inverted. Deprecated, use instead sFGVB() method, whose name is less missleading
Definition at line 59 of file EcalTriggerPrimitiveDigi.h.
References sFGVB().
|
inline |
Definition at line 32 of file EcalTriggerPrimitiveDigi.h.
References data_, and mps_fire::i.
|
inline |
Definition at line 33 of file EcalTriggerPrimitiveDigi.h.
References data_, and mps_fire::i.
Referenced by compressedEt(), fineGrain(), operator<<(), sFGVB(), and ttFlag().
int EcalTriggerPrimitiveDigi::sampleOfInterest | ( | ) | const |
Gets the interesting sample.
Definition at line 9 of file EcalTriggerPrimitiveDigi.cc.
References size_.
Referenced by compressedEt(), fineGrain(), sFGVB(), and ttFlag().
|
inline |
Definition at line 36 of file EcalTriggerPrimitiveDigi.h.
References data_, and mps_fire::i.
Referenced by DCCEETCCBlock::addTriggerPrimitivesToCollection(), EcalTPGCompressor::compress(), EcalTBDaqFormatter::interpretRawData(), EcalTB07DaqFormatter::interpretRawData(), l1t::stage2::CaloLayer1Unpacker::makeECalTPGs(), L1TCaloLayer1RawToDigi::makeECalTPGs(), l1t::stage2::CaloLayer1Unpacker::makeECalTPGs5BX(), l1t::stage2::CaloLayer1Unpacker::makeECalTPGs5BX_HCALFB(), l1t::stage2::CaloLayer1Unpacker::makeECalTPGs_HCALFB(), L1RCTTPGProvider::produce(), EcalFEtoDigi::produce(), MaskedRctInputDigiProducer::produce(), RctInputTextToDigi::produce(), EcalSimpleProducer::produce(), EcalTrigPrimFunctionalAlgo::run_part2(), and L1DummyProducer::SimpleDigi().
|
inline |
Definition at line 37 of file EcalTriggerPrimitiveDigi.h.
References data_, and mps_fire::i.
Referenced by DCCEBTCCBlock::addTriggerPrimitivesToCollection().
void EcalTriggerPrimitiveDigi::setSize | ( | int | size | ) |
Definition at line 60 of file EcalTriggerPrimitiveDigi.cc.
References MAXSAMPLES, size(), and size_.
Referenced by EcalTPGCompressor::compress(), L1TStage2CaloLayer1::dqmAnalyze(), EcalTBDaqFormatter::interpretRawData(), EcalTB07DaqFormatter::interpretRawData(), l1t::stage2::CaloLayer1Unpacker::makeECalTPGs(), L1TCaloLayer1RawToDigi::makeECalTPGs(), l1t::stage2::CaloLayer1Unpacker::makeECalTPGs5BX(), l1t::stage2::CaloLayer1Unpacker::makeECalTPGs5BX_HCALFB(), l1t::stage2::CaloLayer1Unpacker::makeECalTPGs_HCALFB(), L1RCTTPGProvider::produce(), EcalFEtoDigi::produce(), MaskedRctInputDigiProducer::produce(), RctInputTextToDigi::produce(), EcalSimpleProducer::produce(), EcalTrigPrimFunctionalAlgo::run_part2(), and L1DummyProducer::SimpleDigi().
int EcalTriggerPrimitiveDigi::sFGVB | ( | ) | const |
Gets the "strip fine grain veto bit" (sFGVB) used as L1A spike detection
Definition at line 44 of file EcalTriggerPrimitiveDigi.cc.
References data_, sample(), and sampleOfInterest().
Referenced by l1aSpike().
|
inline |
Definition at line 30 of file EcalTriggerPrimitiveDigi.h.
References size_.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), TCCBlockFormatter::DigiToRaw(), operator<<(), EcalSelectiveReadoutProducer::printTTFlags(), EcalFEtoDigi::produce(), and setSize().
|
inline |
Definition at line 23 of file EcalTriggerPrimitiveDigi.h.
References data_, id_, size_, and std::swap().
int EcalTriggerPrimitiveDigi::ttFlag | ( | ) | const |
get the Trigger tower Flag of interesting sample
Definition at line 36 of file EcalTriggerPrimitiveDigi.cc.
References data_, sample(), and sampleOfInterest().
Referenced by TCCBlockFormatter::DigiToRaw(), EcalSelectiveReadoutProducer::printTTFlags(), and EcalFEtoDigi::produce().
|
private |
Definition at line 70 of file EcalTriggerPrimitiveDigi.h.
Referenced by compressedEt(), fineGrain(), operator[](), sample(), setSample(), setSampleValue(), sFGVB(), swap(), and ttFlag().
|
private |
Definition at line 68 of file EcalTriggerPrimitiveDigi.h.
|
static |
Definition at line 39 of file EcalTriggerPrimitiveDigi.h.
Referenced by setSize().
|
private |
Definition at line 69 of file EcalTriggerPrimitiveDigi.h.
Referenced by isDebug(), sampleOfInterest(), setSize(), size(), and swap().