CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Attributes | Private Attributes
HcalTriggerPrimitiveDigi Class Reference

#include <HcalTriggerPrimitiveDigi.h>

Public Types

typedef HcalTrigTowerDetId key_type
 For the sorted collection. More...
 

Public Member Functions

 HcalTriggerPrimitiveDigi ()
 
 HcalTriggerPrimitiveDigi (const HcalTrigTowerDetId &id)
 
const HcalTrigTowerDetIdid () const
 
const HcalTriggerPrimitiveSampleoperator[] (int i) const
 
int presamples () const
 
const HcalTriggerPrimitiveSamplesample (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". More...
 
bool SOI_fineGrain (int i=0) const
 Fine-grain bit for the "Sample of Interest". More...
 
const HcalTriggerPrimitiveSamplet0 () const
 Full "Sample of Interest". More...
 
bool zsMarkAndPass () const
 was ZS MarkAndPass? More...
 
bool zsUnsuppressed () const
 was ZS unsuppressed? More...
 

Static Public Attributes

static const int MAXSAMPLES = 10
 

Private Attributes

HcalTriggerPrimitiveSample data_ [MAXSAMPLES]
 
int hcalPresamples_
 
HcalTrigTowerDetId id_
 
int size_
 

Detailed Description

Author
J. Mans - Minnesota

Definition at line 13 of file HcalTriggerPrimitiveDigi.h.

Member Typedef Documentation

For the sorted collection.

Definition at line 15 of file HcalTriggerPrimitiveDigi.h.

Constructor & Destructor Documentation

HcalTriggerPrimitiveDigi::HcalTriggerPrimitiveDigi ( )
HcalTriggerPrimitiveDigi::HcalTriggerPrimitiveDigi ( const HcalTrigTowerDetId id)
explicit

Member Function Documentation

const HcalTrigTowerDetId& HcalTriggerPrimitiveDigi::id ( ) const
inline

Definition at line 20 of file HcalTriggerPrimitiveDigi.h.

References id_.

Referenced by operator<<().

20 { return id_; }
const HcalTriggerPrimitiveSample& HcalTriggerPrimitiveDigi::operator[] ( int  i) const
inline

Definition at line 31 of file HcalTriggerPrimitiveDigi.h.

References data_, and mps_fire::i.

31 { return data_[i]; }
HcalTriggerPrimitiveSample data_[MAXSAMPLES]
int HcalTriggerPrimitiveDigi::presamples ( ) const
inline

Definition at line 22 of file HcalTriggerPrimitiveDigi.h.

References hcalPresamples_.

Referenced by operator<<(), and t0().

const HcalTriggerPrimitiveSample& HcalTriggerPrimitiveDigi::sample ( int  i) const
inline

Definition at line 32 of file HcalTriggerPrimitiveDigi.h.

References data_, and mps_fire::i.

Referenced by operator<<().

32 { return data_[i]; }
HcalTriggerPrimitiveSample data_[MAXSAMPLES]
void HcalTriggerPrimitiveDigi::setPresamples ( int  ps)

Definition at line 15 of file HcalTriggerPrimitiveDigi.cc.

References hcalPresamples_.

Referenced by HcalTPGCompressor::compress(), L1RCTTPGProvider::produce(), MaskedRctInputDigiProducer::produce(), and SOI_compressedEt().

15  {
16  if (ps<0) hcalPresamples_&=0xFFFFFF0;
17  // else if (ps>=size_) hcalPresamples_=size_-1;
18  else hcalPresamples_|=ps&0xF;
19 }
void HcalTriggerPrimitiveDigi::setSample ( int  i,
const HcalTriggerPrimitiveSample sam 
)
inline
void HcalTriggerPrimitiveDigi::setSize ( int  size)
void HcalTriggerPrimitiveDigi::setZSInfo ( bool  unsuppressed,
bool  markAndPass 
)

Definition at line 21 of file HcalTriggerPrimitiveDigi.cc.

References hcalPresamples_.

Referenced by zsUnsuppressed().

21  {
22  if (markAndPass) hcalPresamples_|=0x10;
23  if (unsuppressed) hcalPresamples_|=0x20;
24 }
int HcalTriggerPrimitiveDigi::size ( void  ) const
inline
int HcalTriggerPrimitiveDigi::SOI_compressedEt ( ) const
inline

Compressed ET for the "Sample of Interest".

Definition at line 39 of file HcalTriggerPrimitiveDigi.h.

References HcalTriggerPrimitiveSample::compressedEt(), setPresamples(), setSize(), size(), and t0().

39 { return t0().compressedEt(); }
const HcalTriggerPrimitiveSample & t0() const
Full "Sample of Interest".
int compressedEt() const
get the encoded/compressed Et
bool HcalTriggerPrimitiveDigi::SOI_fineGrain ( int  i = 0) const
inline

Fine-grain bit for the "Sample of Interest".

Definition at line 37 of file HcalTriggerPrimitiveDigi.h.

References HcalTriggerPrimitiveSample::fineGrain(), mps_fire::i, and t0().

37 { return t0().fineGrain(i); }
bool fineGrain(int i=0) const
get fine-grain bit (traditional)
const HcalTriggerPrimitiveSample & t0() const
Full "Sample of Interest".
const HcalTriggerPrimitiveSample& HcalTriggerPrimitiveDigi::t0 ( ) const
inline

Full "Sample of Interest".

Definition at line 35 of file HcalTriggerPrimitiveDigi.h.

References data_, and presamples().

Referenced by SOI_compressedEt(), and SOI_fineGrain().

35 { return data_[presamples()]; }
HcalTriggerPrimitiveSample data_[MAXSAMPLES]
bool HcalTriggerPrimitiveDigi::zsMarkAndPass ( ) const
inline

was ZS MarkAndPass?

Definition at line 25 of file HcalTriggerPrimitiveDigi.h.

References hcalPresamples_.

Referenced by operator<<().

bool HcalTriggerPrimitiveDigi::zsUnsuppressed ( ) const
inline

was ZS unsuppressed?

Definition at line 27 of file HcalTriggerPrimitiveDigi.h.

References hcalPresamples_, hcalDigis_cfi::markAndPass, and setZSInfo().

Referenced by operator<<().

Member Data Documentation

HcalTriggerPrimitiveSample HcalTriggerPrimitiveDigi::data_[MAXSAMPLES]
private

Definition at line 50 of file HcalTriggerPrimitiveDigi.h.

Referenced by operator[](), sample(), setSample(), and t0().

int HcalTriggerPrimitiveDigi::hcalPresamples_
private
HcalTrigTowerDetId HcalTriggerPrimitiveDigi::id_
private

Definition at line 47 of file HcalTriggerPrimitiveDigi.h.

Referenced by id().

const int HcalTriggerPrimitiveDigi::MAXSAMPLES = 10
static

Definition at line 45 of file HcalTriggerPrimitiveDigi.h.

Referenced by setSize().

int HcalTriggerPrimitiveDigi::size_
private

Definition at line 48 of file HcalTriggerPrimitiveDigi.h.

Referenced by setSize(), and size().