CMS 3D CMS Logo

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
EcalPnDiodeDetId id_
int size() const
void setSize(int size)
const EcalPnDiodeDetId & id() const
const EcalFEMSample & sample(int i) const
EcalPnDiodeDetId key_type
For the sorted collection.
std::vector< EcalFEMSample > data_
std::ostream & operator<<(std::ostream &s, const EcalPnDiodeDigi &digi)
static const int MAXSAMPLES
void setSample(int i, const EcalFEMSample &sam)
const EcalFEMSample & operator[](int i) const