CMS 3D CMS Logo

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

#include <HcalCholeskyMatrix.h>

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.

4  : mId (fId)
5 {
6  for(int cap = 0; cap != 4; cap++)
7  for(int i = 0; i != 55; i++)
8  cmatrix[cap][i] = 0;
9 }
int i
Definition: DBlmapReader.cc:9
signed short int cmatrix[4][55]

Member Function Documentation

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

Definition at line 12 of file HcalCholeskyMatrix.cc.

References cmatrix, and findQualityFiles::jj.

Referenced by HcalAmplifier::makeNoise().

13 {
14  if(i < j) return 0;
15  int ii = i + 1;
16  int jj = j + 1;
17  float blah = (float)(cmatrix[capid][(ii*(ii-1)/2+jj)-1]);
18  return blah/1000;
19 }
int i
Definition: DBlmapReader.cc:9
signed short int cmatrix[4][55]
int j
Definition: DBlmapReader.cc:9
uint32_t HcalCholeskyMatrix::rawId ( ) const
inline
void HcalCholeskyMatrix::setValue ( int  capid,
int  i,
int  j,
float  val 
)

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().