CMS 3D CMS Logo

CSCDBGains.h
Go to the documentation of this file.
1 #ifndef CSCDBGains_h
2 #define CSCDBGains_h
3 
5 
6 #include <iosfwd>
7 #include <vector>
8 
9 class CSCDBGains {
10 public:
13 
14  struct Item {
15  short int gain_slope;
16 
18  };
20 
21  enum factors { FGAIN = 1000 };
22 
23  typedef std::vector<Item> GainContainer;
25 
26  const Item& item(int index) const { return gains[index]; }
27  short int gain(int index) const { return gains[index].gain_slope; }
28  int scale() const { return factor_gain; }
29 
31 };
32 
33 std::ostream& operator<<(std::ostream& os, const CSCDBGains& cscdb);
34 
35 #endif
short int gain(int index) const
Definition: CSCDBGains.h:27
const Item & item(int index) const
Definition: CSCDBGains.h:26
short int gain_slope
Definition: CSCDBGains.h:15
GainContainer gains
Definition: CSCDBGains.h:24
int factor_gain
Definition: CSCDBGains.h:19
std::ostream & operator<<(std::ostream &os, const CSCDBGains &cscdb)
Definition: CSCDBGains.cc:4
std::vector< Item > GainContainer
Definition: CSCDBGains.h:23
int scale() const
Definition: CSCDBGains.h:28
#define COND_SERIALIZABLE
Definition: Serializable.h:39