Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef CSCDBChipSpeedCorrection_h
0002 #define CSCDBChipSpeedCorrection_h
0003 
0004 #include "CondFormats/Serialization/interface/Serializable.h"
0005 
0006 #include <iosfwd>
0007 #include <vector>
0008 
0009 class CSCDBChipSpeedCorrection {
0010 public:
0011   CSCDBChipSpeedCorrection() {}
0012   ~CSCDBChipSpeedCorrection() {}
0013 
0014   struct Item {
0015     short int speedCorr;
0016 
0017     COND_SERIALIZABLE;
0018   };
0019   int factor_speedCorr;
0020 
0021   enum factors { FCORR = 100 };
0022 
0023   typedef std::vector<Item> ChipSpeedContainer;
0024   ChipSpeedContainer chipSpeedCorr;
0025 
0026   const Item& item(int index) const { return chipSpeedCorr[index]; }
0027   short int value(int index) const { return chipSpeedCorr[index].speedCorr; }
0028   int scale() const { return factor_speedCorr; }
0029 
0030   COND_SERIALIZABLE;
0031 };
0032 
0033 std::ostream& operator<<(std::ostream& os, const CSCDBChipSpeedCorrection& cscdb);
0034 
0035 #endif