test
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 Member Functions | Private Attributes | Friends
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 Member Functions

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

Private Attributes

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

Friends

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

Detailed Description

Definition at line 10 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, cuy::ii, 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
int ii
Definition: cuy.py:588
signed short int cmatrix[4][55]
int j
Definition: DBlmapReader.cc:9
uint32_t HcalCholeskyMatrix::rawId ( ) const
inline
template<class Archive >
void HcalCholeskyMatrix::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void HcalCholeskyMatrix::setValue ( int  capid,
int  i,
int  j,
float  val 
)

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 24 of file HcalCholeskyMatrix.h.

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

Definition at line 24 of file HcalCholeskyMatrix.h.

Member Data Documentation

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

Definition at line 20 of file HcalCholeskyMatrix.h.

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

uint32_t HcalCholeskyMatrix::mId
private

Definition at line 21 of file HcalCholeskyMatrix.h.

Referenced by rawId().