test
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 
16  public:
18 
19  EcalPnDiodeDigi(); // for persistence
20  explicit EcalPnDiodeDigi(const EcalPnDiodeDetId& id);
21 
22  const EcalPnDiodeDetId& id() const { return id_; }
23  int size() const { return size_; }
24 
25  const EcalFEMSample& operator[](int i) const { return data_[i]; }
26  const EcalFEMSample& sample(int i) const { return data_[i]; }
27 
28  void setSize(int size);
29  void setSample(int i, const EcalFEMSample& sam) { data_[i]=sam; }
30 
31  static const int MAXSAMPLES = 50;
32  private:
34  int size_;
35  std::vector<EcalFEMSample> data_;
36 };
37 
38 
39 std::ostream& operator<<(std::ostream& s, const EcalPnDiodeDigi& digi);
40 
41 
42 
43 #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