CMS 3D CMS Logo

EcalDataFrame_Ph2.h
Go to the documentation of this file.
1 #ifndef DataFormats_EcalDigi_EcalDataFrame_Ph2_h
2 #define DataFormats_EcalDigi_EcalDataFrame_Ph2_h
8 
13 public:
15  EcalDataFrame_Ph2(edm::DataFrame const& iframe) : m_data(iframe) {}
16 
17  virtual ~EcalDataFrame_Ph2() {}
18  DetId id() const { return m_data.id(); }
19 
20  int size() const { return m_data.size(); }
21 
22  EcalLiteDTUSample operator[](int i) const { return m_data[i]; }
23  EcalLiteDTUSample sample(int i) const { return m_data[i]; }
24 
25  typedef EBDetId key_type;
27 
28  void setSize(int) {}
29  void setSample(int i, EcalLiteDTUSample sam) { m_data[i] = sam; }
30 
32 
33  edm::DataFrame const& frame() const { return m_data; }
34  edm::DataFrame& frame() { return m_data; }
35 
36 private:
38 };
39 
40 #endif
EcalDataFrame_Ph2 Base
For the sorted collection.
static constexpr unsigned int sampleSize
Definition: EcalConstants.h:36
EcalDataFrame_Ph2(edm::DataFrame const &iframe)
EcalLiteDTUSample operator[](int i) const
constexpr size_type size() const
Definition: DataFrame.h:43
EcalLiteDTUSample sample(int i) const
edm::DataFrame const & frame() const
static constexpr int MAXSAMPLES
Definition: DetId.h:17
virtual ~EcalDataFrame_Ph2()
constexpr id_type id() const
Definition: DataFrame.h:41
edm::DataFrame & frame()
edm::DataFrame m_data
void setSample(int i, EcalLiteDTUSample sam)