Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-09-07 04:35:40

0001 #ifndef SiPixelDynamicInefficiency_h
0002 #define SiPixelDynamicInefficiency_h
0003 
0004 #include "CondFormats/Serialization/interface/Serializable.h"
0005 
0006 #include <vector>
0007 #include <map>
0008 #include <iostream>
0009 #include <cstdint>
0010 
0011 class SiPixelDynamicInefficiency {
0012 public:
0013   SiPixelDynamicInefficiency();
0014   ~SiPixelDynamicInefficiency() {}
0015 
0016   inline void putPixelGeomFactors(std::map<unsigned int, double>& PixelGeomFactors) {
0017     m_PixelGeomFactors = PixelGeomFactors;
0018   }
0019   inline const std::map<unsigned int, double>& getPixelGeomFactors() const { return m_PixelGeomFactors; }
0020 
0021   inline void putColGeomFactors(std::map<unsigned int, double>& ColGeomFactors) { m_ColGeomFactors = ColGeomFactors; }
0022   inline const std::map<unsigned int, double>& getColGeomFactors() const { return m_ColGeomFactors; }
0023 
0024   inline void putChipGeomFactors(std::map<unsigned int, double>& ChipGeomFactors) {
0025     m_ChipGeomFactors = ChipGeomFactors;
0026   }
0027   inline const std::map<unsigned int, double>& getChipGeomFactors() const { return m_ChipGeomFactors; }
0028 
0029   inline void putPUFactors(std::map<unsigned int, std::vector<double> >& PUFactors) { m_PUFactors = PUFactors; }
0030   inline const std::map<unsigned int, std::vector<double> >& getPUFactors() const { return m_PUFactors; }
0031 
0032   inline void puttheInstLumiScaleFactor_(double& InstLumiScaleFactor) { theInstLumiScaleFactor_ = InstLumiScaleFactor; }
0033   inline const double gettheInstLumiScaleFactor_() const { return theInstLumiScaleFactor_; }
0034 
0035   inline void putDetIdmasks(std::vector<uint32_t>& masks) { v_DetIdmasks = masks; }
0036   inline const std::vector<uint32_t> getDetIdmasks() const { return v_DetIdmasks; }
0037 
0038   bool putPixelGeomFactor(const uint32_t&, double&);
0039   double getPixelGeomFactor(const uint32_t&) const;
0040 
0041   bool putColGeomFactor(const uint32_t&, double&);
0042   double getColGeomFactor(const uint32_t&) const;
0043 
0044   bool putChipGeomFactor(const uint32_t&, double&);
0045   double getChipGeomFactor(const uint32_t&) const;
0046 
0047   bool putPUFactor(const uint32_t&, std::vector<double>&);
0048   std::vector<double> getPUFactor(const uint32_t&) const;
0049 
0050   bool putDetIdmask(uint32_t&);
0051   uint32_t getDetIdmask(unsigned int&) const;
0052 
0053   bool puttheInstLumiScaleFactor(double&);
0054   double gettheInstLumiScaleFactor() const;
0055 
0056 private:
0057   std::map<unsigned int, double> m_PixelGeomFactors;
0058   std::map<unsigned int, double> m_ColGeomFactors;
0059   std::map<unsigned int, double> m_ChipGeomFactors;
0060   std::map<unsigned int, std::vector<double> > m_PUFactors;
0061   std::vector<uint32_t> v_DetIdmasks;
0062   double theInstLumiScaleFactor_;
0063 
0064   COND_SERIALIZABLE;
0065 };
0066 
0067 #endif