CMS 3D CMS Logo

HcalCalibrationsSet.h
Go to the documentation of this file.
1 #ifndef CALIBFORMATS_HCALOBJECTS_HCALCALIBRATIONSSET_H
2 #define CALIBFORMATS_HCALOBJECTS_HCALCALIBRATIONSSET_H 1
3 
8 #include <vector>
9 #include <unordered_map>
10 #include <cstdint>
11 
17 public:
19  const HcalCalibrations& getCalibrations(const DetId id) const;
20  void setCalibrations(const DetId id, const HcalCalibrations& ca);
21  void clear();
22  std::vector<DetId> getAllChannels() const;
23 
24 private:
25  struct CalibSetObject {
26  CalibSetObject(const DetId& aid) { id = hcalTransformedId(aid); }
29  bool operator<(const CalibSetObject& cso) const { return id < cso.id; }
30  bool operator==(const CalibSetObject& cso) const { return id == cso.id; }
31  };
34  std::unordered_map<uint32_t, CalibSetObject> mItems;
35 };
36 
37 #endif
DetId hcalTransformedId(const DetId &aid)
const HcalCalibrations & getCalibrations(const DetId id) const
std::unordered_map< uint32_t, CalibSetObject > mItems
bool operator<(const CalibSetObject &cso) const
Definition: DetId.h:17
void setCalibrations(const DetId id, const HcalCalibrations &ca)
HcalCalibrations dummy
std::vector< DetId > getAllChannels() const
bool operator==(const CalibSetObject &cso) const