test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
EcalTBTDCRawInfo Class Reference

#include <EcalTBTDCRawInfo.h>

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. More...
 
unsigned int size () const
 Get methods. More...
 

Private Attributes

std::vector< EcalTBTDCSampledata_
 

Detailed Description

Id:
EcalTBTDCRawInfo.h,v 1.2 2006/04/21 09:30:56 meridian Exp

Definition at line 13 of file EcalTBTDCRawInfo.h.

Constructor & Destructor Documentation

EcalTBTDCRawInfo::EcalTBTDCRawInfo ( )
inline

Definition at line 15 of file EcalTBTDCRawInfo.h.

15 : data_(0) {};
std::vector< EcalTBTDCSample > data_
EcalTBTDCRawInfo::EcalTBTDCRawInfo ( unsigned int  channels)
inline

Definition at line 17 of file EcalTBTDCRawInfo.h.

References data_.

18  {
19  data_.reserve(channels);
20  };
std::vector< EcalTBTDCSample > data_
unsigned int channels() const

Member Function Documentation

unsigned int EcalTBTDCRawInfo::channels ( ) const
inline

Definition at line 24 of file EcalTBTDCRawInfo.h.

References data_.

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

Definition at line 25 of file EcalTBTDCRawInfo.h.

References data_, and i.

25 { return data_[i]; }
int i
Definition: DBlmapReader.cc:9
std::vector< EcalTBTDCSample > data_
const EcalTBTDCSample& EcalTBTDCRawInfo::sample ( unsigned int  i) const
inline

Definition at line 26 of file EcalTBTDCRawInfo.h.

References data_, and i.

Referenced by operator<<().

26 { return data_[i]; }
int i
Definition: DBlmapReader.cc:9
std::vector< EcalTBTDCSample > data_
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().

36  {
37  if (data_.size() < i+1 )
38  // data_.reserve(i);
39  data_.resize(i+1);
40  data_[i]=sam;
41  };
int i
Definition: DBlmapReader.cc:9
std::vector< EcalTBTDCSample > data_
void EcalTBTDCRawInfo::setSize ( unsigned int  size)
inline

Set methods.

Definition at line 29 of file EcalTBTDCRawInfo.h.

References data_.

Referenced by CamacTBDataFormatter::interpretRawData().

30  {
31  // data_.reserve(size);
32  data_.resize(size);
33  };
std::vector< EcalTBTDCSample > data_
unsigned int size() const
Get methods.
unsigned int EcalTBTDCRawInfo::size ( void  ) const
inline

Get methods.

Definition at line 23 of file EcalTBTDCRawInfo.h.

References data_.

Referenced by operator<<().

23 { return data_.size(); }
std::vector< EcalTBTDCSample > data_

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