CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalPnDiodeDigi.h
Go to the documentation of this file.
1 #ifndef ECALPNDIODEDIGI_H
2 #define ECALPNDIODEDIGI_H 1
3 
4 #include <ostream>
5 #include <vector>
8 
9 
10 
17  public:
19 
20  EcalPnDiodeDigi(); // for persistence
21  explicit EcalPnDiodeDigi(const EcalPnDiodeDetId& id);
22 
23  const EcalPnDiodeDetId& id() const { return id_; }
24  int size() const { return size_; }
25 
26  const EcalFEMSample& operator[](int i) const { return data_[i]; }
27  const EcalFEMSample& sample(int i) const { return data_[i]; }
28 
29  void setSize(int size);
30  void setSample(int i, const EcalFEMSample& sam) { data_[i]=sam; }
31 
32  static const int MAXSAMPLES = 50;
33  private:
35  int size_;
36  std::vector<EcalFEMSample> data_;
37 };
38 
39 
40 std::ostream& operator<<(std::ostream& s, const EcalPnDiodeDigi& digi);
41 
42 
43 
44 #endif
int i
Definition: DBlmapReader.cc:9
EcalPnDiodeDetId id_
int size() const
void setSize(int size)
const EcalPnDiodeDetId & id() const
const EcalFEMSample & sample(int i) const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
EcalPnDiodeDetId key_type
For the sorted collection.
std::vector< EcalFEMSample > data_
static const int MAXSAMPLES
void setSample(int i, const EcalFEMSample &sam)
const EcalFEMSample & operator[](int i) const