CMS 3D CMS Logo

Public Member Functions | Private Attributes

HcalCholeskyMatrix Class Reference

#include <HcalCholeskyMatrix.h>

List of all members.

Public Member Functions

float getValue (int capid, int i, int j) const
 HcalCholeskyMatrix (int fId=0)
uint32_t rawId () const
void setValue (int capid, int i, int j, float val)

Private Attributes

signed short int cmatrix [4][55]
uint32_t mId

Detailed Description

Definition at line 8 of file HcalCholeskyMatrix.h.


Constructor & Destructor Documentation

HcalCholeskyMatrix::HcalCholeskyMatrix ( int  fId = 0)

Definition at line 4 of file HcalCholeskyMatrix.cc.

References cmatrix, and i.

                                              : mId (fId)
{
   for(int cap = 0; cap != 4; cap++)
      for(int i = 0; i != 55; i++)
         cmatrix[cap][i] = 0;
}

Member Function Documentation

float HcalCholeskyMatrix::getValue ( int  capid,
int  i,
int  j 
) const

Definition at line 12 of file HcalCholeskyMatrix.cc.

References cmatrix, cuy::ii, and findQualityFiles::jj.

Referenced by HcalAmplifier::makeNoise().

{
   if(i < j) return 0;
   int ii = i + 1;
   int jj = j + 1;
   float blah = (float)(cmatrix[capid][(ii*(ii-1)/2+jj)-1]);
   return blah/1000;
}
uint32_t HcalCholeskyMatrix::rawId ( ) const [inline]
void HcalCholeskyMatrix::setValue ( int  capid,
int  i,
int  j,
float  val 
)

Definition at line 22 of file HcalCholeskyMatrix.cc.

References cmatrix, cuy::ii, and findQualityFiles::jj.

Referenced by HcalCholeskyDecomp::analyze().

{
   if(i < j) return;
   int ii = i + 1;
   int jj = j + 1;
   cmatrix[capid][(int)(ii*(ii-1)/2+jj)-1] = (signed short int)(floor)(val*10000);
}

Member Data Documentation

signed short int HcalCholeskyMatrix::cmatrix[4][55] [private]

Definition at line 18 of file HcalCholeskyMatrix.h.

Referenced by getValue(), HcalCholeskyMatrix(), and setValue().

uint32_t HcalCholeskyMatrix::mId [private]

Definition at line 19 of file HcalCholeskyMatrix.h.

Referenced by rawId().