CMS 3D CMS Logo

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