CMS 3D CMS Logo

CastorPedestalWidth.h
Go to the documentation of this file.
1 #ifndef CastorPedestalWidth_h
2 #define CastorPedestalWidth_h
3 
14 #include <cstdint>
15 
17 public:
19  const float* getValues() const { return &mSigma00; }
20 
22  float getWidth(int fCapId) const;
23 
25  float getSigma(int fCapId1, int fCapId2) const;
26 
27  // functions below are not supposed to be used by consumer applications
28  CastorPedestalWidth(int fId = 0);
29  void setSigma(int fCapId1, int fCapId2, float fSigma);
30 
31  uint32_t rawId() const { return mId; }
32 
33  // produces pedestal noise in assumption of near correlations and small variations
34  void makeNoise(unsigned fFrames, const double* fGauss, double* fNoise) const;
35 
36 private:
37  uint32_t mId;
38  float mSigma00;
39  float mSigma01;
40  float mSigma02;
41  float mSigma03;
42  float mSigma10;
43  float mSigma11;
44  float mSigma12;
45  float mSigma13;
46  float mSigma20;
47  float mSigma21;
48  float mSigma22;
49  float mSigma23;
50  float mSigma30;
51  float mSigma31;
52  float mSigma32;
53  float mSigma33;
54 
56 };
57 
58 #endif
CastorPedestalWidth::mSigma01
float mSigma01
Definition: CastorPedestalWidth.h:39
CastorPedestalWidth::mSigma33
float mSigma33
Definition: CastorPedestalWidth.h:53
CastorPedestalWidth::mSigma10
float mSigma10
Definition: CastorPedestalWidth.h:42
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
CastorPedestalWidth::mSigma12
float mSigma12
Definition: CastorPedestalWidth.h:44
CastorPedestalWidth::CastorPedestalWidth
CastorPedestalWidth(int fId=0)
Definition: CastorPedestalWidth.cc:27
CastorPedestalWidth
Definition: CastorPedestalWidth.h:16
CastorPedestalWidth::rawId
uint32_t rawId() const
Definition: CastorPedestalWidth.h:31
CastorPedestalWidth::getWidth
float getWidth(int fCapId) const
get width (sqrt(sigma_i_i)) for capId = 0..3
Definition: CastorPedestalWidth.cc:32
CastorPedestalWidth::mSigma00
float mSigma00
Definition: CastorPedestalWidth.h:38
CastorPedestalWidth::mSigma11
float mSigma11
Definition: CastorPedestalWidth.h:43
CastorPedestalWidth::mSigma20
float mSigma20
Definition: CastorPedestalWidth.h:46
CastorPedestalWidth::mId
uint32_t mId
Definition: CastorPedestalWidth.h:37
CastorPedestalWidth::makeNoise
void makeNoise(unsigned fFrames, const double *fGauss, double *fNoise) const
Definition: CastorPedestalWidth.cc:43
CastorPedestalWidth::getValues
const float * getValues() const
get value for all capId = 0..3, 10 values in total
Definition: CastorPedestalWidth.h:19
CastorPedestalWidth::mSigma21
float mSigma21
Definition: CastorPedestalWidth.h:47
Serializable.h
CastorPedestalWidth::mSigma31
float mSigma31
Definition: CastorPedestalWidth.h:51
CastorPedestalWidth::getSigma
float getSigma(int fCapId1, int fCapId2) const
get correlation element for capId1/2 = 0..3
Definition: CastorPedestalWidth.cc:34
CastorPedestalWidth::setSigma
void setSigma(int fCapId1, int fCapId2, float fSigma)
Definition: CastorPedestalWidth.cc:38
CastorPedestalWidth::mSigma32
float mSigma32
Definition: CastorPedestalWidth.h:52
CastorPedestalWidth::mSigma23
float mSigma23
Definition: CastorPedestalWidth.h:49
CastorPedestalWidth::mSigma13
float mSigma13
Definition: CastorPedestalWidth.h:45
CastorPedestalWidth::mSigma30
float mSigma30
Definition: CastorPedestalWidth.h:50
CastorPedestalWidth::mSigma22
float mSigma22
Definition: CastorPedestalWidth.h:48
CastorPedestalWidth::mSigma03
float mSigma03
Definition: CastorPedestalWidth.h:41
CastorPedestalWidth::mSigma02
float mSigma02
Definition: CastorPedestalWidth.h:40