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  {
22  public:
24  : title_(""), etaMin_(0.0), etaMax_(0.0), phiBin0Edge_(0.0),
25  nEtaBins_(0), nPhiBins_(0) {}
26 
27  DiscretizedEnergyFlow(const double* data, const char* title,
28  double etaMin, double etaMax,
29  double phiBin0Edge, unsigned nEtaBins,
30  unsigned nPhiBins);
31 
32  inline const double* data() const
33  {
34  if (data_.empty()) return 0;
35  else return &data_[0];
36  }
37  inline const char* title() const {return title_.c_str();}
38  inline double etaMin() const {return etaMin_;}
39  inline double etaMax() const {return etaMax_;}
40  inline double phiBin0Edge() const {return phiBin0Edge_;}
41  inline unsigned nEtaBins() const {return nEtaBins_;}
42  inline unsigned nPhiBins() const {return nPhiBins_;}
43 
44  private:
45  std::vector<double> data_;
47  double etaMin_;
48  double etaMax_;
49  double phiBin0Edge_;
50  unsigned nEtaBins_;
51  unsigned nPhiBins_;
52  };
53 }
54 
55 #endif // DataFormats_FFTJetAlgorithms_DiscretizedEnergyFlow_h
const double * data() const
fixed size matrix