CMS 3D CMS Logo

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 popcon2dropbox::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 }
def copy(args, dbName)
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 FFTJetPileupAnalyzer::analyze(), DiscretizedEnergyFlow(), FFTJetProducer::loadEnergyFlow(), and FFTJetPileupEstimator::produce().

33  {
34  if (data_.empty()) return nullptr;
35  else return &data_[0];
36  }
double reco::DiscretizedEnergyFlow::etaMax ( ) const
inline
double reco::DiscretizedEnergyFlow::etaMin ( ) const
inline
unsigned reco::DiscretizedEnergyFlow::nEtaBins ( ) const
inline
unsigned reco::DiscretizedEnergyFlow::nPhiBins ( ) const
inline
double reco::DiscretizedEnergyFlow::phiBin0Edge ( ) const
inline
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().