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 
6 #include <vector>
7 
13 public:
15  const HcalCalibrationWidths& getCalibrationWidths(const DetId id) const;
16  void setCalibrationWidths(const DetId id, const HcalCalibrationWidths& ca);
17  void sort();
18  void clear();
19 private:
21  CalibWidthSetObject(const DetId& aid) : id(aid) { }
24  bool operator<(const CalibWidthSetObject& cso) const { return id < cso.id; }
25  bool operator==(const CalibWidthSetObject& cso) const { return id == cso.id; }
26  };
29  std::vector<CalibWidthSetObject> mItems;
30  bool sorted_;
31 };
32 
33 #endif
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