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 
16 private:
17  struct CalibSetObject {
18  CalibSetObject(const DetId& aid) : id(aid) {}
21  bool operator<(const CalibSetObject& cso) const { return id < cso.id; }
22  bool operator==(const CalibSetObject& cso) const { return id == cso.id; }
23  };
26  std::vector<CalibSetObject> mItems;
27  bool sorted_;
28 };
29 
30 #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