#include <EcalTriggerPrimitiveDigi.h>
Public Types | |
typedef EcalTrigTowerDetId | key_type |
For the sorted collection. | |
Public Member Functions | |
int | compressedEt () const |
get the encoded/compressed Et of interesting sample | |
EcalTriggerPrimitiveDigi () | |
EcalTriggerPrimitiveDigi (const EcalTrigTowerDetId &id) | |
bool | fineGrain () const |
get the fine-grain bit of interesting sample | |
const EcalTrigTowerDetId & | id () const |
bool | isDebug () const |
True if debug mode (# of samples > 1) | |
int | l1aSpike () const |
const EcalTriggerPrimitiveSample & | operator[] (int i) const |
const EcalTriggerPrimitiveSample & | sample (int i) const |
int | sampleOfInterest () const |
Gets the interesting sample. | |
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 | |
Static Public Attributes | |
static const int | MAXSAMPLES = 20 |
Private Attributes | |
std::vector < EcalTriggerPrimitiveSample > | data_ |
EcalTrigTowerDetId | id_ |
int | size_ |
For the sorted collection.
Definition at line 20 of file EcalTriggerPrimitiveDigi.h.
EcalTriggerPrimitiveDigi::EcalTriggerPrimitiveDigi | ( | ) |
Definition at line 5 of file EcalTriggerPrimitiveDigi.cc.
: size_(0), data_(MAXSAMPLES) { }
EcalTriggerPrimitiveDigi::EcalTriggerPrimitiveDigi | ( | const EcalTrigTowerDetId & | id | ) | [explicit] |
Definition at line 7 of file EcalTriggerPrimitiveDigi.cc.
: id_(id), size_(0), data_(MAXSAMPLES) { }
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 TPGCheck::analyze(), EcalTrigPrimAnalyzer::analyze(), EcalTrigPrimAnalyzerMIPs::analyze(), TCCBlockFormatter::DigiToRaw(), EcalTPGScale::getTPGInGeV(), EcalFEtoDigi::produce(), and EcalTrigPrimFunctionalAlgo::run_part2().
{ int sample = sampleOfInterest(); if (sample != -1) return data_[sample].compressedEt(); else return -1; }
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 TPGCheck::analyze(), EcalTrigPrimAnalyzer::analyze(), EcalTrigPrimAnalyzerMIPs::analyze(), TCCBlockFormatter::DigiToRaw(), and EcalFEtoDigi::produce().
{ int sample = sampleOfInterest(); if (sample != -1) return data_[sample].fineGrain(); else return false; }
const EcalTrigTowerDetId& EcalTriggerPrimitiveDigi::id | ( | void | ) | const [inline] |
Definition at line 32 of file EcalTriggerPrimitiveDigi.h.
References id_.
Referenced by EcalTPGAnalyzer::analyze(), TPGCheck::analyze(), EcalTrigPrimAnalyzer::analyze(), EcalTrigPrimAnalyzerMIPs::analyze(), TCCBlockFormatter::DigiToRaw(), EcalSimRawData::getTp(), EcalTPGScale::getTPGInGeV(), operator<<(), and EcalFEtoDigi::produce().
{ return id_; }
bool EcalTriggerPrimitiveDigi::isDebug | ( | ) | const |
True if debug mode (# of samples > 1)
Definition at line 59 of file EcalTriggerPrimitiveDigi.cc.
References size_.
int EcalTriggerPrimitiveDigi::l1aSpike | ( | ) | const [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 63 of file EcalTriggerPrimitiveDigi.h.
References sFGVB().
{ return sFGVB(); }
const EcalTriggerPrimitiveSample& EcalTriggerPrimitiveDigi::operator[] | ( | int | i | ) | const [inline] |
const EcalTriggerPrimitiveSample& EcalTriggerPrimitiveDigi::sample | ( | int | i | ) | const [inline] |
Definition at line 36 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().
void EcalTriggerPrimitiveDigi::setSample | ( | int | i, |
const EcalTriggerPrimitiveSample & | sam | ||
) | [inline] |
Definition at line 39 of file EcalTriggerPrimitiveDigi.h.
Referenced by DCCEETCCBlock::addTriggerPrimitivesToCollection(), EcalTPGCompressor::compress(), EcalElectronicsMapper::fillMaps(), EcalTB07DaqFormatter::interpretRawData(), EcalTBDaqFormatter::interpretRawData(), EcalFEtoDigi::produce(), RctInputTextToDigi::produce(), L1RCTTPGProvider::produce(), MaskedRctInputDigiProducer::produce(), EcalTrigPrimFunctionalAlgo::run_part2(), L1DummyProducer::SimpleDigi(), and EcalTrigPrimCompactColl::toEcalTrigPrimDigiCollection().
void EcalTriggerPrimitiveDigi::setSampleValue | ( | int | i, |
uint16_t | value | ||
) | [inline] |
Definition at line 40 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(), EcalFEtoDigi::produce(), RctInputTextToDigi::produce(), L1RCTTPGProvider::produce(), MaskedRctInputDigiProducer::produce(), EcalTrigPrimFunctionalAlgo::run_part2(), L1DummyProducer::SimpleDigi(), and EcalTrigPrimCompactColl::toEcalTrigPrimDigiCollection().
{ if (size<0) size_=0; else if (size>MAXSAMPLES) size_=MAXSAMPLES; else size_=size; }
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().
{ int sample = sampleOfInterest(); if (sample != -1) return data_[sample].l1aSpike(); else return -1; }
int EcalTriggerPrimitiveDigi::size | ( | void | ) | const [inline] |
Definition at line 33 of file EcalTriggerPrimitiveDigi.h.
References size_.
Referenced by TCCBlockFormatter::DigiToRaw(), operator<<(), EcalFEtoDigi::produce(), and setSize().
{ return size_; }
void EcalTriggerPrimitiveDigi::swap | ( | EcalTriggerPrimitiveDigi & | rh | ) | [inline] |
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 TPGCheck::analyze(), EcalTrigPrimAnalyzer::analyze(), EcalTrigPrimAnalyzerMIPs::analyze(), TCCBlockFormatter::DigiToRaw(), and EcalFEtoDigi::produce().
{ int sample = sampleOfInterest(); if (sample != -1) return data_[sample].ttFlag(); else return -1; }
std::vector<EcalTriggerPrimitiveSample> EcalTriggerPrimitiveDigi::data_ [private] |
Definition at line 75 of file EcalTriggerPrimitiveDigi.h.
Referenced by compressedEt(), fineGrain(), operator[](), sample(), setSample(), setSampleValue(), sFGVB(), swap(), and ttFlag().
Definition at line 73 of file EcalTriggerPrimitiveDigi.h.
const int EcalTriggerPrimitiveDigi::MAXSAMPLES = 20 [static] |
Definition at line 42 of file EcalTriggerPrimitiveDigi.h.
Referenced by setSize().
int EcalTriggerPrimitiveDigi::size_ [private] |
Definition at line 74 of file EcalTriggerPrimitiveDigi.h.
Referenced by isDebug(), sampleOfInterest(), setSize(), size(), and swap().