CMS 3D CMS Logo

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() [1/2]

EcalTBTDCRawInfo::EcalTBTDCRawInfo ( )
inline

Definition at line 15 of file EcalTBTDCRawInfo.h.

15 : data_(0) {}
std::vector< EcalTBTDCSample > data_

◆ EcalTBTDCRawInfo() [2/2]

EcalTBTDCRawInfo::EcalTBTDCRawInfo ( unsigned int  channels)
inline

Definition at line 17 of file EcalTBTDCRawInfo.h.

References channels(), and data_.

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

Member Function Documentation

◆ channels()

unsigned int EcalTBTDCRawInfo::channels ( ) const
inline

Definition at line 21 of file EcalTBTDCRawInfo.h.

References data_.

Referenced by EcalTBTDCRawInfo().

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

◆ operator[]()

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

Definition at line 22 of file EcalTBTDCRawInfo.h.

References data_, and mps_fire::i.

22 { return data_[i]; }
std::vector< EcalTBTDCSample > data_

◆ sample()

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

Definition at line 23 of file EcalTBTDCRawInfo.h.

References data_, and mps_fire::i.

Referenced by operator<<().

23 { return data_[i]; }
std::vector< EcalTBTDCSample > data_

◆ setSample()

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

Definition at line 31 of file EcalTBTDCRawInfo.h.

References data_, and mps_fire::i.

Referenced by CamacTBDataFormatter::interpretRawData().

31  {
32  if (data_.size() < i + 1)
33  // data_.reserve(i);
34  data_.resize(i + 1);
35  data_[i] = sam;
36  };
std::vector< EcalTBTDCSample > data_

◆ setSize()

void EcalTBTDCRawInfo::setSize ( unsigned int  size)
inline

Set methods.

Definition at line 26 of file EcalTBTDCRawInfo.h.

References data_, and size().

Referenced by CamacTBDataFormatter::interpretRawData().

26  {
27  // data_.reserve(size);
28  data_.resize(size);
29  };
unsigned int size() const
Get methods.
std::vector< EcalTBTDCSample > data_

◆ size()

unsigned int EcalTBTDCRawInfo::size ( void  ) const
inline

Get methods.

Definition at line 20 of file EcalTBTDCRawInfo.h.

References data_.

Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), operator<<(), and setSize().

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

Member Data Documentation

◆ data_

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

Definition at line 36 of file EcalTBTDCRawInfo.h.

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