CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Member Functions | Friends
EcalPulseSymmCovariance Struct Reference

#include <EcalPulseSymmCovariances.h>

Public Member Functions

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

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 9 of file EcalPulseSymmCovariances.h.

Constructor & Destructor Documentation

EcalPulseSymmCovariance::EcalPulseSymmCovariance ( )

Definition at line 3 of file EcalPulseSymmCovariances.cc.

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

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

Member Function Documentation

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 17 of file EcalPulseSymmCovariances.h.

References covval, gen::k, and EcalPulseShape::TEMPLATESAMPLES.

17  {
18 
19  int k=-1;
20  if(j >= i) k = j + (EcalPulseShape::TEMPLATESAMPLES-1)*i;
21  else k = i + (EcalPulseShape::TEMPLATESAMPLES-1)*j;
22  return covval[k];
23 
24  }
static const int TEMPLATESAMPLES
int k[5][pyjets_maxn]
float covval[EcalPulseShape::TEMPLATESAMPLES *(EcalPulseShape::TEMPLATESAMPLES+1)/2]

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]