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
EcalTBHodoscopeRawInfo Class Reference

#include <EcalTBHodoscopeRawInfo.h>

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. More...
 
void setPlane (unsigned int i, const EcalTBHodoscopePlaneRawHits &planeHit)
 
void setPlanes (unsigned int size)
 Set methods. More...
 

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.

18 : planeHits_(0) {};
std::vector< EcalTBHodoscopePlaneRawHits > planeHits_
EcalTBHodoscopeRawInfo::EcalTBHodoscopeRawInfo ( unsigned int  planes)
inline

Definition at line 20 of file EcalTBHodoscopeRawInfo.h.

References i, planeHits_, and planes().

21  {
22  planeHits_.reserve(planes);
23  for (unsigned int i=0;i<planes;i++)
24  planeHits_[i]=0;
25  }
int i
Definition: DBlmapReader.cc:9
std::vector< EcalTBHodoscopePlaneRawHits > planeHits_
unsigned int planes() const
Get Methods.

Member Function Documentation

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

Definition at line 29 of file EcalTBHodoscopeRawInfo.h.

References planeHits_.

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

Definition at line 31 of file EcalTBHodoscopeRawInfo.h.

References i, and planeHits_.

31 { return planeHits_[i]; }
int i
Definition: DBlmapReader.cc:9
std::vector< EcalTBHodoscopePlaneRawHits > planeHits_
const std::vector<bool>& EcalTBHodoscopeRawInfo::hits ( unsigned int  plane) const
inline

Definition at line 30 of file EcalTBHodoscopeRawInfo.h.

References planeHits_.

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

Definition at line 32 of file EcalTBHodoscopeRawInfo.h.

References i, and planeHits_.

32 { return planeHits_[i]; }
int i
Definition: DBlmapReader.cc:9
std::vector< EcalTBHodoscopePlaneRawHits > planeHits_
unsigned int EcalTBHodoscopeRawInfo::planes ( ) const
inline

Get Methods.

Definition at line 28 of file EcalTBHodoscopeRawInfo.h.

References planeHits_.

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

28 { return planeHits_.size(); }
std::vector< EcalTBHodoscopePlaneRawHits > planeHits_
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().

41  {
42  if (planeHits_.size() < i+1 )
43  planeHits_.resize(i+1);
44  planeHits_[i]=planeHit;
45  };
int i
Definition: DBlmapReader.cc:9
std::vector< EcalTBHodoscopePlaneRawHits > planeHits_
void EcalTBHodoscopeRawInfo::setPlanes ( unsigned int  size)
inline

Set methods.

Definition at line 35 of file EcalTBHodoscopeRawInfo.h.

References planeHits_.

Referenced by CamacTBDataFormatter::interpretRawData().

36  {
37  planeHits_.resize(size);
38  };
std::vector< EcalTBHodoscopePlaneRawHits > planeHits_
tuple size
Write out results.

Member Data Documentation

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