CMS 3D CMS Logo

EcalTBHodoscopeRawInfo Class Reference

Simple container for plane RawHits. More...

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

List of all members.

Public Member Functions

unsigned int channels (unsigned int plane) const
 EcalTBHodoscopeRawInfo (unsigned int planes)
 EcalTBHodoscopeRawInfo ()
const EcalTBHodoscopePlaneRawHitsgetPlaneRawHits (unsigned int i) const
const std::vector< bool > & hits (unsigned int plane) const
const EcalTBHodoscopePlaneRawHitsoperator[] (unsigned int i) const
unsigned int planes () const
 Get Methods.
void setPlane (unsigned int i, const EcalTBHodoscopePlaneRawHits &planeHit)
void setPlanes (unsigned int size)
 Set methods.

Private Attributes

std::vector
< EcalTBHodoscopePlaneRawHits
planeHits_


Detailed Description

Simple container for plane RawHits.

Id
EcalTBHodoscopeRawInfo.h,v 1.2 2006/06/06 15:37:00 meridian Exp

Definition at line 16 of file EcalTBHodoscopeRawInfo.h.


Constructor & Destructor Documentation

EcalTBHodoscopeRawInfo::EcalTBHodoscopeRawInfo (  )  [inline]

Definition at line 18 of file EcalTBHodoscopeRawInfo.h.

00018 : planeHits_(0) {};

EcalTBHodoscopeRawInfo::EcalTBHodoscopeRawInfo ( unsigned int  planes  )  [inline]

Definition at line 20 of file EcalTBHodoscopeRawInfo.h.

References i, and planeHits_.

00021     {
00022       planeHits_.reserve(planes);
00023       for (unsigned int i=0;i<planes;i++)
00024         planeHits_[i]=0;
00025     }


Member Function Documentation

unsigned int EcalTBHodoscopeRawInfo::channels ( unsigned int  plane  )  const [inline]

Definition at line 29 of file EcalTBHodoscopeRawInfo.h.

References planeHits_.

Referenced by EBBeamHodoTask::analyze(), and EEBeamHodoTask::analyze().

00029 { return planeHits_[plane].channels(); }

const EcalTBHodoscopePlaneRawHits& EcalTBHodoscopeRawInfo::getPlaneRawHits ( unsigned int  i  )  const [inline]

Definition at line 31 of file EcalTBHodoscopeRawInfo.h.

References planeHits_.

Referenced by EBBeamHodoTask::analyze(), and EEBeamHodoTask::analyze().

00031 { return planeHits_[i]; }

const std::vector<bool>& EcalTBHodoscopeRawInfo::hits ( unsigned int  plane  )  const [inline]

Definition at line 30 of file EcalTBHodoscopeRawInfo.h.

References planeHits_.

00030 { return planeHits_[plane].hits(); }

const EcalTBHodoscopePlaneRawHits& EcalTBHodoscopeRawInfo::operator[] ( unsigned int  i  )  const [inline]

Definition at line 32 of file EcalTBHodoscopeRawInfo.h.

References planeHits_.

00032 { return planeHits_[i]; }

unsigned int EcalTBHodoscopeRawInfo::planes (  )  const [inline]

Get Methods.

Definition at line 28 of file EcalTBHodoscopeRawInfo.h.

References planeHits_.

Referenced by EBBeamHodoTask::analyze(), EEBeamHodoTask::analyze(), and operator<<().

00028 { return planeHits_.size(); } 

void EcalTBHodoscopeRawInfo::setPlane ( unsigned int  i,
const EcalTBHodoscopePlaneRawHits planeHit 
) [inline]

Definition at line 40 of file EcalTBHodoscopeRawInfo.h.

References planeHits_.

Referenced by CamacTBDataFormatter::interpretRawData().

00041     {
00042       if (planeHits_.size() < i+1 )
00043         planeHits_.resize(i+1);
00044       planeHits_[i]=planeHit; 
00045     };

void EcalTBHodoscopeRawInfo::setPlanes ( unsigned int  size  )  [inline]

Set methods.

Definition at line 35 of file EcalTBHodoscopeRawInfo.h.

References planeHits_.

Referenced by CamacTBDataFormatter::interpretRawData().

00036     {
00037         planeHits_.resize(size);
00038     };


Member Data Documentation

std::vector<EcalTBHodoscopePlaneRawHits> EcalTBHodoscopeRawInfo::planeHits_ [private]

Definition at line 45 of file EcalTBHodoscopeRawInfo.h.

Referenced by channels(), EcalTBHodoscopeRawInfo(), getPlaneRawHits(), hits(), operator[](), planes(), setPlane(), and setPlanes().


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