#include <DataFormats/HcalDigi/interface/HcalTriggerPrimitiveDigi.h>
Public Types | |
typedef HcalTrigTowerDetId | key_type |
For the sorted collection. | |
Public Member Functions | |
HcalTriggerPrimitiveDigi (const HcalTrigTowerDetId &id) | |
HcalTriggerPrimitiveDigi () | |
const HcalTrigTowerDetId & | id () const |
const HcalTriggerPrimitiveSample & | operator[] (int i) const |
int | presamples () const |
const HcalTriggerPrimitiveSample & | sample (int i) const |
void | setPresamples (int ps) |
void | setSample (int i, const HcalTriggerPrimitiveSample &sam) |
void | setSize (int size) |
int | size () const |
int | SOI_compressedEt () const |
Compressed ET for the "Sample of Interest". | |
bool | SOI_fineGrain () const |
Fine-grain bit for the "Sample of Interest". | |
const HcalTriggerPrimitiveSample & | t0 () const |
Full "Sample of Interest". | |
Static Public Attributes | |
static const int | MAXSAMPLES = 10 |
Private Attributes | |
HcalTriggerPrimitiveSample | data_ [MAXSAMPLES] |
int | hcalPresamples_ |
HcalTrigTowerDetId | id_ |
int | size_ |
Definition at line 15 of file HcalTriggerPrimitiveDigi.h.
HcalTriggerPrimitiveDigi::HcalTriggerPrimitiveDigi | ( | ) |
Definition at line 4 of file HcalTriggerPrimitiveDigi.cc.
00004 : size_(0), hcalPresamples_(0) { 00005 }
HcalTriggerPrimitiveDigi::HcalTriggerPrimitiveDigi | ( | const HcalTrigTowerDetId & | id | ) | [explicit] |
Definition at line 6 of file HcalTriggerPrimitiveDigi.cc.
00006 : id_(id), 00007 size_(0), hcalPresamples_(0) { 00008 }
const HcalTrigTowerDetId& HcalTriggerPrimitiveDigi::id | ( | void | ) | const [inline] |
Definition at line 22 of file HcalTriggerPrimitiveDigi.h.
References id_.
Referenced by operator<<(), and HcalTrigPrimMonitor::processEvent().
00022 { return id_; }
const HcalTriggerPrimitiveSample& HcalTriggerPrimitiveDigi::operator[] | ( | int | i | ) | const [inline] |
int HcalTriggerPrimitiveDigi::presamples | ( | ) | const [inline] |
Definition at line 24 of file HcalTriggerPrimitiveDigi.h.
References hcalPresamples_.
00024 { return hcalPresamples_; }
const HcalTriggerPrimitiveSample& HcalTriggerPrimitiveDigi::sample | ( | int | i | ) | const [inline] |
Definition at line 27 of file HcalTriggerPrimitiveDigi.h.
References data_.
Referenced by operator<<(), and HcalTrigPrimMonitor::processEvent().
Definition at line 15 of file HcalTriggerPrimitiveDigi.cc.
References hcalPresamples_.
Referenced by HcalTPGCompressor::compress(), L1RCTProducer::produce(), and MaskedRctInputDigiProducer::produce().
00015 { 00016 if (ps<0) hcalPresamples_=0; 00017 // else if (ps>=size_) hcalPresamples_=size_-1; 00018 else hcalPresamples_=ps; 00019 }
void HcalTriggerPrimitiveDigi::setSample | ( | int | i, | |
const HcalTriggerPrimitiveSample & | sam | |||
) | [inline] |
Definition at line 38 of file HcalTriggerPrimitiveDigi.h.
References data_.
Referenced by HcalTPGCompressor::compress(), RctInputTextToDigi::produce(), L1RCTProducer::produce(), and MaskedRctInputDigiProducer::produce().
Definition at line 10 of file HcalTriggerPrimitiveDigi.cc.
References MAXSAMPLES, and size_.
Referenced by HcalTPGCompressor::compress(), RctInputTextToDigi::produce(), L1RCTProducer::produce(), and MaskedRctInputDigiProducer::produce().
00010 { 00011 if (size<0) size_=0; 00012 else if (size>MAXSAMPLES) size_=MAXSAMPLES; 00013 else size_=size; 00014 }
Definition at line 23 of file HcalTriggerPrimitiveDigi.h.
References size_.
Referenced by operator<<(), and HcalTrigPrimMonitor::processEvent().
00023 { return size_; }
int HcalTriggerPrimitiveDigi::SOI_compressedEt | ( | ) | const [inline] |
Compressed ET for the "Sample of Interest".
Definition at line 34 of file HcalTriggerPrimitiveDigi.h.
References HcalTriggerPrimitiveSample::compressedEt(), and t0().
Referenced by HcalTrigPrimMonitor::processEvent().
00034 { return t0().compressedEt(); }
bool HcalTriggerPrimitiveDigi::SOI_fineGrain | ( | ) | const [inline] |
Fine-grain bit for the "Sample of Interest".
Definition at line 32 of file HcalTriggerPrimitiveDigi.h.
References HcalTriggerPrimitiveSample::fineGrain(), and t0().
const HcalTriggerPrimitiveSample& HcalTriggerPrimitiveDigi::t0 | ( | ) | const [inline] |
Full "Sample of Interest".
Definition at line 30 of file HcalTriggerPrimitiveDigi.h.
References data_, and hcalPresamples_.
Referenced by SOI_compressedEt(), and SOI_fineGrain().
00030 { return data_[hcalPresamples_]; }
Definition at line 45 of file HcalTriggerPrimitiveDigi.h.
Referenced by operator[](), sample(), setSample(), and t0().
int HcalTriggerPrimitiveDigi::hcalPresamples_ [private] |
Definition at line 44 of file HcalTriggerPrimitiveDigi.h.
Referenced by presamples(), setPresamples(), and t0().
const int HcalTriggerPrimitiveDigi::MAXSAMPLES = 10 [static] |
int HcalTriggerPrimitiveDigi::size_ [private] |