CMS 3D CMS Logo

CSCDBPedestals.h
Go to the documentation of this file.
1 #ifndef CSCDBPedestals_h
2 #define CSCDBPedestals_h
3 
5 
6 #include <iosfwd>
7 #include <vector>
8 
10 public:
13 
14  struct Item {
15  short int ped;
16  short int rms;
17 
19  };
22 
23  enum factors { FPED = 10, FRMS = 1000 };
24 
25  typedef std::vector<Item> PedestalContainer;
27 
28  const Item& item(int index) const { return pedestals[index]; }
29  short int pedestal(int index) const { return pedestals[index].ped; }
30  int scale_ped() const { return factor_ped; }
31  short int pedestal_rms(int index) const { return pedestals[index].rms; }
32  int scale_rms() const { return factor_rms; }
33 
35 };
36 
37 std::ostream& operator<<(std::ostream& os, const CSCDBPedestals& cscdb);
38 
39 #endif
const Item & item(int index) const
std::vector< Item > PedestalContainer
std::ostream & operator<<(std::ostream &os, const CSCDBPedestals &cscdb)
int scale_ped() const
short int pedestal(int index) const
short int pedestal_rms(int index) const
int scale_rms() const
#define COND_SERIALIZABLE
Definition: Serializable.h:39
PedestalContainer pedestals