CMS 3D CMS Logo

DiscretizedEnergyFlow.cc
Go to the documentation of this file.
1 #include <cassert>
2 #include <algorithm>
3 
5 
6 namespace reco {
7 
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
ALCARECOTkAlBeamHalo_cff.etaMin
etaMin
GeV.
Definition: ALCARECOTkAlBeamHalo_cff.py:32
filterCSVwithJSON.copy
copy
Definition: filterCSVwithJSON.py:36
reco::DiscretizedEnergyFlow::DiscretizedEnergyFlow
DiscretizedEnergyFlow()
Definition: DiscretizedEnergyFlow.h:22
cms::cuda::assert
assert(be >=bs)
reco::DiscretizedEnergyFlow::nPhiBins
unsigned nPhiBins() const
Definition: DiscretizedEnergyFlow.h:44
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
reco::DiscretizedEnergyFlow::data
const double * data() const
Definition: DiscretizedEnergyFlow.h:33
LaserClient_cfi.nbins
nbins
Definition: LaserClient_cfi.py:51
fftjetcommon_cfi.phiBin0Edge
phiBin0Edge
Definition: fftjetcommon_cfi.py:31
reco::DiscretizedEnergyFlow::title
const char * title() const
Definition: DiscretizedEnergyFlow.h:39
overlapproblemtsosanalyzer_cfi.title
title
Definition: overlapproblemtsosanalyzer_cfi.py:7
L1TMuonDQMOffline_cfi.nEtaBins
nEtaBins
Definition: L1TMuonDQMOffline_cfi.py:21
ALCARECOTkAlBeamHalo_cff.etaMax
etaMax
Definition: ALCARECOTkAlBeamHalo_cff.py:33
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
DiscretizedEnergyFlow.h
ecaldqm::binning::nPhiBins
Definition: MESetBinningUtils.h:69
reco::DiscretizedEnergyFlow::data_
std::vector< double > data_
Definition: DiscretizedEnergyFlow.h:47
reco::DiscretizedEnergyFlow::nEtaBins
unsigned nEtaBins() const
Definition: DiscretizedEnergyFlow.h:43