#include <HcalTriggerPrimitiveDigi.h>
Public Types | |
typedef HcalTrigTowerDetId | key_type |
For the sorted collection. | |
Public Member Functions | |
HcalTriggerPrimitiveDigi () | |
HcalTriggerPrimitiveDigi (const HcalTrigTowerDetId &id) | |
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) |
void | setZSInfo (bool unsuppressed, bool markAndPass) |
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". | |
bool | zsMarkAndPass () const |
was ZS MarkAndPass? | |
bool | zsUnsuppressed () const |
was ZS unsuppressed? | |
Static Public Attributes | |
static const int | MAXSAMPLES = 10 |
Private Attributes | |
HcalTriggerPrimitiveSample | data_ [MAXSAMPLES] |
int | hcalPresamples_ |
HcalTrigTowerDetId | id_ |
int | size_ |
For the sorted collection.
Definition at line 17 of file HcalTriggerPrimitiveDigi.h.
HcalTriggerPrimitiveDigi::HcalTriggerPrimitiveDigi | ( | ) |
Definition at line 4 of file HcalTriggerPrimitiveDigi.cc.
: size_(0), hcalPresamples_(0) { }
HcalTriggerPrimitiveDigi::HcalTriggerPrimitiveDigi | ( | const HcalTrigTowerDetId & | id | ) | [explicit] |
Definition at line 6 of file HcalTriggerPrimitiveDigi.cc.
: id_(id), size_(0), hcalPresamples_(0) { }
const HcalTrigTowerDetId& HcalTriggerPrimitiveDigi::id | ( | void | ) | const [inline] |
Definition at line 22 of file HcalTriggerPrimitiveDigi.h.
References id_.
Referenced by operator<<().
{ 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_.
Referenced by operator<<(), and t0().
{ return hcalPresamples_&0xF; }
const HcalTriggerPrimitiveSample& HcalTriggerPrimitiveDigi::sample | ( | int | i | ) | const [inline] |
Definition at line 34 of file HcalTriggerPrimitiveDigi.h.
Referenced by operator<<().
void HcalTriggerPrimitiveDigi::setPresamples | ( | int | ps | ) |
Definition at line 15 of file HcalTriggerPrimitiveDigi.cc.
References hcalPresamples_.
Referenced by HcalTPGCompressor::compress(), L1RCTTPGProvider::produce(), and MaskedRctInputDigiProducer::produce().
{ if (ps<0) hcalPresamples_&=0xFFFFFF0; // else if (ps>=size_) hcalPresamples_=size_-1; else hcalPresamples_|=ps&0xF; }
void HcalTriggerPrimitiveDigi::setSample | ( | int | i, |
const HcalTriggerPrimitiveSample & | sam | ||
) | [inline] |
Definition at line 45 of file HcalTriggerPrimitiveDigi.h.
Referenced by HcalTPGCompressor::compress(), RctInputTextToDigi::produce(), L1RCTTPGProvider::produce(), and MaskedRctInputDigiProducer::produce().
void HcalTriggerPrimitiveDigi::setSize | ( | int | size | ) |
Definition at line 10 of file HcalTriggerPrimitiveDigi.cc.
References MAXSAMPLES, size(), and size_.
Referenced by HcalTPGCompressor::compress(), RctInputTextToDigi::produce(), L1RCTTPGProvider::produce(), and MaskedRctInputDigiProducer::produce().
{ if (size<0) size_=0; else if (size>MAXSAMPLES) size_=MAXSAMPLES; else size_=size; }
void HcalTriggerPrimitiveDigi::setZSInfo | ( | bool | unsuppressed, |
bool | markAndPass | ||
) |
Definition at line 21 of file HcalTriggerPrimitiveDigi.cc.
References hcalPresamples_.
{ if (markAndPass) hcalPresamples_|=0x10; if (unsuppressed) hcalPresamples_|=0x20; }
int HcalTriggerPrimitiveDigi::size | ( | void | ) | const [inline] |
Definition at line 23 of file HcalTriggerPrimitiveDigi.h.
References size_.
Referenced by operator<<(), and setSize().
{ return (size_&0xF); }
int HcalTriggerPrimitiveDigi::SOI_compressedEt | ( | ) | const [inline] |
Compressed ET for the "Sample of Interest".
Definition at line 41 of file HcalTriggerPrimitiveDigi.h.
References HcalTriggerPrimitiveSample::compressedEt(), and t0().
{ return t0().compressedEt(); }
bool HcalTriggerPrimitiveDigi::SOI_fineGrain | ( | ) | const [inline] |
Fine-grain bit for the "Sample of Interest".
Definition at line 39 of file HcalTriggerPrimitiveDigi.h.
References HcalTriggerPrimitiveSample::fineGrain(), and t0().
const HcalTriggerPrimitiveSample& HcalTriggerPrimitiveDigi::t0 | ( | ) | const [inline] |
Full "Sample of Interest".
Definition at line 37 of file HcalTriggerPrimitiveDigi.h.
References data_, and presamples().
Referenced by SOI_compressedEt(), and SOI_fineGrain().
{ return data_[presamples()]; }
bool HcalTriggerPrimitiveDigi::zsMarkAndPass | ( | ) | const [inline] |
was ZS MarkAndPass?
Definition at line 27 of file HcalTriggerPrimitiveDigi.h.
References hcalPresamples_.
Referenced by operator<<().
{ return (hcalPresamples_&0x10); }
bool HcalTriggerPrimitiveDigi::zsUnsuppressed | ( | ) | const [inline] |
was ZS unsuppressed?
Definition at line 29 of file HcalTriggerPrimitiveDigi.h.
References hcalPresamples_.
Referenced by operator<<().
{ return (hcalPresamples_&0x20); }
Definition at line 52 of file HcalTriggerPrimitiveDigi.h.
Referenced by operator[](), sample(), setSample(), and t0().
int HcalTriggerPrimitiveDigi::hcalPresamples_ [private] |
Definition at line 51 of file HcalTriggerPrimitiveDigi.h.
Referenced by presamples(), setPresamples(), setZSInfo(), zsMarkAndPass(), and zsUnsuppressed().
Definition at line 49 of file HcalTriggerPrimitiveDigi.h.
Referenced by id().
const int HcalTriggerPrimitiveDigi::MAXSAMPLES = 10 [static] |
Definition at line 47 of file HcalTriggerPrimitiveDigi.h.
Referenced by setSize().
int HcalTriggerPrimitiveDigi::size_ [private] |
Definition at line 50 of file HcalTriggerPrimitiveDigi.h.