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
reco::DiscretizedEnergyFlow::title_
std::string title_
Definition: DiscretizedEnergyFlow.h:48
reco::DiscretizedEnergyFlow::etaMin
double etaMin() const
Definition: DiscretizedEnergyFlow.h:40
reco::DiscretizedEnergyFlow::DiscretizedEnergyFlow
DiscretizedEnergyFlow()
Definition: DiscretizedEnergyFlow.h:22
reco::DiscretizedEnergyFlow::nPhiBins
unsigned nPhiBins() const
Definition: DiscretizedEnergyFlow.h:44
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
reco::DiscretizedEnergyFlow::phiBin0Edge_
double phiBin0Edge_
Definition: DiscretizedEnergyFlow.h:51
reco::DiscretizedEnergyFlow::data
const double * data() const
Definition: DiscretizedEnergyFlow.h:33
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
reco::DiscretizedEnergyFlow::nPhiBins_
unsigned nPhiBins_
Definition: DiscretizedEnergyFlow.h:53
reco::DiscretizedEnergyFlow::title
const char * title() const
Definition: DiscretizedEnergyFlow.h:39
reco::DiscretizedEnergyFlow::etaMin_
double etaMin_
Definition: DiscretizedEnergyFlow.h:49
reco::DiscretizedEnergyFlow::phiBin0Edge
double phiBin0Edge() const
Definition: DiscretizedEnergyFlow.h:42
reco::DiscretizedEnergyFlow::nEtaBins_
unsigned nEtaBins_
Definition: DiscretizedEnergyFlow.h:52
reco::DiscretizedEnergyFlow::etaMax
double etaMax() const
Definition: DiscretizedEnergyFlow.h:41
reco::DiscretizedEnergyFlow
Definition: DiscretizedEnergyFlow.h:20
reco::DiscretizedEnergyFlow::etaMax_
double etaMax_
Definition: DiscretizedEnergyFlow.h:50
reco::DiscretizedEnergyFlow::data_
std::vector< double > data_
Definition: DiscretizedEnergyFlow.h:47
reco::DiscretizedEnergyFlow::nEtaBins
unsigned nEtaBins() const
Definition: DiscretizedEnergyFlow.h:43