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 <stdint.h>
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 private:
24  struct CalibSetObject {
25  CalibSetObject(const DetId& aid) {
26  id = hcalTransformedId(aid);
27  }
30  bool operator<(const CalibSetObject& cso) const { return id < cso.id; }
31  bool operator==(const CalibSetObject& cso) const { return id == cso.id; }
32  };
35  std::unordered_map<uint32_t,CalibSetObject> mItems;
36 };
37 
38 #endif
std::unordered_map< uint32_t, CalibSetObject > mItems
std::vector< DetId > getAllChannels() const
DetId hcalTransformedId(const DetId &aid)
Definition: DetId.h:18
const HcalCalibrations & getCalibrations(const DetId id) const
void setCalibrations(const DetId id, const HcalCalibrations &ca)
HcalCalibrations dummy
bool operator<(const CalibSetObject &cso) const
bool operator==(const CalibSetObject &cso) const