#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 17 of file EcalTriggerPrimitiveDigi.h.
For the sorted collection.
Definition at line 19 of file EcalTriggerPrimitiveDigi.h.
EcalTriggerPrimitiveDigi::EcalTriggerPrimitiveDigi | ( | ) |
Definition at line 5 of file EcalTriggerPrimitiveDigi.cc.
|
explicit |
Definition at line 7 of file EcalTriggerPrimitiveDigi.cc.
int EcalTriggerPrimitiveDigi::compressedEt | ( | ) | const |
get the encoded/compressed Et of interesting sample
Definition at line 22 of file EcalTriggerPrimitiveDigi.cc.
References data_, sample(), and sampleOfInterest().
Referenced by EcalTrigPrimAnalyzer::analyze(), TPGCheck::analyze(), 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 32 of file EcalTriggerPrimitiveDigi.cc.
References data_, sample(), and sampleOfInterest().
Referenced by EcalTrigPrimAnalyzer::analyze(), TPGCheck::analyze(), TCCBlockFormatter::DigiToRaw(), and EcalFEtoDigi::produce().
|
inline |
Definition at line 31 of file EcalTriggerPrimitiveDigi.h.
References id_.
Referenced by EcalTPGAnalyzer::analyze(), EcalTrigPrimAnalyzer::analyze(), TPGCheck::analyze(), TCCBlockFormatter::DigiToRaw(), EcalSimRawData::getTp(), EcalTPGScale::getTPGInGeV(), operator<<(), EcalSelectiveReadoutProducer::printTTFlags(), and EcalFEtoDigi::produce().
bool EcalTriggerPrimitiveDigi::isDebug | ( | ) | const |
True if debug mode (# of samples > 1)
Definition at line 59 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 62 of file EcalTriggerPrimitiveDigi.h.
References sFGVB().
|
inline |
Definition at line 34 of file EcalTriggerPrimitiveDigi.h.
|
inline |
Definition at line 35 of file EcalTriggerPrimitiveDigi.h.
Referenced by compressedEt(), fineGrain(), L1EmulBias::ModifyCollection(), operator<<(), sFGVB(), and ttFlag().
int EcalTriggerPrimitiveDigi::sampleOfInterest | ( | ) | const |
Gets the interesting sample.
Definition at line 11 of file EcalTriggerPrimitiveDigi.cc.
References size_.
Referenced by compressedEt(), fineGrain(), EcalSimRawData::getTp(), sFGVB(), and ttFlag().
|
inline |
Definition at line 38 of file EcalTriggerPrimitiveDigi.h.
Referenced by DCCEETCCBlock::addTriggerPrimitivesToCollection(), EcalTPGCompressor::compress(), EcalElectronicsMapper::fillMaps(), EcalTB07DaqFormatter::interpretRawData(), EcalTBDaqFormatter::interpretRawData(), L1TCaloLayer1RawToDigi::makeECalTPGs(), L1RCTTPGProvider::produce(), EcalFEtoDigi::produce(), MaskedRctInputDigiProducer::produce(), RctInputTextToDigi::produce(), EcalSimpleProducer::produce(), EcalTrigPrimFunctionalAlgo::run_part2(), L1DummyProducer::SimpleDigi(), and EcalTrigPrimCompactColl::toEcalTrigPrimDigiCollection().
|
inline |
Definition at line 39 of file EcalTriggerPrimitiveDigi.h.
Referenced by DCCEBTCCBlock::addTriggerPrimitivesToCollection(), and L1EmulBias::ModifyCollection().
void EcalTriggerPrimitiveDigi::setSize | ( | int | size | ) |
Definition at line 68 of file EcalTriggerPrimitiveDigi.cc.
References MAXSAMPLES, size(), and size_.
Referenced by EcalTPGCompressor::compress(), EcalElectronicsMapper::fillMaps(), EcalTB07DaqFormatter::interpretRawData(), EcalTBDaqFormatter::interpretRawData(), L1TCaloLayer1RawToDigi::makeECalTPGs(), L1RCTTPGProvider::produce(), EcalFEtoDigi::produce(), MaskedRctInputDigiProducer::produce(), RctInputTextToDigi::produce(), EcalSimpleProducer::produce(), EcalTrigPrimFunctionalAlgo::run_part2(), L1DummyProducer::SimpleDigi(), and EcalTrigPrimCompactColl::toEcalTrigPrimDigiCollection().
int EcalTriggerPrimitiveDigi::sFGVB | ( | ) | const |
Gets the "strip fine grain veto bit" (sFGVB) used as L1A spike detection
Definition at line 50 of file EcalTriggerPrimitiveDigi.cc.
References data_, sample(), and sampleOfInterest().
Referenced by l1aSpike().
|
inline |
Definition at line 32 of file EcalTriggerPrimitiveDigi.h.
References size_.
Referenced by TCCBlockFormatter::DigiToRaw(), operator<<(), EcalSelectiveReadoutProducer::printTTFlags(), EcalFEtoDigi::produce(), and setSize().
|
inline |
Definition at line 25 of file EcalTriggerPrimitiveDigi.h.
References data_, id_, size_, and std::swap().
Referenced by swap().
int EcalTriggerPrimitiveDigi::ttFlag | ( | ) | const |
get the Trigger tower Flag of interesting sample
Definition at line 41 of file EcalTriggerPrimitiveDigi.cc.
References data_, sample(), and sampleOfInterest().
Referenced by EcalTrigPrimAnalyzer::analyze(), TPGCheck::analyze(), TCCBlockFormatter::DigiToRaw(), EcalSelectiveReadoutProducer::printTTFlags(), and EcalFEtoDigi::produce().
|
private |
Definition at line 74 of file EcalTriggerPrimitiveDigi.h.
Referenced by compressedEt(), fineGrain(), operator[](), sample(), setSample(), setSampleValue(), sFGVB(), swap(), and ttFlag().
|
private |
Definition at line 72 of file EcalTriggerPrimitiveDigi.h.
|
static |
Definition at line 41 of file EcalTriggerPrimitiveDigi.h.
Referenced by setSize().
|
private |
Definition at line 73 of file EcalTriggerPrimitiveDigi.h.
Referenced by isDebug(), sampleOfInterest(), setSize(), size(), and swap().