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 
31  static constexpr int MAXSAMPLES = ecalPh2::sampleSize;
32 
33  edm::DataFrame const& frame() const { return m_data; }
34  edm::DataFrame& frame() { return m_data; }
35 
36 private:
38 };
39 
40 #endif
mps_fire.i
i
Definition: mps_fire.py:428
EcalDataFrame_Ph2
Definition: EcalDataFrame_Ph2.h:12
EBDetId
Definition: EBDetId.h:17
EBDetId.h
EcalDataFrame_Ph2::setSample
void setSample(int i, EcalLiteDTUSample sam)
Definition: EcalDataFrame_Ph2.h:29
EcalDataFrame_Ph2::EcalDataFrame_Ph2
EcalDataFrame_Ph2(edm::DataFrame const &iframe)
Definition: EcalDataFrame_Ph2.h:15
EcalLiteDTUSample.h
EcalDataFrame_Ph2::frame
edm::DataFrame const & frame() const
Definition: EcalDataFrame_Ph2.h:33
DetId
Definition: DetId.h:17
EcalDataFrame_Ph2::key_type
EBDetId key_type
Definition: EcalDataFrame_Ph2.h:25
EcalDataFrame_Ph2::~EcalDataFrame_Ph2
virtual ~EcalDataFrame_Ph2()
Definition: EcalDataFrame_Ph2.h:17
EcalDataFrame_Ph2::setSize
void setSize(int)
Definition: EcalDataFrame_Ph2.h:28
ecalPh2::sampleSize
static constexpr unsigned int sampleSize
Definition: EcalConstants.h:12
DataFrame.h
EcalLiteDTUSample
Definition: EcalLiteDTUSample.h:25
EcalDataFrame_Ph2::sample
EcalLiteDTUSample sample(int i) const
Definition: EcalDataFrame_Ph2.h:23
EcalConstants.h
EcalDataFrame_Ph2::operator[]
EcalLiteDTUSample operator[](int i) const
Definition: EcalDataFrame_Ph2.h:22
edm::DataFrame
Definition: DataFrame.h:15
EcalDataFrame_Ph2::frame
edm::DataFrame & frame()
Definition: EcalDataFrame_Ph2.h:34
DetId.h
EcalDataFrame_Ph2::m_data
edm::DataFrame m_data
Definition: EcalDataFrame_Ph2.h:37
EcalDataFrame_Ph2::EcalDataFrame_Ph2
EcalDataFrame_Ph2()
Definition: EcalDataFrame_Ph2.h:14
EcalDataFrame_Ph2::MAXSAMPLES
static constexpr int MAXSAMPLES
Definition: EcalDataFrame_Ph2.h:31
edm::DataFrame::size
constexpr size_type size() const
Definition: DataFrame.h:43
edm::DataFrame::id
constexpr id_type id() const
Definition: DataFrame.h:41
EcalDataFrame_Ph2::id
DetId id() const
Definition: EcalDataFrame_Ph2.h:18
EcalDataFrame_Ph2::size
int size() const
Definition: EcalDataFrame_Ph2.h:20
EcalDataFrame_Ph2::Base
EcalDataFrame_Ph2 Base
For the sorted collection.
Definition: EcalDataFrame_Ph2.h:26