CMS 3D CMS Logo

CastorCalibrationsSet.h
Go to the documentation of this file.
1 #ifndef CALIBFORMATS_CASTOROBJECTS_CASTORCALIBRATIONSSET_H
2 #define CALIBFORMATS_CASTOROBJECTS_CASTORCALIBRATIONSSET_H 1
3 
6 #include <vector>
7 
9 public:
11  const CastorCalibrations& getCalibrations(const DetId id) const;
12  void setCalibrations(const DetId id, const CastorCalibrations& ca);
13  void sort();
14  void clear();
15 private:
16  struct CalibSetObject {
17  CalibSetObject(const DetId& aid) : id(aid) { }
20  bool operator<(const CalibSetObject& cso) const { return id < cso.id; }
21  bool operator==(const CalibSetObject& cso) const { return id == cso.id; }
22  };
25  std::vector<CalibSetObject> mItems;
26  bool sorted_;
27 };
28 
29 #endif
const CastorCalibrations & getCalibrations(const DetId id) const
CastorCalibrations dummy
void setCalibrations(const DetId id, const CastorCalibrations &ca)
std::vector< CalibSetObject > mItems
Definition: DetId.h:18
bool operator==(const CalibSetObject &cso) const
bool operator<(const CalibSetObject &cso) const