CMS 3D CMS Logo

EcalTBTDCRawInfo Class Reference

Id
EcalTBTDCRawInfo.h,v 1.3 2006/06/06 15:37:00 meridian Exp
More...

#include <TBDataFormats/EcalTBObjects/interface/EcalTBTDCRawInfo.h>

List of all members.

Public Member Functions

unsigned int channels () const
 EcalTBTDCRawInfo (unsigned int channels)
 EcalTBTDCRawInfo ()
const EcalTBTDCSampleoperator[] (unsigned int i) const
const EcalTBTDCSamplesample (unsigned int i) const
void setSample (unsigned int i, const EcalTBTDCSample &sam)
void setSize (unsigned int size)
 Set methods.
unsigned int size () const
 Get methods.

Private Attributes

std::vector< EcalTBTDCSampledata_


Detailed Description

Id
EcalTBTDCRawInfo.h,v 1.3 2006/06/06 15:37:00 meridian Exp

Definition at line 13 of file EcalTBTDCRawInfo.h.


Constructor & Destructor Documentation

EcalTBTDCRawInfo::EcalTBTDCRawInfo (  )  [inline]

Definition at line 15 of file EcalTBTDCRawInfo.h.

00015 : data_(0) {};

EcalTBTDCRawInfo::EcalTBTDCRawInfo ( unsigned int  channels  )  [inline]

Definition at line 17 of file EcalTBTDCRawInfo.h.

References data_.

00018     {
00019       data_.reserve(channels);
00020     }; 


Member Function Documentation

unsigned int EcalTBTDCRawInfo::channels (  )  const [inline]

Definition at line 24 of file EcalTBTDCRawInfo.h.

References data_.

00024 { return data_.size(); }

const EcalTBTDCSample& EcalTBTDCRawInfo::operator[] ( unsigned int  i  )  const [inline]

Definition at line 25 of file EcalTBTDCRawInfo.h.

References data_.

00025 { return data_[i]; }

const EcalTBTDCSample& EcalTBTDCRawInfo::sample ( unsigned int  i  )  const [inline]

Definition at line 26 of file EcalTBTDCRawInfo.h.

References data_.

Referenced by operator<<().

00026 { return data_[i]; }

void EcalTBTDCRawInfo::setSample ( unsigned int  i,
const EcalTBTDCSample sam 
) [inline]

Definition at line 35 of file EcalTBTDCRawInfo.h.

References data_.

Referenced by EcalTBDigiProducer::fillTBTDCRawInfo(), and CamacTBDataFormatter::interpretRawData().

00036     {
00037       if (data_.size() < i+1 )
00038         // data_.reserve(i);
00039         data_.resize(i+1);
00040       data_[i]=sam; 
00041     };

void EcalTBTDCRawInfo::setSize ( unsigned int  size  )  [inline]

Set methods.

Definition at line 29 of file EcalTBTDCRawInfo.h.

References data_.

Referenced by CamacTBDataFormatter::interpretRawData().

00030     {
00031       // data_.reserve(size);
00032       data_.resize(size);
00033     };

unsigned int EcalTBTDCRawInfo::size ( void   )  const [inline]

Get methods.

Definition at line 23 of file EcalTBTDCRawInfo.h.

References data_.

Referenced by operator<<().

00023 { return data_.size(); }


Member Data Documentation

std::vector<EcalTBTDCSample> EcalTBTDCRawInfo::data_ [private]

Definition at line 41 of file EcalTBTDCRawInfo.h.

Referenced by channels(), EcalTBTDCRawInfo(), operator[](), sample(), setSample(), setSize(), and size().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:19:57 2009 for CMSSW by  doxygen 1.5.4