CMS 3D CMS Logo

Public Member Functions | Public Attributes | Static Public Attributes

EcalGlobalShowerContainmentCorrectionsVsEta::Coefficients Struct Reference

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

#include <EcalGlobalShowerContainmentCorrectionsVsEta.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 kCoefficients = 3
 The degree of the polynomial used as correction function plus one.
static const int kNTypes = 2
 Number of types of correction: 3x3, 5x5.
static const unsigned int kSize = kCoefficients * kNTypes

Detailed Description

Structure defining the container for correction coefficients.

data[0-2] : 3x3 data[3-5] : 5x5

Definition at line 44 of file EcalGlobalShowerContainmentCorrectionsVsEta.h.


Constructor & Destructor Documentation

EcalGlobalShowerContainmentCorrectionsVsEta::Coefficients::Coefficients ( ) [inline]

Definition at line 46 of file EcalGlobalShowerContainmentCorrectionsVsEta.h.

References data, i, and kSize.

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

Definition at line 47 of file EcalGlobalShowerContainmentCorrectionsVsEta.h.

References filterCSVwithJSON::copy, data, and kSize.

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

Member Function Documentation

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

Definition at line 53 of file EcalGlobalShowerContainmentCorrectionsVsEta.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

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

Definition at line 60 of file EcalGlobalShowerContainmentCorrectionsVsEta.h.

Referenced by EcalGlobalShowerContainmentCorrectionsVsEta::correction().

Number of types of correction: 3x3, 5x5.

Definition at line 63 of file EcalGlobalShowerContainmentCorrectionsVsEta.h.

Definition at line 64 of file EcalGlobalShowerContainmentCorrectionsVsEta.h.

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