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
CSCDBPedestals::pedestals
PedestalContainer pedestals
Definition: CSCDBPedestals.h:26
operator<<
std::ostream & operator<<(std::ostream &os, const CSCDBPedestals &cscdb)
Definition: CSCDBPedestals.cc:4
CSCDBPedestals::factor_ped
int factor_ped
Definition: CSCDBPedestals.h:20
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
CSCDBPedestals::scale_rms
int scale_rms() const
Definition: CSCDBPedestals.h:32
CSCDBPedestals::FPED
Definition: CSCDBPedestals.h:23
CSCDBPedestals
Definition: CSCDBPedestals.h:9
CSCDBPedestals::Item
Definition: CSCDBPedestals.h:14
CSCDBPedestals::pedestal
short int pedestal(int index) const
Definition: CSCDBPedestals.h:29
CSCDBPedestals::~CSCDBPedestals
~CSCDBPedestals()
Definition: CSCDBPedestals.h:12
CSCDBPedestals::Item::ped
short int ped
Definition: CSCDBPedestals.h:15
Serializable.h
CSCDBPedestals::FRMS
Definition: CSCDBPedestals.h:23
CSCDBPedestals::item
const Item & item(int index) const
Definition: CSCDBPedestals.h:28
CSCDBPedestals::CSCDBPedestals
CSCDBPedestals()
Definition: CSCDBPedestals.h:11
CSCDBPedestals::Item::rms
short int rms
Definition: CSCDBPedestals.h:16
CSCDBPedestals::factors
factors
Definition: CSCDBPedestals.h:23
CSCDBPedestals::pedestal_rms
short int pedestal_rms(int index) const
Definition: CSCDBPedestals.h:31
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
CSCDBPedestals::PedestalContainer
std::vector< Item > PedestalContainer
Definition: CSCDBPedestals.h:25
CSCDBPedestals::factor_rms
int factor_rms
Definition: CSCDBPedestals.h:21
CSCDBPedestals::scale_ped
int scale_ped() const
Definition: CSCDBPedestals.h:30