CMS 3D CMS Logo

Public Member Functions | Public Attributes

EcalDQMBinningService::AxisSpecs Struct Reference

#include <EcalDQMBinningService.h>

List of all members.

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]

Definition at line 91 of file EcalDQMBinningService.h.

: nbins(1), edges(0) {}
EcalDQMBinningService::AxisSpecs::AxisSpecs ( AxisSpecs const &  _specs) [inline]

Definition at line 92 of file EcalDQMBinningService.h.

References edges, i, and nbins.

                                       :
      nbins(_specs.nbins), low(_specs.low), high(_specs.high), edges(0), title(_specs.title)
    {
      if(_specs.edges){
        edges = new double[nbins + 1];
        for(int i(0); i <= nbins; i++) edges[i] = _specs.edges[i];
      }
    }
EcalDQMBinningService::AxisSpecs::~AxisSpecs ( ) [inline]

Definition at line 110 of file EcalDQMBinningService.h.

References edges.

{ 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.

    {
      if(edges){ delete [] edges; edges = 0; }
      nbins = _rhs.nbins; low = _rhs.low; high = _rhs.high; title = _rhs.title;
      if(_rhs.edges){
        edges = new double[nbins + 1];
        for(int i(0); i <= nbins; i++) edges[i] = _rhs.edges[i];
      }
      return *this;
    }

Member Data Documentation