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){};

◆ EcalTBTDCRawInfo() [2/2]

EcalTBTDCRawInfo::EcalTBTDCRawInfo ( unsigned int  channels)
inline

Definition at line 17 of file EcalTBTDCRawInfo.h.

17 { data_.reserve(channels); };

References channels(), and data_.

Member Function Documentation

◆ channels()

unsigned int EcalTBTDCRawInfo::channels ( ) const
inline

Definition at line 21 of file EcalTBTDCRawInfo.h.

21 { return data_.size(); }

References data_.

Referenced by EcalTBTDCRawInfo().

◆ operator[]()

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

Definition at line 22 of file EcalTBTDCRawInfo.h.

22 { return data_[i]; }

References data_, and mps_fire::i.

◆ sample()

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

Definition at line 23 of file EcalTBTDCRawInfo.h.

23 { return data_[i]; }

References data_, and mps_fire::i.

Referenced by operator<<().

◆ setSample()

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

Definition at line 31 of file EcalTBTDCRawInfo.h.

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

References data_, and mps_fire::i.

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

◆ setSize()

void EcalTBTDCRawInfo::setSize ( unsigned int  size)
inline

Set methods.

Definition at line 26 of file EcalTBTDCRawInfo.h.

26  {
27  // data_.reserve(size);
28  data_.resize(size);
29  };

References data_, and size().

Referenced by CamacTBDataFormatter::interpretRawData().

◆ size()

unsigned int EcalTBTDCRawInfo::size ( void  ) const
inline

Get methods.

Definition at line 20 of file EcalTBTDCRawInfo.h.

20 { return data_.size(); }

References data_.

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

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

mps_fire.i
i
Definition: mps_fire.py:355
EcalTBTDCRawInfo::data_
std::vector< EcalTBTDCSample > data_
Definition: EcalTBTDCRawInfo.h:36
EcalTBTDCRawInfo::channels
unsigned int channels() const
Definition: EcalTBTDCRawInfo.h:21
EcalTBTDCRawInfo::size
unsigned int size() const
Get methods.
Definition: EcalTBTDCRawInfo.h:20