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
CTPPSPixelGainCalibrations::size
int size() const
Definition: CTPPSPixelGainCalibrations.h:26
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
CTPPSPixelGainCalibrations::m_calibrations
CalibMap m_calibrations
Definition: CTPPSPixelGainCalibrations.h:29
CTPPSPixelGainCalibrations::~CTPPSPixelGainCalibrations
virtual ~CTPPSPixelGainCalibrations()
Definition: CTPPSPixelGainCalibrations.h:13
CTPPSPixelGainCalibration
Definition: CTPPSPixelGainCalibration.h:27
DetId
Definition: DetId.h:17
CTPPSPixelGainCalibrations::setGainCalibrations
void setGainCalibrations(const CalibMap &PixGainsCalibs)
Definition: CTPPSPixelGainCalibrations.cc:37
CTPPSPixelGainCalibrations::getGainCalibration
const CTPPSPixelGainCalibration & getGainCalibration(const uint32_t &detid) const
Definition: CTPPSPixelGainCalibrations.cc:52
CTPPSPixelGainCalibrations::setGainCalibration
void setGainCalibration(const uint32_t &DetId, const CTPPSPixelGainCalibration &PixGains)
Definition: CTPPSPixelGainCalibrations.cc:5
CTPPSPixelGainCalibrations
Definition: CTPPSPixelGainCalibrations.h:8
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
CTPPSPixelGainCalibrations::CalibMap
std::map< uint32_t, CTPPSPixelGainCalibration > CalibMap
Definition: CTPPSPixelGainCalibrations.h:10
CTPPSPixelGainCalibration.h
CTPPSPixelGainCalibrations::getCalibMap
const CalibMap & getCalibMap() const
Definition: CTPPSPixelGainCalibrations.h:22
CTPPSPixelGainCalibrations::CTPPSPixelGainCalibrations
CTPPSPixelGainCalibrations()
Definition: CTPPSPixelGainCalibrations.h:12