CMS 3D CMS Logo

CastorCalibrationWidthsSet.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 
14 public:
16  const CastorCalibrationWidths& getCalibrationWidths(const DetId id) const;
17  void setCalibrationWidths(const DetId id, const CastorCalibrationWidths& ca);
18  void sort();
19  void clear();
20 
21 private:
23  CalibWidthSetObject(const DetId& aid) : id(aid) {}
26  bool operator<(const CalibWidthSetObject& cso) const { return id < cso.id; }
27  bool operator==(const CalibWidthSetObject& cso) const { return id == cso.id; }
28  };
31  std::vector<CalibWidthSetObject> mItems;
32  bool sorted_;
33 };
34 
35 #endif
void setCalibrationWidths(const DetId id, const CastorCalibrationWidths &ca)
bool operator<(const CalibWidthSetObject &cso) const
bool operator==(const CalibWidthSetObject &cso) const
std::vector< CalibWidthSetObject > mItems
Definition: DetId.h:17
const CastorCalibrationWidths & getCalibrationWidths(const DetId id) const