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 
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
std::vector< Item > PedestalContainer
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
short int pedestal_rms(int index) const
#define COND_SERIALIZABLE
Definition: Serializable.h:30
int scale_rms() const
const Item & item(int index) const
PedestalContainer pedestals
short int pedestal(int index) const
int scale_ped() const