File indexing completed on 2024-04-06 12:01:59
0001 #ifndef CSCDBGasGainCorrection_h
0002 #define CSCDBGasGainCorrection_h
0003
0004 #include "CondFormats/Serialization/interface/Serializable.h"
0005
0006 #include <iosfwd>
0007 #include <vector>
0008
0009 class CSCDBGasGainCorrection {
0010 public:
0011 CSCDBGasGainCorrection() {}
0012 ~CSCDBGasGainCorrection() {}
0013
0014 struct Item {
0015 float gainCorr;
0016
0017 COND_SERIALIZABLE;
0018 };
0019
0020 typedef std::vector<Item> GasGainContainer;
0021 GasGainContainer gasGainCorr;
0022
0023 const Item& item(int index) const { return gasGainCorr[index]; }
0024 float value(int index) const { return gasGainCorr[index].gainCorr; }
0025
0026 COND_SERIALIZABLE;
0027 };
0028
0029 std::ostream& operator<<(std::ostream& os, const CSCDBGasGainCorrection& cscdb);
0030
0031 #endif