CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
15 public:
17  const HcalCalibrationWidths& getCalibrationWidths(const DetId id) const;
18  void setCalibrationWidths(const DetId id, const HcalCalibrationWidths& ca);
19  void sort();
20  void clear();
21 private:
23  CalibWidthSetObject(const DetId& aid) {
24  id = hcalTransformedId(aid);
25  }
28  bool operator<(const CalibWidthSetObject& cso) const { return id < cso.id; }
29  bool operator==(const CalibWidthSetObject& cso) const { return id == cso.id; }
30  };
33  std::vector<CalibWidthSetObject> mItems;
34  bool sorted_;
35 };
36 
37 #endif
DetId hcalTransformedId(const DetId &aid)
bool operator<(const CalibWidthSetObject &cso) const
void setCalibrationWidths(const DetId id, const HcalCalibrationWidths &ca)
std::vector< CalibWidthSetObject > mItems
const HcalCalibrationWidths & getCalibrationWidths(const DetId id) const
Definition: DetId.h:18
bool operator==(const CalibWidthSetObject &cso) const