Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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