CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
const Item & item(int index) const
Definition: CSCDBGains.h:26
short int gain_slope
Definition: CSCDBGains.h:15
GainContainer gains
Definition: CSCDBGains.h:24
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
int factor_gain
Definition: CSCDBGains.h:19
std::vector< Item > GainContainer
Definition: CSCDBGains.h:23
#define COND_SERIALIZABLE
Definition: Serializable.h:39
short int gain(int index) const
Definition: CSCDBGains.h:27
int scale() const
Definition: CSCDBGains.h:28