CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCDBGains.h
Go to the documentation of this file.
1 #ifndef CSCDBGains_h
2 #define CSCDBGains_h
3 
4 #include <iosfwd>
5 #include <vector>
6 
7 class CSCDBGains{
8  public:
11 
12  struct Item{
13  short int gain_slope;
14  };
16 
17  enum factors{FGAIN=1000};
18 
19  typedef std::vector<Item> GainContainer;
21 
22  const Item & item(int index) const { return gains[index]; }
23  short int gain( int index ) const { return gains[index].gain_slope; }
24  int scale() const { return factor_gain; }
25 };
26 
27 std::ostream & operator<<(std::ostream & os, const CSCDBGains & cscdb);
28 
29 #endif
30 
const Item & item(int index) const
Definition: CSCDBGains.h:22
CSCDBGains()
Definition: CSCDBGains.h:9
short int gain_slope
Definition: CSCDBGains.h:13
GainContainer gains
Definition: CSCDBGains.h:20
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
int factor_gain
Definition: CSCDBGains.h:15
std::vector< Item > GainContainer
Definition: CSCDBGains.h:19
short int gain(int index) const
Definition: CSCDBGains.h:23
int scale() const
Definition: CSCDBGains.h:24