CMS 3D CMS Logo

Public Member Functions | Private Attributes

EcalTBTDCRawInfo Class Reference

#include <EcalTBTDCRawInfo.h>

List of all members.

Public Member Functions

unsigned int channels () const
 EcalTBTDCRawInfo ()
 EcalTBTDCRawInfo (unsigned int channels)
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.

: data_(0) {};
EcalTBTDCRawInfo::EcalTBTDCRawInfo ( unsigned int  channels) [inline]

Definition at line 17 of file EcalTBTDCRawInfo.h.

References data_.

    {
      data_.reserve(channels);
    }; 

Member Function Documentation

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

Definition at line 24 of file EcalTBTDCRawInfo.h.

References data_.

{ return data_.size(); }
const EcalTBTDCSample& EcalTBTDCRawInfo::operator[] ( unsigned int  i) const [inline]

Definition at line 25 of file EcalTBTDCRawInfo.h.

References data_, and i.

{ return data_[i]; }
const EcalTBTDCSample& EcalTBTDCRawInfo::sample ( unsigned int  i) const [inline]

Definition at line 26 of file EcalTBTDCRawInfo.h.

References data_, and i.

Referenced by operator<<().

{ return data_[i]; }
void EcalTBTDCRawInfo::setSample ( unsigned int  i,
const EcalTBTDCSample sam 
) [inline]

Definition at line 35 of file EcalTBTDCRawInfo.h.

References data_, and i.

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

    {
      if (data_.size() < i+1 )
        // data_.reserve(i);
        data_.resize(i+1);
      data_[i]=sam; 
    };
void EcalTBTDCRawInfo::setSize ( unsigned int  size) [inline]

Set methods.

Definition at line 29 of file EcalTBTDCRawInfo.h.

References data_.

Referenced by CamacTBDataFormatter::interpretRawData().

    {
      // data_.reserve(size);
      data_.resize(size);
    };
unsigned int EcalTBTDCRawInfo::size ( void  ) const [inline]

Get methods.

Definition at line 23 of file EcalTBTDCRawInfo.h.

References data_.

Referenced by operator<<().

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