CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalTBHodoscopeRawInfo.h
Go to the documentation of this file.
1 #ifndef DIGIECAL_ECALTBHODOSCOPERAWINFO_H
2 #define DIGIECAL_ECALTBHODOSCOPERAWINFO_H 1
3 
4 
5 #include <ostream>
6 #include <boost/cstdint.hpp>
7 
15 
17  public:
19 
21  {
22  planeHits_.reserve(planes);
23  for (unsigned int i=0;i<planes;i++)
24  planeHits_[i]=0;
25  }
26 
28  unsigned int planes() const { return planeHits_.size(); }
29  unsigned int channels(unsigned int plane) const { return planeHits_[plane].channels(); }
30  const std::vector<bool>& hits(unsigned int plane) const { return planeHits_[plane].hits(); }
31  const EcalTBHodoscopePlaneRawHits& getPlaneRawHits(unsigned int i) const { return planeHits_[i]; }
32  const EcalTBHodoscopePlaneRawHits& operator[](unsigned int i) const { return planeHits_[i]; }
33 
35  void setPlanes(unsigned int size)
36  {
37  planeHits_.resize(size);
38  };
39 
40  void setPlane(unsigned int i, const EcalTBHodoscopePlaneRawHits& planeHit)
41  {
42  if (planeHits_.size() < i+1 )
43  planeHits_.resize(i+1);
44  planeHits_[i]=planeHit;
45  };
46 
47 
48  private:
49  std::vector<EcalTBHodoscopePlaneRawHits> planeHits_;
50 
51 };
52 
53 std::ostream& operator<<(std::ostream&, const EcalTBHodoscopeRawInfo&);
54 
55 #endif
int i
Definition: DBlmapReader.cc:9
const EcalTBHodoscopePlaneRawHits & getPlaneRawHits(unsigned int i) const
const std::vector< bool > & hits(unsigned int plane) const
std::vector< EcalTBHodoscopePlaneRawHits > planeHits_
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
void setPlane(unsigned int i, const EcalTBHodoscopePlaneRawHits &planeHit)
unsigned int channels(unsigned int plane) const
const EcalTBHodoscopePlaneRawHits & operator[](unsigned int i) const
EcalTBHodoscopeRawInfo(unsigned int planes)
unsigned int planes() const
Get Methods.
void setPlanes(unsigned int size)
Set methods.
tuple size
Write out results.