test
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 75 of file MESetBinningUtils.h.

Constructor & Destructor Documentation

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

Definition at line 82 of file MESetBinningUtils.h.

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

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

Definition at line 109 of file MESetBinningUtils.h.

References edges, and labels.

110  {
111  delete [] edges;
112  delete [] labels;
113  }

Member Function Documentation

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

Definition at line 94 of file MESetBinningUtils.h.

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

95  {
96  if(edges){ delete [] edges; edges = 0; }
97  if(labels){ delete [] labels; labels = 0; }
98  nbins = _rhs.nbins; low = _rhs.low; high = _rhs.high; title = _rhs.title;
99  if(_rhs.edges){
100  edges = new float[nbins + 1];
101  for(int i(0); i <= nbins; i++) edges[i] = _rhs.edges[i];
102  }
103  if(_rhs.labels){
104  labels = new std::string[nbins];
105  for(int i(0); i < nbins; i++) labels[i] = _rhs.labels[i];
106  }
107  return *this;
108  }
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