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 
24 private:
26  CalibWidthSetObject(const DetId& aid) { id = hcalTransformedId(aid); }
29  bool operator<(const CalibWidthSetObject& cso) const { return id < cso.id; }
30  bool operator==(const CalibWidthSetObject& cso) const { return id == cso.id; }
31  };
34  std::unordered_map<uint32_t, CalibWidthSetObject> mItems;
35 };
36 
37 #endif
DetId hcalTransformedId(const DetId &aid)
bool operator<(const CalibWidthSetObject &cso) const
std::vector< DetId > getAllChannels() const
void setCalibrationWidths(const DetId id, const HcalCalibrationWidths &ca)
const HcalCalibrationWidths & getCalibrationWidths(const DetId id) const
Definition: DetId.h:17
std::unordered_map< uint32_t, CalibWidthSetObject > mItems
bool operator==(const CalibWidthSetObject &cso) const