CMS 3D CMS Logo

Public Member Functions | Public Attributes | Static Public Attributes

EcalShowerContainmentCorrections::Coefficients Struct Reference

Structure defining the container for correction coefficients. More...

#include <EcalShowerContainmentCorrections.h>

List of all members.

Public Member Functions

 Coefficients ()
 Coefficients (const Coefficients &coeff)
Coefficientsoperator= (const Coefficients &coeff)

Public Attributes

double data [kSize]

Static Public Attributes

static const int kNTypes = 8
 Number of types of correction: Left, right, 3x3, 5x5, x, y.
static const int kPolynomialDegree = 4
 The degree of the polynomial used as correction function plus one.
static const unsigned int kSize = kPolynomialDegree* kNTypes

Detailed Description

Structure defining the container for correction coefficients.

data[0-3] : 3x3, x, right data[4-7] : 3x3, x, left data[8-11] : 3x3, y, right data[12-15] : 3x3, y, left data[16-19] : 5x5, x, right data[20-23] : 5x5, x, left data[24-27] : 5x5, y, right data[28-31] : 5x5, y, left

Definition at line 59 of file EcalShowerContainmentCorrections.h.


Constructor & Destructor Documentation

EcalShowerContainmentCorrections::Coefficients::Coefficients ( ) [inline]

Definition at line 61 of file EcalShowerContainmentCorrections.h.

References data, i, and kSize.

{for(unsigned int i=0; i<Coefficients::kSize; ++i) data[i]=0;}
EcalShowerContainmentCorrections::Coefficients::Coefficients ( const Coefficients coeff) [inline]

Definition at line 62 of file EcalShowerContainmentCorrections.h.

References filterCSVwithJSON::copy, data, and kSize.

                                           {
      std::copy(coeff.data,
                coeff.data+Coefficients::kSize,
                data);
    }

Member Function Documentation

Coefficients& EcalShowerContainmentCorrections::Coefficients::operator= ( const Coefficients coeff) [inline]

Definition at line 68 of file EcalShowerContainmentCorrections.h.

References filterCSVwithJSON::copy, data, and kSize.

                                                      {
      if (this == &coeff) return *this; 
      std::copy(coeff.data,coeff.data+Coefficients::kSize,data);
      return *this;
    }

Member Data Documentation

Number of types of correction: Left, right, 3x3, 5x5, x, y.

Definition at line 78 of file EcalShowerContainmentCorrections.h.

The degree of the polynomial used as correction function plus one.

Definition at line 75 of file EcalShowerContainmentCorrections.h.

Referenced by EcalShowerContainmentCorrections::correctionXY().

Definition at line 79 of file EcalShowerContainmentCorrections.h.

Referenced by Coefficients(), and operator=().