CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC4_patch1/src/CondFormats/CSCObjects/interface/CSCDBGains.h

Go to the documentation of this file.
00001 #ifndef CSCDBGains_h
00002 #define CSCDBGains_h
00003 
00004 #include <iosfwd>
00005 #include <vector>
00006 
00007 class CSCDBGains{
00008  public:
00009   CSCDBGains(){}
00010   ~CSCDBGains(){}
00011 
00012   struct Item{
00013     short int gain_slope;
00014   };
00015   int factor_gain;
00016 
00017   enum factors{FGAIN=1000};
00018 
00019   typedef std::vector<Item> GainContainer;
00020   GainContainer gains;
00021 
00022   const Item & item(int index) const { return gains[index]; }
00023   short int gain( int index ) const { return gains[index].gain_slope; }
00024   int scale() const { return factor_gain; }
00025 };
00026 
00027 std::ostream & operator<<(std::ostream & os, const CSCDBGains & cscdb);
00028 
00029 #endif
00030