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

◆ DiscretizedEnergyFlow() [1/2]

reco::DiscretizedEnergyFlow::DiscretizedEnergyFlow ( )
inline

◆ DiscretizedEnergyFlow() [2/2]

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 cms::cuda::assert(), filterCSVwithJSON::copy, data(), data_, LaserClient_cfi::nbins, nEtaBins(), nPhiBins(), and title().

15  : title_(title),
16  etaMin_(etaMin),
17  etaMax_(etaMax),
21  assert(data);
22  assert(title);
23  const unsigned nbins = nEtaBins * nPhiBins;
24  data_.resize(nbins);
25  std::copy(data, data + nbins, data_.begin());
26  }
assert(be >=bs)

Member Function Documentation

◆ data()

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

Definition at line 33 of file DiscretizedEnergyFlow.h.

References data_.

Referenced by DiscretizedEnergyFlow().

33  {
34  if (data_.empty())
35  return nullptr;
36  else
37  return &data_[0];
38  }

◆ etaMax()

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

Definition at line 41 of file DiscretizedEnergyFlow.h.

References etaMax_.

◆ etaMin()

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

Definition at line 40 of file DiscretizedEnergyFlow.h.

References etaMin_.

◆ nEtaBins()

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

Definition at line 43 of file DiscretizedEnergyFlow.h.

References nEtaBins_.

Referenced by DiscretizedEnergyFlow().

◆ nPhiBins()

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

Definition at line 44 of file DiscretizedEnergyFlow.h.

References nPhiBins_.

Referenced by DiscretizedEnergyFlow().

◆ phiBin0Edge()

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

Definition at line 42 of file DiscretizedEnergyFlow.h.

References phiBin0Edge_.

◆ title()

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

Definition at line 39 of file DiscretizedEnergyFlow.h.

References title_.

Referenced by DiscretizedEnergyFlow().

39 { return title_.c_str(); }

Member Data Documentation

◆ data_

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

Definition at line 47 of file DiscretizedEnergyFlow.h.

Referenced by data(), and DiscretizedEnergyFlow().

◆ etaMax_

double reco::DiscretizedEnergyFlow::etaMax_
private

Definition at line 50 of file DiscretizedEnergyFlow.h.

Referenced by etaMax().

◆ etaMin_

double reco::DiscretizedEnergyFlow::etaMin_
private

Definition at line 49 of file DiscretizedEnergyFlow.h.

Referenced by etaMin().

◆ nEtaBins_

unsigned reco::DiscretizedEnergyFlow::nEtaBins_
private

Definition at line 52 of file DiscretizedEnergyFlow.h.

Referenced by nEtaBins().

◆ nPhiBins_

unsigned reco::DiscretizedEnergyFlow::nPhiBins_
private

Definition at line 53 of file DiscretizedEnergyFlow.h.

Referenced by nPhiBins().

◆ phiBin0Edge_

double reco::DiscretizedEnergyFlow::phiBin0Edge_
private

Definition at line 51 of file DiscretizedEnergyFlow.h.

Referenced by phiBin0Edge().

◆ title_

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

Definition at line 48 of file DiscretizedEnergyFlow.h.

Referenced by title().