Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:13

0001 #ifndef HcalPedestalWidth_h
0002 #define HcalPedestalWidth_h
0003 
0004 /** 
0005 \class HcalPedestalWidth
0006 \author Fedor Ratnikov (UMd)
0007 POOL object to store PedestalWidth values 4xCapId
0008 $Author: ratnikov
0009 $Date: 2008/11/07 16:05:50 $
0010 $Revision: 1.9 $
0011 */
0012 #include "CondFormats/Serialization/interface/Serializable.h"
0013 #include <cstdint>
0014 
0015 class HcalPedestalWidth {
0016 public:
0017   /// get value for all capId = 0..3, 10 values in total
0018   const float* getValues() const { return &mSigma00; }
0019 
0020   /// get width (sqrt(sigma_i_i)) for capId = 0..3
0021   float getWidth(int fCapId) const;
0022 
0023   /// get correlation element for capId1/2 = 0..3
0024   float getSigma(int fCapId1, int fCapId2) const;
0025 
0026   // functions below are not supposed to be used by consumer applications
0027   HcalPedestalWidth(int fId = 0);
0028   void setSigma(int fCapId1, int fCapId2, float fSigma);
0029 
0030   uint32_t rawId() const { return mId; }
0031 
0032 private:
0033   uint32_t mId;
0034   float mSigma00;
0035   float mSigma01;
0036   float mSigma02;
0037   float mSigma03;
0038   float mSigma10;
0039   float mSigma11;
0040   float mSigma12;
0041   float mSigma13;
0042   float mSigma20;
0043   float mSigma21;
0044   float mSigma22;
0045   float mSigma23;
0046   float mSigma30;
0047   float mSigma31;
0048   float mSigma32;
0049   float mSigma33;
0050 
0051   COND_SERIALIZABLE;
0052 };
0053 
0054 #endif