CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCDBPedestals.h
Go to the documentation of this file.
1 #ifndef CSCDBPedestals_h
2 #define CSCDBPedestals_h
3 
4 #include <iosfwd>
5 #include <vector>
6 
8  public:
11 
12  struct Item{
13  short int ped;
14  short int rms;
15  };
18 
19  enum factors{FPED=10, FRMS=1000};
20 
21  typedef std::vector<Item> PedestalContainer;
23 
24  const Item & item(int index) const { return pedestals[index]; }
25  short int pedestal( int index ) const { return pedestals[index].ped; }
26  int scale_ped() const { return factor_ped; }
27  short int pedestal_rms( int index ) const { return pedestals[index].rms; }
28  int scale_rms() const { return factor_rms; }
29 };
30 
31 std::ostream & operator<<(std::ostream & os, const CSCDBPedestals & cscdb);
32 
33 #endif
std::vector< Item > PedestalContainer
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
short int pedestal_rms(int index) const
int scale_rms() const
const Item & item(int index) const
PedestalContainer pedestals
short int pedestal(int index) const
int scale_ped() const