CMS 3D CMS Logo

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< EcalTBHodoscopePlaneRawHitsplaneHits_
 

Detailed Description

Simple container for plane RawHits

Definition at line 15 of file EcalTBHodoscopeRawInfo.h.

Constructor & Destructor Documentation

EcalTBHodoscopeRawInfo::EcalTBHodoscopeRawInfo ( )
inline

Definition at line 17 of file EcalTBHodoscopeRawInfo.h.

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

Definition at line 19 of file EcalTBHodoscopeRawInfo.h.

References i, planeHits_, and planes().

20  {
21  planeHits_.reserve(planes);
22  for (unsigned int i=0;i<planes;i++)
23  planeHits_[i]=0;
24  }
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 28 of file EcalTBHodoscopeRawInfo.h.

References planeHits_.

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

Definition at line 30 of file EcalTBHodoscopeRawInfo.h.

References i, and planeHits_.

30 { 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 29 of file EcalTBHodoscopeRawInfo.h.

References planeHits_.

29 { return planeHits_[plane].hits(); }
std::vector< EcalTBHodoscopePlaneRawHits > planeHits_
const EcalTBHodoscopePlaneRawHits& EcalTBHodoscopeRawInfo::operator[] ( 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_
unsigned int EcalTBHodoscopeRawInfo::planes ( ) const
inline

Get Methods.

Definition at line 27 of file EcalTBHodoscopeRawInfo.h.

References planeHits_.

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

27 { return planeHits_.size(); }
std::vector< EcalTBHodoscopePlaneRawHits > planeHits_
void EcalTBHodoscopeRawInfo::setPlane ( unsigned int  i,
const EcalTBHodoscopePlaneRawHits planeHit 
)
inline

Definition at line 39 of file EcalTBHodoscopeRawInfo.h.

References i, and planeHits_.

Referenced by CamacTBDataFormatter::interpretRawData().

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

Set methods.

Definition at line 34 of file EcalTBHodoscopeRawInfo.h.

References planeHits_.

Referenced by CamacTBDataFormatter::interpretRawData().

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

Member Data Documentation

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