CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | Private Member Functions | Friends
EcalPulseSymmCovariance Struct Reference

#include <EcalPulseSymmCovariances.h>

Public Member Functions

 EcalPulseSymmCovariance ()
 
int indexFor (int i, int j) const
 
float val (int i, int j) const
 
float & val (int i, int j)
 

Public Attributes

float covval [EcalPulseShape::TEMPLATESAMPLES *(EcalPulseShape::TEMPLATESAMPLES+1)/2]
 

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

Definition at line 11 of file EcalPulseSymmCovariances.h.

Constructor & Destructor Documentation

EcalPulseSymmCovariance::EcalPulseSymmCovariance ( )

Definition at line 3 of file EcalPulseSymmCovariances.cc.

References covval, isotrackApplyRegressor::k, N, and EcalPulseShape::TEMPLATESAMPLES.

3  {
5  for (int k = 0; k < N; ++k)
6  covval[k] = 0.;
7 }
static const int TEMPLATESAMPLES
#define N
Definition: blowfish.cc:9
float covval[EcalPulseShape::TEMPLATESAMPLES *(EcalPulseShape::TEMPLATESAMPLES+1)/2]

Member Function Documentation

int EcalPulseSymmCovariance::indexFor ( int  i,
int  j 
) const
inline
template<class Archive >
void EcalPulseSymmCovariance::serialize ( Archive &  ar,
const unsigned int  version 
)
private
float EcalPulseSymmCovariance::val ( int  i,
int  j 
) const
inline

Definition at line 23 of file EcalPulseSymmCovariances.h.

References covval, and indexFor().

23 { return covval[indexFor(i, j)]; }
float covval[EcalPulseShape::TEMPLATESAMPLES *(EcalPulseShape::TEMPLATESAMPLES+1)/2]
int indexFor(int i, int j) const
float& EcalPulseSymmCovariance::val ( int  i,
int  j 
)
inline

Definition at line 24 of file EcalPulseSymmCovariances.h.

References covval, and indexFor().

24 { return covval[indexFor(i, j)]; }
float covval[EcalPulseShape::TEMPLATESAMPLES *(EcalPulseShape::TEMPLATESAMPLES+1)/2]
int indexFor(int i, int j) const

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 26 of file EcalPulseSymmCovariances.h.

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

Definition at line 26 of file EcalPulseSymmCovariances.h.

Member Data Documentation

float EcalPulseSymmCovariance::covval[EcalPulseShape::TEMPLATESAMPLES *(EcalPulseShape::TEMPLATESAMPLES+1)/2]

Definition at line 15 of file EcalPulseSymmCovariances.h.

Referenced by EcalPulseSymmCovariance(), and val().