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
assert(be >=bs)
fixed size matrix
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79