CMS 3D CMS Logo

HcalCalibrationWidthsSet.h
Go to the documentation of this file.
1 #ifndef CALIBFORMATS_HCALOBJECTS_HCALCALIBRATIONWIDTHSSET_H
2 #define CALIBFORMATS_HCALOBJECTS_HCALCALIBRATIONWIDTHSSET_H 1
3 
8 #include <vector>
9 #include <unordered_map>
10 #include <cstdint>
11 
17 public:
19  const HcalCalibrationWidths& getCalibrationWidths(const DetId id) const;
20  void setCalibrationWidths(const DetId id, const HcalCalibrationWidths& ca);
21  void clear();
22  std::vector<DetId> getAllChannels() const;
23 
24 private:
26  CalibWidthSetObject(const DetId& aid) { id = hcalTransformedId(aid); }
29  bool operator<(const CalibWidthSetObject& cso) const { return id < cso.id; }
30  bool operator==(const CalibWidthSetObject& cso) const { return id == cso.id; }
31  };
34  std::unordered_map<uint32_t, CalibWidthSetObject> mItems;
35 };
36 
37 #endif
HcalCalibrationWidthsSet::CalibWidthSetObject::calib
HcalCalibrationWidths calib
Definition: HcalCalibrationWidthsSet.h:28
HcalCalibrationWidthsSet::CalibWidthSetObject::id
DetId id
Definition: HcalCalibrationWidthsSet.h:27
HcalCalibrationWidthsSet::Item
CalibWidthSetObject Item
Definition: HcalCalibrationWidthsSet.h:32
HcalCalibrationWidthsSet::getCalibrationWidths
const HcalCalibrationWidths & getCalibrationWidths(const DetId id) const
Definition: HcalCalibrationWidthsSet.cc:10
HcalZDCDetId.h
HcalCalibrationWidthsSet::getAllChannels
std::vector< DetId > getAllChannels() const
Definition: HcalCalibrationWidthsSet.cc:32
DetId
Definition: DetId.h:17
HcalCalibrationWidthsSet::HcalCalibrationWidthsSet
HcalCalibrationWidthsSet()
Definition: HcalCalibrationWidthsSet.cc:8
hcalTransformedId
DetId hcalTransformedId(const DetId &aid)
Definition: HcalDetIdRelationship.cc:11
HcalCalibrationWidthsSet::CalibWidthSetObject::CalibWidthSetObject
CalibWidthSetObject(const DetId &aid)
Definition: HcalCalibrationWidthsSet.h:26
HcalCalibrationWidthsSet::CalibWidthSetObject::operator==
bool operator==(const CalibWidthSetObject &cso) const
Definition: HcalCalibrationWidthsSet.h:30
HcalCalibrationWidths.h
HcalDetId.h
HcalCalibrationWidthsSet::mItems
std::unordered_map< uint32_t, CalibWidthSetObject > mItems
Definition: HcalCalibrationWidthsSet.h:34
HcalCalibrationWidthsSet::CalibWidthSetObject::operator<
bool operator<(const CalibWidthSetObject &cso) const
Definition: HcalCalibrationWidthsSet.h:29
HcalDetIdRelationship.h
HcalCalibrationWidthsSet::CalibWidthSetObject
Definition: HcalCalibrationWidthsSet.h:25
HcalCalibrationWidths
Definition: HcalCalibrationWidths.h:9
HcalCalibrationWidthsSet
Definition: HcalCalibrationWidthsSet.h:16
HcalCalibrationWidthsSet::clear
void clear()
Definition: HcalCalibrationWidthsSet.cc:30
HcalCalibrationWidthsSet::setCalibrationWidths
void setCalibrationWidths(const DetId id, const HcalCalibrationWidths &ca)
Definition: HcalCalibrationWidthsSet.cc:19
HcalCalibrationWidthsSet::dummy
HcalCalibrationWidths dummy
Definition: HcalCalibrationWidthsSet.h:33