CMS 3D CMS Logo

IntegerCaloSamples Class Reference

Class which represents the linear charge/voltage measurements of an event/channel, but with defined resolution. More...

#include <CalibFormats/CaloObjects/interface/IntegerCaloSamples.h>

List of all members.

Public Member Functions

DetId id () const
 get the (generic) id
 IntegerCaloSamples (const DetId &id, int size)
 IntegerCaloSamples ()
uint32_t operator[] (int i) const
 const operator to access samples
uint32_t & operator[] (int i)
 mutable operator to access samples
int presamples () const
 access presample information
void setPresamples (int pre)
 set presample information
int size () const
 get the size

Static Public Attributes

static const int MAXSAMPLES = 10

Private Attributes

uint32_t data_ [MAXSAMPLES]
DetId id_
int presamples_
int size_


Detailed Description

Class which represents the linear charge/voltage measurements of an event/channel, but with defined resolution.

This class uses 32-bit bins, so users should be careful if their calculation implies fewer bins.

Date
2006/03/23 18:24:51
Revision
1.1

Definition at line 18 of file IntegerCaloSamples.h.


Constructor & Destructor Documentation

IntegerCaloSamples::IntegerCaloSamples (  ) 

Definition at line 3 of file IntegerCaloSamples.cc.

References data_, i, and MAXSAMPLES.

00003                                        : id_(), size_(0), presamples_(0) {
00004   for (int i=0; i<MAXSAMPLES; i++) data_[i]=0;
00005 }

IntegerCaloSamples::IntegerCaloSamples ( const DetId id,
int  size 
) [explicit]

Definition at line 7 of file IntegerCaloSamples.cc.

References data_, i, and MAXSAMPLES.

00007                                                                 : id_(id), size_(size), presamples_(0) {
00008   for (int i=0; i<MAXSAMPLES; i++) data_[i]=0;
00009 }


Member Function Documentation

DetId IntegerCaloSamples::id ( void   )  const [inline]

get the (generic) id

Definition at line 24 of file IntegerCaloSamples.h.

References id_.

Referenced by HcalTriggerPrimitiveAlgo::addSignal(), HcalTriggerPrimitiveAlgo::analyze(), HcalTriggerPrimitiveAlgo::analyzeHF(), EcalTPGCompressor::compress(), HcalTPGCompressor::compress(), and operator<<().

00024 { return id_; }

uint32_t IntegerCaloSamples::operator[] ( int  i  )  const [inline]

const operator to access samples

Definition at line 31 of file IntegerCaloSamples.h.

References data_.

00031 { return data_[i]; }

uint32_t& IntegerCaloSamples::operator[] ( int  i  )  [inline]

mutable operator to access samples

Definition at line 29 of file IntegerCaloSamples.h.

References data_.

00029 { return data_[i]; }

int IntegerCaloSamples::presamples (  )  const [inline]

access presample information

Definition at line 34 of file IntegerCaloSamples.h.

References presamples_.

Referenced by HcalTriggerPrimitiveAlgo::analyze(), HcalTriggerPrimitiveAlgo::analyzeHF(), and HcalTPGCompressor::compress().

00034 { return presamples_; }

void IntegerCaloSamples::setPresamples ( int  pre  ) 

set presample information

Definition at line 11 of file IntegerCaloSamples.cc.

References presamples_.

00011                                               {
00012   presamples_=pre;
00013 }

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

get the size

Definition at line 27 of file IntegerCaloSamples.h.

References size_.

Referenced by HcalTriggerPrimitiveAlgo::addSignal(), HcalTriggerPrimitiveAlgo::analyze(), HcalTriggerPrimitiveAlgo::analyzeHF(), EcalTPGCompressor::compress(), HcalTPGCompressor::compress(), and operator<<().

00027 { return size_; }


Member Data Documentation

uint32_t IntegerCaloSamples::data_[MAXSAMPLES] [private]

Definition at line 41 of file IntegerCaloSamples.h.

Referenced by IntegerCaloSamples(), and operator[]().

DetId IntegerCaloSamples::id_ [private]

Definition at line 40 of file IntegerCaloSamples.h.

Referenced by id().

const int IntegerCaloSamples::MAXSAMPLES = 10 [static]

Definition at line 38 of file IntegerCaloSamples.h.

Referenced by IntegerCaloSamples().

int IntegerCaloSamples::presamples_ [private]

Definition at line 42 of file IntegerCaloSamples.h.

Referenced by presamples(), and setPresamples().

int IntegerCaloSamples::size_ [private]

Definition at line 42 of file IntegerCaloSamples.h.

Referenced by size().


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