Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:50:55

0001 #ifndef CSCDBNoiseMatrix_h
0002 #define CSCDBNoiseMatrix_h
0003 
0004 #include "CondFormats/Serialization/interface/Serializable.h"
0005 
0006 #include <iosfwd>
0007 #include <vector>
0008 
0009 class CSCDBNoiseMatrix {
0010 public:
0011   CSCDBNoiseMatrix() {}
0012   ~CSCDBNoiseMatrix() {}
0013 
0014   struct Item {
0015     short int elem33, elem34, elem35, elem44, elem45, elem46, elem55, elem56, elem57, elem66, elem67, elem77;
0016 
0017     COND_SERIALIZABLE;
0018   };
0019   int factor_noise;
0020 
0021   enum factors { FNOISE = 1000 };
0022 
0023   typedef std::vector<Item> NoiseMatrixContainer;
0024   NoiseMatrixContainer matrix;
0025 
0026   const Item& item(int index) const { return matrix[index]; }
0027   int scale() const { return factor_noise; }
0028 
0029   COND_SERIALIZABLE;
0030 };
0031 
0032 std::ostream& operator<<(std::ostream& os, const CSCDBNoiseMatrix& cscdb);
0033 
0034 #endif