#include <EcalTBHodoscopeRawInfo.h>
Public Member Functions | |
unsigned int | channels (unsigned int plane) const |
EcalTBHodoscopeRawInfo () | |
EcalTBHodoscopeRawInfo (unsigned int planes) | |
const EcalTBHodoscopePlaneRawHits & | getPlaneRawHits (unsigned int i) const |
const std::vector< bool > & | hits (unsigned int plane) const |
const EcalTBHodoscopePlaneRawHits & | operator[] (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_ |
Simple container for plane RawHits
Definition at line 16 of file EcalTBHodoscopeRawInfo.h.
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; }
unsigned int EcalTBHodoscopeRawInfo::channels | ( | unsigned int | plane | ) | const [inline] |
Definition at line 29 of file EcalTBHodoscopeRawInfo.h.
References planeHits_.
Referenced by EBBeamHodoTask::analyze(), and EEBeamHodoTask::analyze().
{ 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_.
Referenced by EBBeamHodoTask::analyze(), and EEBeamHodoTask::analyze().
{ 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 EBBeamHodoTask::analyze(), EEBeamHodoTask::analyze(), 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); };
std::vector<EcalTBHodoscopePlaneRawHits> EcalTBHodoscopeRawInfo::planeHits_ [private] |
Definition at line 45 of file EcalTBHodoscopeRawInfo.h.
Referenced by channels(), EcalTBHodoscopeRawInfo(), getPlaneRawHits(), hits(), operator[](), planes(), setPlane(), and setPlanes().