CMS 3D CMS Logo

CTPPSPixelGainCalibrations.h
Go to the documentation of this file.
1 #ifndef CondFormats_PPSObjects_CTPPSPixelGainCalibrations_h
2 #define CondFormats_PPSObjects_CTPPSPixelGainCalibrations_h
3 
5 #include <map>
6 #include <vector>
7 
9 public:
10  typedef std::map<uint32_t, CTPPSPixelGainCalibration> CalibMap;
11 
14 
15  void setGainCalibration(const uint32_t& DetId, const CTPPSPixelGainCalibration& PixGains);
16  void setGainCalibration(const uint32_t& DetId, const std::vector<float>& peds, const std::vector<float>& gains);
17  void setGainCalibrations(const CalibMap& PixGainsCalibs);
18  void setGainCalibrations(const std::vector<uint32_t>& detidlist,
19  const std::vector<std::vector<float>>& peds,
20  const std::vector<std::vector<float>>& gains);
21 
22  const CalibMap& getCalibMap() const { return m_calibrations; }
23 
24  const CTPPSPixelGainCalibration& getGainCalibration(const uint32_t& detid) const;
25 
26  int size() const { return m_calibrations.size(); }
27 
28 private:
30 
32 };
33 
34 #endif
void setGainCalibrations(const CalibMap &PixGainsCalibs)
void setGainCalibration(const uint32_t &DetId, const CTPPSPixelGainCalibration &PixGains)
std::map< uint32_t, CTPPSPixelGainCalibration > CalibMap
const CalibMap & getCalibMap() const
constexpr float gains[NGAINS]
Definition: EcalConstants.h:11
Definition: DetId.h:17
const CTPPSPixelGainCalibration & getGainCalibration(const uint32_t &detid) const
#define COND_SERIALIZABLE
Definition: Serializable.h:39