CMS 3D CMS Logo

HcalTriggerPrimitiveDigi Class Reference

Date
2006/07/17 16:51:59
Revision
1.8
More...

#include <DataFormats/HcalDigi/interface/HcalTriggerPrimitiveDigi.h>

List of all members.

Public Types

typedef HcalTrigTowerDetId key_type
 For the sorted collection.

Public Member Functions

 HcalTriggerPrimitiveDigi (const HcalTrigTowerDetId &id)
 HcalTriggerPrimitiveDigi ()
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)
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 HcalTriggerPrimitiveSamplet0 () const
 Full "Sample of Interest".

Static Public Attributes

static const int MAXSAMPLES = 10

Private Attributes

HcalTriggerPrimitiveSample data_ [MAXSAMPLES]
int hcalPresamples_
HcalTrigTowerDetId id_
int size_


Detailed Description

Date
2006/07/17 16:51:59
Revision
1.8

Author:
J. Mans - Minnesota

Definition at line 15 of file HcalTriggerPrimitiveDigi.h.


Member Typedef Documentation

typedef HcalTrigTowerDetId HcalTriggerPrimitiveDigi::key_type

For the sorted collection.

Definition at line 17 of file HcalTriggerPrimitiveDigi.h.


Constructor & Destructor Documentation

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 }


Member Function Documentation

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]

Definition at line 26 of file HcalTriggerPrimitiveDigi.h.

References data_.

00026 { return data_[i]; }

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().

00027 { return data_[i]; }

void HcalTriggerPrimitiveDigi::setPresamples ( int  ps  ) 

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().

00038 { data_[i]=sam; }

void HcalTriggerPrimitiveDigi::setSize ( int  size  ) 

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 }

int HcalTriggerPrimitiveDigi::size ( void   )  const [inline]

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().

00032 { return t0().fineGrain(); }

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_]; }  


Member Data Documentation

HcalTriggerPrimitiveSample HcalTriggerPrimitiveDigi::data_[MAXSAMPLES] [private]

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().

HcalTrigTowerDetId HcalTriggerPrimitiveDigi::id_ [private]

Definition at line 42 of file HcalTriggerPrimitiveDigi.h.

Referenced by id().

const int HcalTriggerPrimitiveDigi::MAXSAMPLES = 10 [static]

Definition at line 40 of file HcalTriggerPrimitiveDigi.h.

Referenced by setSize().

int HcalTriggerPrimitiveDigi::size_ [private]

Definition at line 43 of file HcalTriggerPrimitiveDigi.h.

Referenced by setSize(), and size().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:24:02 2009 for CMSSW by  doxygen 1.5.4