File indexing completed on 2023-03-17 10:46:59
0001 #ifndef HcalRawGains_h
0002 #define HcalRawGains_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #include <vector>
0014 #include <algorithm>
0015
0016 #include "CondFormats/HcalObjects/interface/HcalRawGain.h"
0017 #include "DataFormats/DetId/interface/DetId.h"
0018
0019
0020 class HcalRawGains {
0021 public:
0022 HcalRawGains();
0023 ~HcalRawGains();
0024
0025 const HcalRawGain* getValues(DetId fId) const;
0026
0027 std::vector<DetId> getAllChannels() const;
0028
0029 bool sorted() const { return mSorted; }
0030
0031 HcalRawGain* addItem(DetId fId);
0032
0033 void addValues(DetId fId, const HcalRawGain& fValues);
0034
0035 void sort();
0036
0037 typedef HcalRawGain Item;
0038 typedef std::vector<Item> Container;
0039
0040 private:
0041 Container mItems;
0042 bool mSorted;
0043 };
0044
0045 #endif