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
bool operator==(const CalibWidthSetObject &cso) const
void setCalibrationWidths(const DetId id, const CastorCalibrationWidths &ca)
const CastorCalibrationWidths & getCalibrationWidths(const DetId id) const
bool operator<(const CalibWidthSetObject &cso) const
std::vector< CalibWidthSetObject > mItems
Definition: DetId.h:17