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
bool operator<(const CalibWidthSetObject &cso) const
DetId hcalTransformedId(const DetId &aid)
bool operator==(const CalibWidthSetObject &cso) const
void setCalibrationWidths(const DetId id, const HcalCalibrationWidths &ca)
Definition: DetId.h:17
const HcalCalibrationWidths & getCalibrationWidths(const DetId id) const
std::vector< DetId > getAllChannels() const
std::unordered_map< uint32_t, CalibWidthSetObject > mItems