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  CTPPSPixelGainCalibration getGainCalibration(const uint32_t & detid) const;
24  CTPPSPixelGainCalibration & getGainCalibration(const uint32_t & detid);
25 
26 
27 
28  int size() const {return m_calibrations.size();}
29 
30  private:
31  CalibMap m_calibrations;
32 
34 };
35 
36 #endif
const CalibMap & getCalibMap() 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
CTPPSPixelGainCalibration getGainCalibration(const uint32_t &detid) const
#define COND_SERIALIZABLE
Definition: Serializable.h:38