00001 #ifndef CSCDBPedestals_h 00002 #define CSCDBPedestals_h 00003 00004 #include <iosfwd> 00005 #include <vector> 00006 00007 class CSCDBPedestals{ 00008 public: 00009 CSCDBPedestals(){} 00010 ~CSCDBPedestals(){} 00011 00012 struct Item{ 00013 short int ped; 00014 short int rms; 00015 }; 00016 int factor_ped; 00017 int factor_rms; 00018 00019 enum factors{FPED=10, FRMS=1000}; 00020 00021 typedef std::vector<Item> PedestalContainer; 00022 PedestalContainer pedestals; 00023 00024 const Item & item(int index) const { return pedestals[index]; } 00025 short int pedestal( int index ) const { return pedestals[index].ped; } 00026 int scale_ped() const { return factor_ped; } 00027 short int pedestal_rms( int index ) const { return pedestals[index].rms; } 00028 int scale_rms() const { return factor_rms; } 00029 }; 00030 00031 std::ostream & operator<<(std::ostream & os, const CSCDBPedestals & cscdb); 00032 00033 #endif