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
ecaldqm::binning::AxisSpecs Struct Reference

#include <MESetBinningUtils.h>

Public Member Functions

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

Public Attributes

float * edges
 
float high
 
std::string * labels
 
float low
 
int nbins
 
std::string title
 

Detailed Description

Definition at line 73 of file MESetBinningUtils.h.

Constructor & Destructor Documentation

ecaldqm::binning::AxisSpecs::AxisSpecs ( )
inline
ecaldqm::binning::AxisSpecs::AxisSpecs ( AxisSpecs const &  _specs)
inline

Definition at line 80 of file MESetBinningUtils.h.

References edges, i, labels, nbins, and AlCaHLTBitMon_QueryRunRegistry::string.

80  :
81  nbins(_specs.nbins), low(_specs.low), high(_specs.high), edges(0), labels(0), title(_specs.title)
82  {
83  if(_specs.edges){
84  edges = new float[nbins + 1];
85  for(int i(0); i <= nbins; i++) edges[i] = _specs.edges[i];
86  }
87  if(_specs.labels){
88  labels = new std::string[nbins];
89  for(int i(0); i < nbins; i++) labels[i] = _specs.labels[i];
90  }
91  }
int i
Definition: DBlmapReader.cc:9
ecaldqm::binning::AxisSpecs::~AxisSpecs ( )
inline

Definition at line 107 of file MESetBinningUtils.h.

References edges, and labels.

108  {
109  delete [] edges;
110  delete [] labels;
111  }

Member Function Documentation

AxisSpecs& ecaldqm::binning::AxisSpecs::operator= ( AxisSpecs const &  _rhs)
inline

Definition at line 92 of file MESetBinningUtils.h.

References edges, high, i, labels, low, nbins, AlCaHLTBitMon_QueryRunRegistry::string, and title.

93  {
94  if(edges){ delete [] edges; edges = 0; }
95  if(labels){ delete [] labels; labels = 0; }
96  nbins = _rhs.nbins; low = _rhs.low; high = _rhs.high; title = _rhs.title;
97  if(_rhs.edges){
98  edges = new float[nbins + 1];
99  for(int i(0); i <= nbins; i++) edges[i] = _rhs.edges[i];
100  }
101  if(_rhs.labels){
102  labels = new std::string[nbins];
103  for(int i(0); i < nbins; i++) labels[i] = _rhs.labels[i];
104  }
105  return *this;
106  }
int i
Definition: DBlmapReader.cc:9

Member Data Documentation

float* ecaldqm::binning::AxisSpecs::edges
float ecaldqm::binning::AxisSpecs::high
std::string* ecaldqm::binning::AxisSpecs::labels
float ecaldqm::binning::AxisSpecs::low
int ecaldqm::binning::AxisSpecs::nbins
std::string ecaldqm::binning::AxisSpecs::title