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 13 of file EcalTBHodoscopeRawInfo.h.

Constructor & Destructor Documentation

◆ EcalTBHodoscopeRawInfo() [1/2]

EcalTBHodoscopeRawInfo::EcalTBHodoscopeRawInfo ( )
inline

Definition at line 15 of file EcalTBHodoscopeRawInfo.h.

15 : planeHits_(0) {}
std::vector< EcalTBHodoscopePlaneRawHits > planeHits_

◆ EcalTBHodoscopeRawInfo() [2/2]

EcalTBHodoscopeRawInfo::EcalTBHodoscopeRawInfo ( unsigned int  planes)
inline

Definition at line 17 of file EcalTBHodoscopeRawInfo.h.

References mps_fire::i, planeHits_, and planes().

17  {
18  planeHits_.reserve(planes);
19  for (unsigned int i = 0; i < planes; i++)
20  planeHits_[i] = 0;
21  }
std::vector< EcalTBHodoscopePlaneRawHits > planeHits_
unsigned int planes() const
Get Methods.

Member Function Documentation

◆ channels()

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

Definition at line 25 of file EcalTBHodoscopeRawInfo.h.

References planeHits_.

25 { return planeHits_[plane].channels(); }
std::vector< EcalTBHodoscopePlaneRawHits > planeHits_

◆ getPlaneRawHits()

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

Definition at line 27 of file EcalTBHodoscopeRawInfo.h.

References mps_fire::i, and planeHits_.

27 { return planeHits_[i]; }
std::vector< EcalTBHodoscopePlaneRawHits > planeHits_

◆ hits()

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

Definition at line 26 of file EcalTBHodoscopeRawInfo.h.

References planeHits_.

26 { return planeHits_[plane].hits(); }
std::vector< EcalTBHodoscopePlaneRawHits > planeHits_

◆ operator[]()

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

Definition at line 28 of file EcalTBHodoscopeRawInfo.h.

References mps_fire::i, and planeHits_.

28 { return planeHits_[i]; }
std::vector< EcalTBHodoscopePlaneRawHits > planeHits_

◆ planes()

unsigned int EcalTBHodoscopeRawInfo::planes ( ) const
inline

Get Methods.

Definition at line 24 of file EcalTBHodoscopeRawInfo.h.

References planeHits_.

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

24 { return planeHits_.size(); }
std::vector< EcalTBHodoscopePlaneRawHits > planeHits_

◆ setPlane()

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

Definition at line 33 of file EcalTBHodoscopeRawInfo.h.

References mps_fire::i, and planeHits_.

Referenced by CamacTBDataFormatter::interpretRawData().

33  {
34  if (planeHits_.size() < i + 1)
35  planeHits_.resize(i + 1);
36  planeHits_[i] = planeHit;
37  };
std::vector< EcalTBHodoscopePlaneRawHits > planeHits_

◆ setPlanes()

void EcalTBHodoscopeRawInfo::setPlanes ( unsigned int  size)
inline

Set methods.

Definition at line 31 of file EcalTBHodoscopeRawInfo.h.

References planeHits_, and findQualityFiles::size.

Referenced by CamacTBDataFormatter::interpretRawData().

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

Member Data Documentation

◆ planeHits_

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