CMS 3D CMS Logo

DiscretizedEnergyFlow.h
Go to the documentation of this file.
1 
13 #ifndef DataFormats_FFTJetAlgorithms_DiscretizedEnergyFlow_h
14 #define DataFormats_FFTJetAlgorithms_DiscretizedEnergyFlow_h
15 
16 #include <vector>
17 #include <string>
18 
19 namespace reco {
21  public:
23  : title_(""), etaMin_(0.0), etaMax_(0.0), phiBin0Edge_(0.0), nEtaBins_(0), nPhiBins_(0) {}
24 
25  DiscretizedEnergyFlow(const double* data,
26  const char* title,
27  double etaMin,
28  double etaMax,
29  double phiBin0Edge,
30  unsigned nEtaBins,
31  unsigned nPhiBins);
32 
33  inline const double* data() const {
34  if (data_.empty())
35  return nullptr;
36  else
37  return &data_[0];
38  }
39  inline const char* title() const { return title_.c_str(); }
40  inline double etaMin() const { return etaMin_; }
41  inline double etaMax() const { return etaMax_; }
42  inline double phiBin0Edge() const { return phiBin0Edge_; }
43  inline unsigned nEtaBins() const { return nEtaBins_; }
44  inline unsigned nPhiBins() const { return nPhiBins_; }
45 
46  private:
47  std::vector<double> data_;
49  double etaMin_;
50  double etaMax_;
51  double phiBin0Edge_;
52  unsigned nEtaBins_;
53  unsigned nPhiBins_;
54  };
55 } // namespace reco
56 
57 #endif // DataFormats_FFTJetAlgorithms_DiscretizedEnergyFlow_h
fixed size matrix