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 
14 public:
16 
17  EcalPnDiodeDigi(); // for persistence
18  explicit EcalPnDiodeDigi(const EcalPnDiodeDetId& id);
19 
20  const EcalPnDiodeDetId& id() const { return id_; }
21  int size() const { return size_; }
22 
23  const EcalFEMSample& operator[](int i) const { return data_[i]; }
24  const EcalFEMSample& sample(int i) const { return data_[i]; }
25 
26  void setSize(int size);
27  void setSample(int i, const EcalFEMSample& sam) { data_[i] = sam; }
28 
29  static const int MAXSAMPLES = 50;
30 
31 private:
33  int size_;
34  std::vector<EcalFEMSample> data_;
35 };
36 
37 std::ostream& operator<<(std::ostream& s, const EcalPnDiodeDigi& digi);
38 
39 #endif
operator<<
std::ostream & operator<<(std::ostream &s, const EcalPnDiodeDigi &digi)
Definition: EcalPnDiodeDigi.cc:15
mps_fire.i
i
Definition: mps_fire.py:428
EcalPnDiodeDigi::id
const EcalPnDiodeDetId & id() const
Definition: EcalPnDiodeDigi.h:20
EcalPnDiodeDigi::setSize
void setSize(int size)
Definition: EcalPnDiodeDigi.cc:6
EcalPnDiodeDigi::size
int size() const
Definition: EcalPnDiodeDigi.h:21
EcalPnDiodeDigi::MAXSAMPLES
static const int MAXSAMPLES
Definition: EcalPnDiodeDigi.h:29
EcalPnDiodeDetId
Definition: EcalPnDiodeDetId.h:22
alignCSCRings.s
s
Definition: alignCSCRings.py:92
EcalPnDiodeDigi::sample
const EcalFEMSample & sample(int i) const
Definition: EcalPnDiodeDigi.h:24
EcalPnDiodeDigi::data_
std::vector< EcalFEMSample > data_
Definition: EcalPnDiodeDigi.h:34
EcalPnDiodeDigi::operator[]
const EcalFEMSample & operator[](int i) const
Definition: EcalPnDiodeDigi.h:23
EcalPnDiodeDigi::id_
EcalPnDiodeDetId id_
Definition: EcalPnDiodeDigi.h:32
EcalPnDiodeDetId.h
EcalPnDiodeDigi::EcalPnDiodeDigi
EcalPnDiodeDigi()
Definition: EcalPnDiodeDigi.cc:3
EcalPnDiodeDigi::setSample
void setSample(int i, const EcalFEMSample &sam)
Definition: EcalPnDiodeDigi.h:27
EcalFEMSample.h
EcalFEMSample
Definition: EcalFEMSample.h:14
EcalPnDiodeDigi::size_
int size_
Definition: EcalPnDiodeDigi.h:33
EcalPnDiodeDigi::key_type
EcalPnDiodeDetId key_type
For the sorted collection.
Definition: EcalPnDiodeDigi.h:15
EcalPnDiodeDigi
Definition: EcalPnDiodeDigi.h:13