#include <TBDataFormats/EcalTBObjects/interface/EcalTBHodoscopeRawInfo.h>
Public Member Functions | |
unsigned int | channels (unsigned int plane) const |
EcalTBHodoscopeRawInfo (unsigned int planes) | |
EcalTBHodoscopeRawInfo () | |
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_ |
Definition at line 16 of file EcalTBHodoscopeRawInfo.h.
EcalTBHodoscopeRawInfo::EcalTBHodoscopeRawInfo | ( | ) | [inline] |
EcalTBHodoscopeRawInfo::EcalTBHodoscopeRawInfo | ( | unsigned int | planes | ) | [inline] |
Definition at line 20 of file EcalTBHodoscopeRawInfo.h.
References i, and planeHits_.
00021 { 00022 planeHits_.reserve(planes); 00023 for (unsigned int i=0;i<planes;i++) 00024 planeHits_[i]=0; 00025 }
Definition at line 29 of file EcalTBHodoscopeRawInfo.h.
References planeHits_.
Referenced by EBBeamHodoTask::analyze(), and EEBeamHodoTask::analyze().
00029 { return planeHits_[plane].channels(); }
const EcalTBHodoscopePlaneRawHits& EcalTBHodoscopeRawInfo::getPlaneRawHits | ( | unsigned int | i | ) | const [inline] |
Definition at line 31 of file EcalTBHodoscopeRawInfo.h.
References planeHits_.
Referenced by EBBeamHodoTask::analyze(), and EEBeamHodoTask::analyze().
00031 { return planeHits_[i]; }
Definition at line 30 of file EcalTBHodoscopeRawInfo.h.
References planeHits_.
00030 { return planeHits_[plane].hits(); }
const EcalTBHodoscopePlaneRawHits& EcalTBHodoscopeRawInfo::operator[] | ( | unsigned int | i | ) | const [inline] |
Definition at line 32 of file EcalTBHodoscopeRawInfo.h.
References planeHits_.
00032 { 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(), and operator<<().
00028 { return planeHits_.size(); }
void EcalTBHodoscopeRawInfo::setPlane | ( | unsigned int | i, | |
const EcalTBHodoscopePlaneRawHits & | planeHit | |||
) | [inline] |
Definition at line 40 of file EcalTBHodoscopeRawInfo.h.
References planeHits_.
Referenced by CamacTBDataFormatter::interpretRawData().
00041 { 00042 if (planeHits_.size() < i+1 ) 00043 planeHits_.resize(i+1); 00044 planeHits_[i]=planeHit; 00045 };
Set methods.
Definition at line 35 of file EcalTBHodoscopeRawInfo.h.
References planeHits_.
Referenced by CamacTBDataFormatter::interpretRawData().
00036 { 00037 planeHits_.resize(size); 00038 };
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().