#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 18 of file EcalTriggerPrimitiveDigi.h.
For the sorted collection.
Definition at line 20 of file EcalTriggerPrimitiveDigi.h.
EcalTriggerPrimitiveDigi::EcalTriggerPrimitiveDigi | ( | ) |
Definition at line 4 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 24 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 34 of file EcalTriggerPrimitiveDigi.cc.
References data_, sample(), and sampleOfInterest().
Referenced by EcalTrigPrimAnalyzer::analyze(), TPGCheck::analyze(), TCCBlockFormatter::DigiToRaw(), and EcalFEtoDigi::produce().
|
inline |
Definition at line 35 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 61 of file EcalTriggerPrimitiveDigi.cc.
References size_.
Referenced by l1aSpike().
|
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 66 of file EcalTriggerPrimitiveDigi.h.
References isDebug(), sampleOfInterest(), and sFGVB().
|
inline |
Definition at line 38 of file EcalTriggerPrimitiveDigi.h.
|
inline |
Definition at line 39 of file EcalTriggerPrimitiveDigi.h.
References data_, i, setSize(), and size().
Referenced by compressedEt(), fineGrain(), L1EmulBias::ModifyCollection(), operator<<(), sFGVB(), and ttFlag().
int EcalTriggerPrimitiveDigi::sampleOfInterest | ( | ) | const |
Gets the interesting sample.
Definition at line 13 of file EcalTriggerPrimitiveDigi.cc.
References size_.
Referenced by compressedEt(), fineGrain(), EcalSimRawData::getTp(), l1aSpike(), sFGVB(), and ttFlag().
|
inline |
Definition at line 42 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 43 of file EcalTriggerPrimitiveDigi.h.
Referenced by DCCEBTCCBlock::addTriggerPrimitivesToCollection(), and L1EmulBias::ModifyCollection().
void EcalTriggerPrimitiveDigi::setSize | ( | int | size | ) |
Definition at line 70 of file EcalTriggerPrimitiveDigi.cc.
References MAXSAMPLES, size(), and size_.
Referenced by L1TStage2CaloLayer1::analyze(), EcalTPGCompressor::compress(), EcalElectronicsMapper::fillMaps(), EcalTB07DaqFormatter::interpretRawData(), EcalTBDaqFormatter::interpretRawData(), L1TCaloLayer1RawToDigi::makeECalTPGs(), L1RCTTPGProvider::produce(), EcalFEtoDigi::produce(), MaskedRctInputDigiProducer::produce(), RctInputTextToDigi::produce(), EcalSimpleProducer::produce(), EcalTrigPrimFunctionalAlgo::run_part2(), sample(), 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 52 of file EcalTriggerPrimitiveDigi.cc.
References data_, sample(), and sampleOfInterest().
Referenced by l1aSpike().
|
inline |
Definition at line 36 of file EcalTriggerPrimitiveDigi.h.
References size_.
Referenced by ntuple._Collection::__iter__(), ntuple._Collection::__len__(), TCCBlockFormatter::DigiToRaw(), operator<<(), EcalSelectiveReadoutProducer::printTTFlags(), EcalFEtoDigi::produce(), sample(), and setSize().
|
inline |
Definition at line 28 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 43 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 77 of file EcalTriggerPrimitiveDigi.h.
Referenced by compressedEt(), fineGrain(), operator[](), sample(), setSample(), setSampleValue(), sFGVB(), swap(), and ttFlag().
|
private |
Definition at line 75 of file EcalTriggerPrimitiveDigi.h.
|
static |
Definition at line 45 of file EcalTriggerPrimitiveDigi.h.
Referenced by setSize().
|
private |
Definition at line 76 of file EcalTriggerPrimitiveDigi.h.
Referenced by isDebug(), sampleOfInterest(), setSize(), size(), and swap().