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
CastorCalibrationWidthsSet::setCalibrationWidths
void setCalibrationWidths(const DetId id, const CastorCalibrationWidths &ca)
Definition: CastorCalibrationWidthsSet.cc:23
CastorCalibrationWidthsSet::CalibWidthSetObject::operator<
bool operator<(const CalibWidthSetObject &cso) const
Definition: CastorCalibrationWidthsSet.h:26
CastorCalibrationWidthsSet::CalibWidthSetObject
Definition: CastorCalibrationWidthsSet.h:22
CastorCalibrationWidthsSet::CalibWidthSetObject::operator==
bool operator==(const CalibWidthSetObject &cso) const
Definition: CastorCalibrationWidthsSet.h:27
CastorCalibrationWidthsSet::CalibWidthSetObject::calib
CastorCalibrationWidths calib
Definition: CastorCalibrationWidthsSet.h:25
DetId
Definition: DetId.h:17
CastorCalibrationWidthsSet::CalibWidthSetObject::id
DetId id
Definition: CastorCalibrationWidthsSet.h:24
CastorCalibrationWidthsSet::sorted_
bool sorted_
Definition: CastorCalibrationWidthsSet.h:32
CastorCalibrationWidthsSet::CalibWidthSetObject::CalibWidthSetObject
CalibWidthSetObject(const DetId &aid)
Definition: CastorCalibrationWidthsSet.h:23
CastorCalibrationWidthsSet::Item
CalibWidthSetObject Item
Definition: CastorCalibrationWidthsSet.h:29
CastorCalibrationWidthsSet::clear
void clear()
Definition: CastorCalibrationWidthsSet.cc:39
CastorCalibrationWidthsSet::sort
void sort()
Definition: CastorCalibrationWidthsSet.cc:33
CastorCalibrationWidthsSet::mItems
std::vector< CalibWidthSetObject > mItems
Definition: CastorCalibrationWidthsSet.h:31
CastorCalibrationWidths.h
CastorCalibrationWidthsSet
Definition: CastorCalibrationWidthsSet.h:13
HcalDetId.h
CastorCalibrationWidthsSet::CastorCalibrationWidthsSet
CastorCalibrationWidthsSet()
Definition: CastorCalibrationWidthsSet.cc:7
CastorCalibrationWidthsSet::getCalibrationWidths
const CastorCalibrationWidths & getCalibrationWidths(const DetId id) const
Definition: CastorCalibrationWidthsSet.cc:9
CastorCalibrationWidths
Definition: CastorCalibrationWidths.h:9
CastorCalibrationWidthsSet::dummy
CastorCalibrationWidths dummy
Definition: CastorCalibrationWidthsSet.h:30