CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Friends
EcalShowerContainmentCorrections::Coefficients Struct Reference

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

#include <EcalShowerContainmentCorrections.h>

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. More...
 
static const int kPolynomialDegree = 4
 The degree of the polynomial used as correction function plus one. More...
 
static const unsigned int kSize = kPolynomialDegree* kNTypes
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

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 61 of file EcalShowerContainmentCorrections.h.

Constructor & Destructor Documentation

EcalShowerContainmentCorrections::Coefficients::Coefficients ( )
inline
EcalShowerContainmentCorrections::Coefficients::Coefficients ( const Coefficients coeff)
inline

Definition at line 64 of file EcalShowerContainmentCorrections.h.

References popcon2dropbox::copy(), data, and kSize.

64  {
65  std::copy(coeff.data,
66  coeff.data+Coefficients::kSize,
67  data);
68  }
def copy(args, dbName)

Member Function Documentation

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

Definition at line 70 of file EcalShowerContainmentCorrections.h.

References popcon2dropbox::copy(), data, and kSize.

70  {
71  if (this == &coeff) return *this;
72  std::copy(coeff.data,coeff.data+Coefficients::kSize,data);
73  return *this;
74  }
def copy(args, dbName)
template<class Archive >
void EcalShowerContainmentCorrections::Coefficients::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 86 of file EcalShowerContainmentCorrections.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 86 of file EcalShowerContainmentCorrections.h.

Member Data Documentation

double EcalShowerContainmentCorrections::Coefficients::data[kSize]
const int EcalShowerContainmentCorrections::Coefficients::kNTypes = 8
static

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

Definition at line 80 of file EcalShowerContainmentCorrections.h.

const int EcalShowerContainmentCorrections::Coefficients::kPolynomialDegree = 4
static

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

Definition at line 77 of file EcalShowerContainmentCorrections.h.

Referenced by EcalShowerContainmentCorrections::correctionXY().

const unsigned int EcalShowerContainmentCorrections::Coefficients::kSize = kPolynomialDegree* kNTypes
static

Definition at line 81 of file EcalShowerContainmentCorrections.h.

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