DataFormats
EcalDigi
interface
ESDataFrame.h
Go to the documentation of this file.
1
#ifndef DIGIECAL_ESDATAFRAME_H
2
#define DIGIECAL_ESDATAFRAME_H
3
4
#include "
DataFormats/EcalDetId/interface/ESDetId.h
"
5
#include "
DataFormats/EcalDigi/interface/ESSample.h
"
6
#include "
DataFormats/Common/interface/DataFrame.h
"
7
#include <vector>
8
#include <ostream>
9
10
class
ESDataFrame
{
11
public
:
12
typedef
ESDetId
key_type
;
13
14
ESDataFrame
();
15
explicit
ESDataFrame
(
const
ESDetId
&
id
);
16
17
ESDataFrame
(
const
edm::DataFrame
&
df
);
18
19
const
ESDetId
&
id
()
const
{
return
id_
; }
20
21
int
size
()
const
{
return
size_
; }
22
23
const
ESSample
&
operator[]
(
int
i
)
const
{
return
data_
[
i
]; }
24
const
ESSample
&
sample
(
int
i
)
const
{
return
data_
[
i
]; }
25
26
void
setSize
(
int
size
);
27
28
void
setSample
(
int
i
,
const
ESSample
& sam) {
data_
[
i
] = sam; }
29
30
static
const
int
MAXSAMPLES
= 3;
31
32
private
:
33
ESDetId
id_
;
34
int
size_
;
35
36
ESSample
data_
[
MAXSAMPLES
];
37
};
38
39
std::ostream&
operator<<
(std::ostream&,
const
ESDataFrame
&);
40
41
#endif
mps_fire.i
i
Definition:
mps_fire.py:428
operator<<
std::ostream & operator<<(std::ostream &, const ESDataFrame &)
Definition:
ESDataFrame.cc:26
ESDataFrame::data_
ESSample data_[MAXSAMPLES]
Definition:
ESDataFrame.h:36
ESDataFrame::ESDataFrame
ESDataFrame()
Definition:
ESDataFrame.cc:3
ESDataFrame::size
int size() const
Definition:
ESDataFrame.h:21
ESDetId
Definition:
ESDetId.h:15
ESDetId.h
ESDataFrame
Definition:
ESDataFrame.h:10
ESDataFrame::sample
const ESSample & sample(int i) const
Definition:
ESDataFrame.h:24
ESDataFrame::MAXSAMPLES
static const int MAXSAMPLES
Definition:
ESDataFrame.h:30
ESDataFrame::setSize
void setSize(int size)
Definition:
ESDataFrame.cc:17
ESDataFrame::size_
int size_
Definition:
ESDataFrame.h:34
ESSample
Definition:
ESSample.h:7
DataFrame.h
ESSample.h
ESDataFrame::setSample
void setSample(int i, const ESSample &sam)
Definition:
ESDataFrame.h:28
ESDataFrame::operator[]
const ESSample & operator[](int i) const
Definition:
ESDataFrame.h:23
edm::DataFrame
Definition:
DataFrame.h:15
hgcalPerformanceValidation.df
df
Definition:
hgcalPerformanceValidation.py:640
ESDataFrame::key_type
ESDetId key_type
For the sorted collection.
Definition:
ESDataFrame.h:12
ESDataFrame::id_
ESDetId id_
Definition:
ESDataFrame.h:33
ESDataFrame::id
const ESDetId & id() const
Definition:
ESDataFrame.h:19
Generated for CMSSW Reference Manual by
1.8.16