CMS 3D CMS Logo

SiPixelDynamicInefficiency.h
Go to the documentation of this file.
1 #ifndef SiPixelDynamicInefficiency_h
2 #define SiPixelDynamicInefficiency_h
3 
5 
6 #include <vector>
7 #include <map>
8 #include <iostream>
9 #include <cstdint>
10 
12 public:
15 
16  inline void putPixelGeomFactors(std::map<unsigned int, double>& PixelGeomFactors) {
17  m_PixelGeomFactors = PixelGeomFactors;
18  }
19  inline const std::map<unsigned int, double>& getPixelGeomFactors() const { return m_PixelGeomFactors; }
20 
21  inline void putColGeomFactors(std::map<unsigned int, double>& ColGeomFactors) { m_ColGeomFactors = ColGeomFactors; }
22  inline const std::map<unsigned int, double>& getColGeomFactors() const { return m_ColGeomFactors; }
23 
24  inline void putChipGeomFactors(std::map<unsigned int, double>& ChipGeomFactors) {
25  m_ChipGeomFactors = ChipGeomFactors;
26  }
27  inline const std::map<unsigned int, double>& getChipGeomFactors() const { return m_ChipGeomFactors; }
28 
29  inline void putPUFactors(std::map<unsigned int, std::vector<double> >& PUFactors) { m_PUFactors = PUFactors; }
30  inline const std::map<unsigned int, std::vector<double> >& getPUFactors() const { return m_PUFactors; }
31 
32  inline void puttheInstLumiScaleFactor_(double& InstLumiScaleFactor) { theInstLumiScaleFactor_ = InstLumiScaleFactor; }
33  inline const double gettheInstLumiScaleFactor_() const { return theInstLumiScaleFactor_; }
34 
35  inline void putDetIdmasks(std::vector<uint32_t>& masks) { v_DetIdmasks = masks; }
36  inline const std::vector<uint32_t> getDetIdmasks() const { return v_DetIdmasks; }
37 
38  bool putPixelGeomFactor(const uint32_t&, double&);
39  double getPixelGeomFactor(const uint32_t&) const;
40 
41  bool putColGeomFactor(const uint32_t&, double&);
42  double getColGeomFactor(const uint32_t&) const;
43 
44  bool putChipGeomFactor(const uint32_t&, double&);
45  double getChipGeomFactor(const uint32_t&) const;
46 
47  bool putPUFactor(const uint32_t&, std::vector<double>&);
48  std::vector<double> getPUFactor(const uint32_t&) const;
49 
50  bool putDetIdmask(uint32_t&);
51  uint32_t getDetIdmask(unsigned int&) const;
52 
53  bool puttheInstLumiScaleFactor(double&);
54  double gettheInstLumiScaleFactor() const;
55 
56 private:
57  std::map<unsigned int, double> m_PixelGeomFactors;
58  std::map<unsigned int, double> m_ColGeomFactors;
59  std::map<unsigned int, double> m_ChipGeomFactors;
60  std::map<unsigned int, std::vector<double> > m_PUFactors;
61  std::vector<uint32_t> v_DetIdmasks;
63 
65 };
66 
67 #endif
SiPixelDynamicInefficiency::m_ChipGeomFactors
std::map< unsigned int, double > m_ChipGeomFactors
Definition: SiPixelDynamicInefficiency.h:59
SiPixelDynamicInefficiency::putPixelGeomFactor
bool putPixelGeomFactor(const uint32_t &, double &)
Definition: SiPixelDynamicInefficiency.cc:6
SiPixelDynamicInefficiency::getColGeomFactor
double getColGeomFactor(const uint32_t &) const
Definition: SiPixelDynamicInefficiency.cc:39
SiPixelDynamicInefficiency::m_ColGeomFactors
std::map< unsigned int, double > m_ColGeomFactors
Definition: SiPixelDynamicInefficiency.h:58
SiPixelDynamicInefficiency::puttheInstLumiScaleFactor_
void puttheInstLumiScaleFactor_(double &InstLumiScaleFactor)
Definition: SiPixelDynamicInefficiency.h:32
SiPixelDynamicInefficiency::putPixelGeomFactors
void putPixelGeomFactors(std::map< unsigned int, double > &PixelGeomFactors)
Definition: SiPixelDynamicInefficiency.h:16
SiPixelDynamicInefficiency::putDetIdmask
bool putDetIdmask(uint32_t &)
Definition: SiPixelDynamicInefficiency.cc:95
SiPixelDynamicInefficiency::getChipGeomFactor
double getChipGeomFactor(const uint32_t &) const
Definition: SiPixelDynamicInefficiency.cc:61
SiPixelDynamicInefficiency::putDetIdmasks
void putDetIdmasks(std::vector< uint32_t > &masks)
Definition: SiPixelDynamicInefficiency.h:35
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
SiPixelDynamicInefficiency::m_PUFactors
std::map< unsigned int, std::vector< double > > m_PUFactors
Definition: SiPixelDynamicInefficiency.h:60
SiPixelDynamicInefficiency::puttheInstLumiScaleFactor
bool puttheInstLumiScaleFactor(double &)
Definition: SiPixelDynamicInefficiency.cc:111
SiPixelDynamicInefficiency::~SiPixelDynamicInefficiency
~SiPixelDynamicInefficiency()
Definition: SiPixelDynamicInefficiency.h:14
SiPixelDynamicInefficiency
Definition: SiPixelDynamicInefficiency.h:11
SiPixelDynamicInefficiency::gettheInstLumiScaleFactor_
const double gettheInstLumiScaleFactor_() const
Definition: SiPixelDynamicInefficiency.h:33
SiPixelDynamicInefficiency::putColGeomFactor
bool putColGeomFactor(const uint32_t &, double &)
Definition: SiPixelDynamicInefficiency.cc:28
SiPixelDynamicInefficiency::m_PixelGeomFactors
std::map< unsigned int, double > m_PixelGeomFactors
Definition: SiPixelDynamicInefficiency.h:57
SiPixelDynamicInefficiency::gettheInstLumiScaleFactor
double gettheInstLumiScaleFactor() const
Definition: SiPixelDynamicInefficiency.cc:122
SiPixelDynamicInefficiency::getChipGeomFactors
const std::map< unsigned int, double > & getChipGeomFactors() const
Definition: SiPixelDynamicInefficiency.h:27
SiPixelDynamicInefficiency::SiPixelDynamicInefficiency
SiPixelDynamicInefficiency()
Definition: SiPixelDynamicInefficiency.cc:4
Serializable.h
SiPixelDynamicInefficiency::getPixelGeomFactor
double getPixelGeomFactor(const uint32_t &) const
Definition: SiPixelDynamicInefficiency.cc:17
SiPixelDynamicInefficiency::putChipGeomFactors
void putChipGeomFactors(std::map< unsigned int, double > &ChipGeomFactors)
Definition: SiPixelDynamicInefficiency.h:24
SiPixelDynamicInefficiency::v_DetIdmasks
std::vector< uint32_t > v_DetIdmasks
Definition: SiPixelDynamicInefficiency.h:61
SiPixelDynamicInefficiency::theInstLumiScaleFactor_
double theInstLumiScaleFactor_
Definition: SiPixelDynamicInefficiency.h:62
SiPixelDynamicInefficiency::getDetIdmasks
const std::vector< uint32_t > getDetIdmasks() const
Definition: SiPixelDynamicInefficiency.h:36
SiPixelDynamicInefficiency::putPUFactor
bool putPUFactor(const uint32_t &, std::vector< double > &)
Definition: SiPixelDynamicInefficiency.cc:72
SiPixelDynamicInefficiency::putChipGeomFactor
bool putChipGeomFactor(const uint32_t &, double &)
Definition: SiPixelDynamicInefficiency.cc:50
SiPixelDynamicInefficiency::getColGeomFactors
const std::map< unsigned int, double > & getColGeomFactors() const
Definition: SiPixelDynamicInefficiency.h:22
SiPixelDynamicInefficiency::getPUFactors
const std::map< unsigned int, std::vector< double > > & getPUFactors() const
Definition: SiPixelDynamicInefficiency.h:30
genParticles_cff.map
map
Definition: genParticles_cff.py:11
SiPixelDynamicInefficiency::getDetIdmask
uint32_t getDetIdmask(unsigned int &) const
Definition: SiPixelDynamicInefficiency.cc:102
SiPixelDynamicInefficiency::getPixelGeomFactors
const std::map< unsigned int, double > & getPixelGeomFactors() const
Definition: SiPixelDynamicInefficiency.h:19
SiPixelDynamicInefficiency::putPUFactors
void putPUFactors(std::map< unsigned int, std::vector< double > > &PUFactors)
Definition: SiPixelDynamicInefficiency.h:29
SiPixelDynamicInefficiency::getPUFactor
std::vector< double > getPUFactor(const uint32_t &) const
Definition: SiPixelDynamicInefficiency.cc:83
SiPixelDynamicInefficiency::putColGeomFactors
void putColGeomFactors(std::map< unsigned int, double > &ColGeomFactors)
Definition: SiPixelDynamicInefficiency.h:21