CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
reco::DiscretizedEnergyFlow Class Reference

#include <DiscretizedEnergyFlow.h>

Public Member Functions

const double * data () const
 
 DiscretizedEnergyFlow ()
 
 DiscretizedEnergyFlow (const double *data, const char *title, double etaMin, double etaMax, double phiBin0Edge, unsigned nEtaBins, unsigned nPhiBins)
 
double etaMax () const
 
double etaMin () const
 
unsigned nEtaBins () const
 
unsigned nPhiBins () const
 
double phiBin0Edge () const
 
const char * title () const
 

Private Attributes

std::vector< double > data_
 
double etaMax_
 
double etaMin_
 
unsigned nEtaBins_
 
unsigned nPhiBins_
 
double phiBin0Edge_
 
std::string title_
 

Detailed Description

Definition at line 20 of file DiscretizedEnergyFlow.h.

Constructor & Destructor Documentation

reco::DiscretizedEnergyFlow::DiscretizedEnergyFlow ( )
inline
DiscretizedEnergyFlow::DiscretizedEnergyFlow ( const double *  data,
const char *  title,
double  etaMin,
double  etaMax,
double  phiBin0Edge,
unsigned  nEtaBins,
unsigned  nPhiBins 
)

Definition at line 8 of file DiscretizedEnergyFlow.cc.

References filterCSVwithJSON::copy, data_, pileupCalc::nbins, and nPhiBins().

12  : title_(title),
13  etaMin_(etaMin),
14  etaMax_(etaMax),
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 }
const double * data() const

Member Function Documentation

const double* reco::DiscretizedEnergyFlow::data ( ) const
inline

Definition at line 32 of file DiscretizedEnergyFlow.h.

References data_.

Referenced by cuy.FindIssue::__init__(), and FFTJetPileupEstimator::produce().

33  {
34  if (data_.empty()) return 0;
35  else return &data_[0];
36  }
double reco::DiscretizedEnergyFlow::etaMax ( ) const
inline

Definition at line 39 of file DiscretizedEnergyFlow.h.

References etaMax_.

double reco::DiscretizedEnergyFlow::etaMin ( ) const
inline

Definition at line 38 of file DiscretizedEnergyFlow.h.

References etaMin_.

unsigned reco::DiscretizedEnergyFlow::nEtaBins ( ) const
inline

Definition at line 41 of file DiscretizedEnergyFlow.h.

References nEtaBins_.

Referenced by FFTJetPileupEstimator::produce().

unsigned reco::DiscretizedEnergyFlow::nPhiBins ( ) const
inline

Definition at line 42 of file DiscretizedEnergyFlow.h.

References nPhiBins_.

Referenced by DiscretizedEnergyFlow(), and FFTJetPileupEstimator::produce().

double reco::DiscretizedEnergyFlow::phiBin0Edge ( ) const
inline

Definition at line 40 of file DiscretizedEnergyFlow.h.

References phiBin0Edge_.

const char* reco::DiscretizedEnergyFlow::title ( ) const
inline

Member Data Documentation

std::vector<double> reco::DiscretizedEnergyFlow::data_
private

Definition at line 45 of file DiscretizedEnergyFlow.h.

Referenced by data(), and DiscretizedEnergyFlow().

double reco::DiscretizedEnergyFlow::etaMax_
private

Definition at line 48 of file DiscretizedEnergyFlow.h.

Referenced by etaMax().

double reco::DiscretizedEnergyFlow::etaMin_
private

Definition at line 47 of file DiscretizedEnergyFlow.h.

Referenced by etaMin().

unsigned reco::DiscretizedEnergyFlow::nEtaBins_
private

Definition at line 50 of file DiscretizedEnergyFlow.h.

Referenced by nEtaBins().

unsigned reco::DiscretizedEnergyFlow::nPhiBins_
private

Definition at line 51 of file DiscretizedEnergyFlow.h.

Referenced by nPhiBins().

double reco::DiscretizedEnergyFlow::phiBin0Edge_
private

Definition at line 49 of file DiscretizedEnergyFlow.h.

Referenced by phiBin0Edge().

std::string reco::DiscretizedEnergyFlow::title_
private

Definition at line 46 of file DiscretizedEnergyFlow.h.

Referenced by title().