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){};

◆ EcalTBHodoscopeRawInfo() [2/2]

EcalTBHodoscopeRawInfo::EcalTBHodoscopeRawInfo ( unsigned int  planes)
inline

Definition at line 17 of file EcalTBHodoscopeRawInfo.h.

17  {
18  planeHits_.reserve(planes);
19  for (unsigned int i = 0; i < planes; i++)
20  planeHits_[i] = 0;
21  }

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

Member Function Documentation

◆ channels()

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

Definition at line 25 of file EcalTBHodoscopeRawInfo.h.

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

References planeHits_.

◆ getPlaneRawHits()

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

Definition at line 27 of file EcalTBHodoscopeRawInfo.h.

27 { return planeHits_[i]; }

References mps_fire::i, and planeHits_.

◆ hits()

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

Definition at line 26 of file EcalTBHodoscopeRawInfo.h.

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

References planeHits_.

◆ operator[]()

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

Definition at line 28 of file EcalTBHodoscopeRawInfo.h.

28 { return planeHits_[i]; }

References mps_fire::i, and planeHits_.

◆ planes()

unsigned int EcalTBHodoscopeRawInfo::planes ( ) const
inline

Get Methods.

Definition at line 24 of file EcalTBHodoscopeRawInfo.h.

24 { return planeHits_.size(); }

References planeHits_.

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

◆ setPlane()

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

Definition at line 33 of file EcalTBHodoscopeRawInfo.h.

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

References mps_fire::i, and planeHits_.

Referenced by CamacTBDataFormatter::interpretRawData().

◆ setPlanes()

void EcalTBHodoscopeRawInfo::setPlanes ( unsigned int  size)
inline

Set methods.

Definition at line 31 of file EcalTBHodoscopeRawInfo.h.

31 { planeHits_.resize(size); };

References planeHits_, and findQualityFiles::size.

Referenced by CamacTBDataFormatter::interpretRawData().

Member Data Documentation

◆ planeHits_

std::vector<EcalTBHodoscopePlaneRawHits> EcalTBHodoscopeRawInfo::planeHits_
private
mps_fire.i
i
Definition: mps_fire.py:428
EcalTBHodoscopeRawInfo::planes
unsigned int planes() const
Get Methods.
Definition: EcalTBHodoscopeRawInfo.h:24
EcalTBHodoscopeRawInfo::planeHits_
std::vector< EcalTBHodoscopePlaneRawHits > planeHits_
Definition: EcalTBHodoscopeRawInfo.h:37
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443