CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DiscretizedEnergyFlow.cc
Go to the documentation of this file.
1 #include <cassert>
2 #include <algorithm>
3 
5 
6 namespace reco {
7 
9  const double* data, const char* title,
10  const double etaMin, const double etaMax, const double phiBin0Edge,
11  const unsigned nEtaBins, const unsigned nPhiBins)
12  : title_(title),
13  etaMin_(etaMin),
14  etaMax_(etaMax),
15  phiBin0Edge_(phiBin0Edge),
16  nEtaBins_(nEtaBins),
17  nPhiBins_(nPhiBins)
18 {
19  assert(data);
20  assert(title);
21  const unsigned nbins = nEtaBins*nPhiBins;
22  data_.resize(nbins);
23  std::copy(data, data+nbins, data_.begin());
24 }
25 
26 }
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82