src
DataFormats
JetReco
src
DiscretizedEnergyFlow.cc
Go to the documentation of this file.
1
#include <cassert>
2
#include <algorithm>
3
4
#include "
DataFormats/JetReco/interface/DiscretizedEnergyFlow.h
"
5
6
namespace
reco
{
7
8
DiscretizedEnergyFlow::DiscretizedEnergyFlow
(
const
double
*
data
,
9
const
char
*
title
,
10
const
double
etaMin
,
11
const
double
etaMax
,
12
const
double
phiBin0Edge
,
13
const
unsigned
nEtaBins
,
14
const
unsigned
nPhiBins
)
15
: title_(
title
),
16
etaMin_(
etaMin
),
17
etaMax_(
etaMax
),
18
phiBin0Edge_(
phiBin0Edge
),
19
nEtaBins_(
nEtaBins
),
20
nPhiBins_(
nPhiBins
) {
21
assert
(
data
);
22
assert
(
title
);
23
const
unsigned
nbins
=
nEtaBins
*
nPhiBins
;
24
data_
.resize(
nbins
);
25
std::copy
(
data
,
data
+
nbins
,
data_
.begin());
26
}
27
28
}
// namespace reco
reco::DiscretizedEnergyFlow::nEtaBins
unsigned nEtaBins() const
Definition:
DiscretizedEnergyFlow.h:43
ecaldqm::binning::nPhiBins
Definition:
MESetBinningUtils.h:70
reco::DiscretizedEnergyFlow::DiscretizedEnergyFlow
DiscretizedEnergyFlow()
Definition:
DiscretizedEnergyFlow.h:22
LaserClient_cfi.nbins
nbins
Definition:
LaserClient_cfi.py:53
reco::DiscretizedEnergyFlow::data
const double * data() const
Definition:
DiscretizedEnergyFlow.h:33
reco::DiscretizedEnergyFlow::nPhiBins
unsigned nPhiBins() const
Definition:
DiscretizedEnergyFlow.h:44
cms::cuda::assert
assert(be >=bs)
ALCARECOTkAlBeamHalo_cff.etaMin
etaMin
GeV.
Definition:
ALCARECOTkAlBeamHalo_cff.py:32
DiscretizedEnergyFlow.h
reco::DiscretizedEnergyFlow::title
const char * title() const
Definition:
DiscretizedEnergyFlow.h:39
fftjetcommon_cfi.phiBin0Edge
phiBin0Edge
Definition:
fftjetcommon_cfi.py:31
L1TMuonDQMOffline_cfi.nEtaBins
nEtaBins
Definition:
L1TMuonDQMOffline_cfi.py:21
ALCARECOTkAlBeamHalo_cff.etaMax
etaMax
Definition:
ALCARECOTkAlBeamHalo_cff.py:33
filterCSVwithJSON.copy
copy
Definition:
filterCSVwithJSON.py:36
runGCPTkAlMap.title
string title
Definition:
runGCPTkAlMap.py:94
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:46
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:80
reco::DiscretizedEnergyFlow::data_
std::vector< double > data_
Definition:
DiscretizedEnergyFlow.h:47
Generated for CMSSW Reference Manual by
1.8.14