CMS 3D CMS Logo

Public Member Functions | Private Attributes

EcalTBHodoscopeRawInfo Class Reference

#include <EcalTBHodoscopeRawInfo.h>

List of all members.

Public Member Functions

unsigned int channels (unsigned int plane) const
 EcalTBHodoscopeRawInfo ()
 EcalTBHodoscopeRawInfo (unsigned int planes)
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.

: planeHits_(0) {};
EcalTBHodoscopeRawInfo::EcalTBHodoscopeRawInfo ( unsigned int  planes) [inline]

Definition at line 20 of file EcalTBHodoscopeRawInfo.h.

References i, planeHits_, and planes().

    {
      planeHits_.reserve(planes);
      for (unsigned int i=0;i<planes;i++)
        planeHits_[i]=0;
    }

Member Function Documentation

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

Definition at line 29 of file EcalTBHodoscopeRawInfo.h.

References planeHits_.

{ return planeHits_[plane].channels(); }
const EcalTBHodoscopePlaneRawHits& EcalTBHodoscopeRawInfo::getPlaneRawHits ( unsigned int  i) const [inline]

Definition at line 31 of file EcalTBHodoscopeRawInfo.h.

References i, and planeHits_.

{ return planeHits_[i]; }
const std::vector<bool>& EcalTBHodoscopeRawInfo::hits ( unsigned int  plane) const [inline]

Definition at line 30 of file EcalTBHodoscopeRawInfo.h.

References planeHits_.

{ return planeHits_[plane].hits(); }
const EcalTBHodoscopePlaneRawHits& EcalTBHodoscopeRawInfo::operator[] ( unsigned int  i) const [inline]

Definition at line 32 of file EcalTBHodoscopeRawInfo.h.

References i, and planeHits_.

{ return planeHits_[i]; }
unsigned int EcalTBHodoscopeRawInfo::planes ( ) const [inline]

Get Methods.

Definition at line 28 of file EcalTBHodoscopeRawInfo.h.

References planeHits_.

Referenced by EcalTBHodoscopeRawInfo(), and operator<<().

{ return planeHits_.size(); } 
void EcalTBHodoscopeRawInfo::setPlane ( unsigned int  i,
const EcalTBHodoscopePlaneRawHits planeHit 
) [inline]

Definition at line 40 of file EcalTBHodoscopeRawInfo.h.

References i, and planeHits_.

Referenced by CamacTBDataFormatter::interpretRawData().

    {
      if (planeHits_.size() < i+1 )
        planeHits_.resize(i+1);
      planeHits_[i]=planeHit; 
    };
void EcalTBHodoscopeRawInfo::setPlanes ( unsigned int  size) [inline]

Set methods.

Definition at line 35 of file EcalTBHodoscopeRawInfo.h.

References planeHits_.

Referenced by CamacTBDataFormatter::interpretRawData().

    {
        planeHits_.resize(size);
    };

Member Data Documentation