CMS 3D CMS Logo

EcalTBHodoscopeRawInfo.h
Go to the documentation of this file.
1 #ifndef DIGIECAL_ECALTBHODOSCOPERAWINFO_H
2 #define DIGIECAL_ECALTBHODOSCOPERAWINFO_H 1
3 
4 #include <ostream>
5 
12 
14 public:
16 
18  planeHits_.reserve(planes);
19  for (unsigned int i = 0; i < planes; i++)
20  planeHits_[i] = 0;
21  }
22 
24  unsigned int planes() const { return planeHits_.size(); }
25  unsigned int channels(unsigned int plane) const { return planeHits_[plane].channels(); }
26  const std::vector<bool>& hits(unsigned int plane) const { return planeHits_[plane].hits(); }
27  const EcalTBHodoscopePlaneRawHits& getPlaneRawHits(unsigned int i) const { return planeHits_[i]; }
28  const EcalTBHodoscopePlaneRawHits& operator[](unsigned int i) const { return planeHits_[i]; }
29 
31  void setPlanes(unsigned int size) { planeHits_.resize(size); };
32 
33  void setPlane(unsigned int i, const EcalTBHodoscopePlaneRawHits& planeHit) {
34  if (planeHits_.size() < i + 1)
35  planeHits_.resize(i + 1);
36  planeHits_[i] = planeHit;
37  };
38 
39 private:
40  std::vector<EcalTBHodoscopePlaneRawHits> planeHits_;
41 };
42 
43 std::ostream& operator<<(std::ostream&, const EcalTBHodoscopeRawInfo&);
44 
45 #endif
EcalTBHodoscopeRawInfo::channels
unsigned int channels(unsigned int plane) const
Definition: EcalTBHodoscopeRawInfo.h:25
mps_fire.i
i
Definition: mps_fire.py:355
operator<<
std::ostream & operator<<(std::ostream &, const EcalTBHodoscopeRawInfo &)
Definition: EcalTBHodoscopeRawInfo.cc:3
EcalTBHodoscopePlaneRawHits
Definition: EcalTBHodoscopePlaneRawHits.h:13
EcalTBHodoscopePlaneRawHits.h
EcalTBHodoscopeRawInfo::EcalTBHodoscopeRawInfo
EcalTBHodoscopeRawInfo(unsigned int planes)
Definition: EcalTBHodoscopeRawInfo.h:17
EcalTBHodoscopeRawInfo::getPlaneRawHits
const EcalTBHodoscopePlaneRawHits & getPlaneRawHits(unsigned int i) const
Definition: EcalTBHodoscopeRawInfo.h:27
EcalTBHodoscopeRawInfo::EcalTBHodoscopeRawInfo
EcalTBHodoscopeRawInfo()
Definition: EcalTBHodoscopeRawInfo.h:15
EcalTBHodoscopeRawInfo::operator[]
const EcalTBHodoscopePlaneRawHits & operator[](unsigned int i) const
Definition: EcalTBHodoscopeRawInfo.h:28
EcalTBHodoscopeRawInfo::setPlane
void setPlane(unsigned int i, const EcalTBHodoscopePlaneRawHits &planeHit)
Definition: EcalTBHodoscopeRawInfo.h:33
EcalTBHodoscopeRawInfo::planes
unsigned int planes() const
Get Methods.
Definition: EcalTBHodoscopeRawInfo.h:24
EcalTBHodoscopeRawInfo
Definition: EcalTBHodoscopeRawInfo.h:13
EcalTBHodoscopeRawInfo::planeHits_
std::vector< EcalTBHodoscopePlaneRawHits > planeHits_
Definition: EcalTBHodoscopeRawInfo.h:37
EcalTBHodoscopeRawInfo::setPlanes
void setPlanes(unsigned int size)
Set methods.
Definition: EcalTBHodoscopeRawInfo.h:31
EcalTBHodoscopeRawInfo::hits
const std::vector< bool > & hits(unsigned int plane) const
Definition: EcalTBHodoscopeRawInfo.h:26
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443