CMS 3D CMS Logo

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