CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
EcalDQMBinningService::AxisSpecs Struct Reference

#include <EcalDQMBinningService.h>

Public Member Functions

 AxisSpecs ()
 
 AxisSpecs (AxisSpecs const &_specs)
 
AxisSpecsoperator= (AxisSpecs const &_rhs)
 
 ~AxisSpecs ()
 

Public Attributes

double * edges
 
double high
 
double low
 
int nbins
 
std::string title
 

Detailed Description

Definition at line 86 of file EcalDQMBinningService.h.

Constructor & Destructor Documentation

EcalDQMBinningService::AxisSpecs::AxisSpecs ( )
inline
EcalDQMBinningService::AxisSpecs::AxisSpecs ( AxisSpecs const &  _specs)
inline

Definition at line 92 of file EcalDQMBinningService.h.

References edges, i, and nbins.

92  :
93  nbins(_specs.nbins), low(_specs.low), high(_specs.high), edges(0), title(_specs.title)
94  {
95  if(_specs.edges){
96  edges = new double[nbins + 1];
97  for(int i(0); i <= nbins; i++) edges[i] = _specs.edges[i];
98  }
99  }
int i
Definition: DBlmapReader.cc:9
EcalDQMBinningService::AxisSpecs::~AxisSpecs ( )
inline

Definition at line 110 of file EcalDQMBinningService.h.

References edges.

110 { if(edges) delete [] edges; }

Member Function Documentation

AxisSpecs& EcalDQMBinningService::AxisSpecs::operator= ( AxisSpecs const &  _rhs)
inline

Definition at line 100 of file EcalDQMBinningService.h.

References edges, high, i, low, nbins, and title.

101  {
102  if(edges){ delete [] edges; edges = 0; }
103  nbins = _rhs.nbins; low = _rhs.low; high = _rhs.high; title = _rhs.title;
104  if(_rhs.edges){
105  edges = new double[nbins + 1];
106  for(int i(0); i <= nbins; i++) edges[i] = _rhs.edges[i];
107  }
108  return *this;
109  }
int i
Definition: DBlmapReader.cc:9

Member Data Documentation

double* EcalDQMBinningService::AxisSpecs::edges
double EcalDQMBinningService::AxisSpecs::high
double EcalDQMBinningService::AxisSpecs::low
int EcalDQMBinningService::AxisSpecs::nbins
std::string EcalDQMBinningService::AxisSpecs::title