CMS 3D CMS Logo

HcalCalibrationWidthsSet.h
Go to the documentation of this file.
1 #ifndef CALIBFORMATS_HCALOBJECTS_HCALCALIBRATIONWIDTHSSET_H
2 #define CALIBFORMATS_HCALOBJECTS_HCALCALIBRATIONWIDTHSSET_H 1
3 
8 #include <vector>
9 #include <unordered_map>
10 #include <cstdint>
11 
17 public:
19  const HcalCalibrationWidths& getCalibrationWidths(const DetId id) const;
20  void setCalibrationWidths(const DetId id, const HcalCalibrationWidths& ca);
21  void clear();
22  std::vector<DetId> getAllChannels() const;
23 private:
25  CalibWidthSetObject(const DetId& aid) {
26  id = hcalTransformedId(aid);
27  }
30  bool operator<(const CalibWidthSetObject& cso) const { return id < cso.id; }
31  bool operator==(const CalibWidthSetObject& cso) const { return id == cso.id; }
32  };
35  std::unordered_map<uint32_t,CalibWidthSetObject> mItems;
36 };
37 
38 #endif
DetId hcalTransformedId(const DetId &aid)
bool operator<(const CalibWidthSetObject &cso) const
std::vector< DetId > getAllChannels() const
std::unordered_map< uint32_t, CalibWidthSetObject > mItems
void setCalibrationWidths(const DetId id, const HcalCalibrationWidths &ca)
const HcalCalibrationWidths & getCalibrationWidths(const DetId id) const
Definition: DetId.h:18
bool operator==(const CalibWidthSetObject &cso) const