test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GlobalScales.h
Go to the documentation of this file.
1 #ifndef L1TGlobalScales_h
2 #define L1TGlobalScales_h
3 
15 // system include files
16 #include <vector>
17 #include <string>
18 #include <map>
19 #include <iosfwd>
20 
21 // class declaration
22 
23 namespace l1t {
24 
26 {
27 
28 public:
29 
30  // constructors
31  GlobalScales();
32 
33  // destructor
34  virtual ~GlobalScales();
35 
36 public:
37 
40  {
41  double etMin;
42  double etMax;
43  double etStep;
44  std::vector<std::pair<double,double>> etBins;
45 
46  double phiMin;
47  double phiMax;
48  double phiStep;
49  std::vector<std::pair<double,double>> phiBins;
50 
51  double etaMin;
52  double etaMax;
53  double etaStep;
54  std::vector<std::pair<double,double>> etaBins;
55 
56  };
57 
58  inline void setEGScales(ScaleParameters& scales) { m_egScales = scales; }
59  inline void setTauScales(ScaleParameters& scales) { m_tauScales = scales; }
60  inline void setMuonScales(ScaleParameters& scales) { m_muScales = scales; }
61 
62  inline void setJetScales(ScaleParameters& scales) { m_jetScales = scales; }
63 
64  inline void setETTScales(ScaleParameters& scales) { m_ettScales = scales; }
65  inline void setHTTScales(ScaleParameters& scales) { m_httScales = scales; }
66  inline void setETMScales(ScaleParameters& scales) { m_etmScales = scales; }
67  inline void setHTMScales(ScaleParameters& scales) { m_htmScales = scales; }
68 
69  virtual void setLUT_CalMuEta(std::string lutName, std::vector<long long> lut);
70  virtual void setLUT_CalMuPhi(std::string lutName, std::vector<long long> lut);
71  virtual void setLUT_DeltaEta(std::string lutName, std::vector<long long> lut, unsigned int precision);
72  virtual void setLUT_DeltaPhi(std::string lutName, std::vector<long long> lut, unsigned int precision);
73  virtual void setLUT_Pt(std::string lutName, std::vector<long long> lut, unsigned int precision);
74  virtual void setLUT_Cosh(std::string lutName, std::vector<long long> lut, unsigned int precision);
75  virtual void setLUT_Cos(std::string lutName, std::vector<long long> lut, unsigned int precision);
76 
78  virtual std::string getScalesName() const;
79 
80  inline ScaleParameters getMUScales() const { return m_muScales; }
81  inline ScaleParameters getEGScales() const { return m_egScales; }
82  inline ScaleParameters getTAUScales() const { return m_tauScales; }
83  inline ScaleParameters getJETScales() const { return m_jetScales; }
84  inline ScaleParameters getETTScales() const { return m_ettScales; }
85  inline ScaleParameters getETMScales() const { return m_etmScales; }
86  inline ScaleParameters getHTTScales() const { return m_httScales; }
87  inline ScaleParameters getHTMScales() const { return m_htmScales; }
88 
89 
90  long long getLUT_CalMuEta(std::string lutName, int element) const;
91  long long getLUT_CalMuPhi(std::string lutName, int element) const;
92  long long getLUT_DeltaEta(std::string lutName, int element) const;
93  long long getLUT_DeltaPhi(std::string lutName, int element) const;
94  long long getLUT_Pt(std::string lutName, int element) const;
95  long long getLUT_Cosh(std::string lutName, int element) const;
96  long long getLUT_Cos(std::string lutName, int element) const;
97 
98  unsigned int getPrec_DeltaEta(std::string lutName) const;
99  unsigned int getPrec_DeltaPhi(std::string lutName) const;
100  unsigned int getPrec_Pt(std::string lutName) const;
101  unsigned int getPrec_Cosh(std::string lutName) const;
102  unsigned int getPrec_Cos(std::string lutName) const;
103 
104 
105  virtual void dumpAllLUTs(std::ostream& myCout) const;
106  virtual void dumpLUT(std::ostream& myCout, int LUTtype, std::string name) const;
107  virtual void print(std::ostream& myCout) const;
108  virtual void printScale(ScaleParameters scale, std::ostream& myCout) const;
109 
110 private:
111 
112 
113 private:
114 
115 
117 
121 
123 
128 
129  //LUTs
130  std::map<std::string, std::vector<long long> > m_lut_CalMuEta;
131  std::map<std::string, std::vector<long long> > m_lut_CalMuPhi;
132  std::map<std::string, std::vector<long long> > m_lut_DeltaEta;
133  std::map<std::string, std::vector<long long> > m_lut_DeltaPhi;
134  std::map<std::string, std::vector<long long> > m_lut_Pt;
135  std::map<std::string, std::vector<long long> > m_lut_Cosh;
136  std::map<std::string, std::vector<long long> > m_lut_Cos;
137 
138  //LUTs Precision
139  std::map<std::string, unsigned int > m_Prec_DeltaEta;
140  std::map<std::string, unsigned int > m_Prec_DeltaPhi;
141  std::map<std::string, unsigned int > m_Prec_Pt;
142  std::map<std::string, unsigned int > m_Prec_Cosh;
143  std::map<std::string, unsigned int > m_Prec_Cos;
144 
145 };
146 
147 }
148 #endif
ScaleParameters getMUScales() const
Definition: GlobalScales.h:80
std::map< std::string, unsigned int > m_Prec_Pt
Definition: GlobalScales.h:141
virtual void setLUT_DeltaEta(std::string lutName, std::vector< long long > lut, unsigned int precision)
Definition: GlobalScales.cc:71
void setETMScales(ScaleParameters &scales)
Definition: GlobalScales.h:66
void setJetScales(ScaleParameters &scales)
Definition: GlobalScales.h:62
ScaleParameters m_ettScales
Definition: GlobalScales.h:124
ScaleParameters getETMScales() const
Definition: GlobalScales.h:85
std::map< std::string, std::vector< long long > > m_lut_DeltaPhi
Definition: GlobalScales.h:133
ScaleParameters m_tauScales
Definition: GlobalScales.h:119
ScaleParameters m_jetScales
Definition: GlobalScales.h:122
std::map< std::string, unsigned int > m_Prec_Cosh
Definition: GlobalScales.h:142
std::vector< std::pair< double, double > > etaBins
Definition: GlobalScales.h:54
virtual ~GlobalScales()
Definition: GlobalScales.cc:32
std::map< std::string, std::vector< long long > > m_lut_CalMuPhi
Definition: GlobalScales.h:131
unsigned int getPrec_Pt(std::string lutName) const
std::vector< std::pair< double, double > > phiBins
Definition: GlobalScales.h:49
virtual void setLUT_CalMuPhi(std::string lutName, std::vector< long long > lut)
Definition: GlobalScales.cc:55
std::string m_ScaleSetName
Definition: GlobalScales.h:116
long long getLUT_Cos(std::string lutName, int element) const
ScaleParameters getJETScales() const
Definition: GlobalScales.h:83
ScaleParameters getEGScales() const
Definition: GlobalScales.h:81
ScaleParameters getHTMScales() const
Definition: GlobalScales.h:87
unsigned int getPrec_Cosh(std::string lutName) const
long long getLUT_DeltaEta(std::string lutName, int element) const
std::map< std::string, unsigned int > m_Prec_Cos
Definition: GlobalScales.h:143
ScaleParameters m_etmScales
Definition: GlobalScales.h:126
virtual void setLUT_Cosh(std::string lutName, std::vector< long long > lut, unsigned int precision)
ScaleParameters m_egScales
Definition: GlobalScales.h:118
std::map< std::string, unsigned int > m_Prec_DeltaEta
Definition: GlobalScales.h:139
virtual void dumpAllLUTs(std::ostream &myCout) const
ScaleParameters getTAUScales() const
Definition: GlobalScales.h:82
long long getLUT_Pt(std::string lutName, int element) const
ScaleParameters m_htmScales
Definition: GlobalScales.h:127
unsigned int getPrec_DeltaEta(std::string lutName) const
long long getLUT_Cosh(std::string lutName, int element) const
void setScalesName(std::string name)
Definition: GlobalScales.h:77
long long getLUT_CalMuEta(std::string lutName, int element) const
void setEGScales(ScaleParameters &scales)
Definition: GlobalScales.h:58
void setTauScales(ScaleParameters &scales)
Definition: GlobalScales.h:59
virtual void print(std::ostream &myCout) const
std::map< std::string, std::vector< long long > > m_lut_Pt
Definition: GlobalScales.h:134
unsigned int getPrec_DeltaPhi(std::string lutName) const
virtual void setLUT_Cos(std::string lutName, std::vector< long long > lut, unsigned int precision)
tuple lut
Definition: lumiPlot.py:244
ScaleParameters getETTScales() const
Definition: GlobalScales.h:84
virtual void setLUT_CalMuEta(std::string lutName, std::vector< long long > lut)
Definition: GlobalScales.cc:39
ScaleParameters m_httScales
Definition: GlobalScales.h:125
virtual void dumpLUT(std::ostream &myCout, int LUTtype, std::string name) const
std::map< std::string, unsigned int > m_Prec_DeltaPhi
Definition: GlobalScales.h:140
std::vector< std::pair< double, double > > etBins
Definition: GlobalScales.h:44
ScaleParameters getHTTScales() const
Definition: GlobalScales.h:86
void setMuonScales(ScaleParameters &scales)
Definition: GlobalScales.h:60
long long getLUT_DeltaPhi(std::string lutName, int element) const
void setHTTScales(ScaleParameters &scales)
Definition: GlobalScales.h:65
std::map< std::string, std::vector< long long > > m_lut_DeltaEta
Definition: GlobalScales.h:132
std::map< std::string, std::vector< long long > > m_lut_CalMuEta
Definition: GlobalScales.h:130
virtual void setLUT_DeltaPhi(std::string lutName, std::vector< long long > lut, unsigned int precision)
Definition: GlobalScales.cc:87
void setHTMScales(ScaleParameters &scales)
Definition: GlobalScales.h:67
virtual void setLUT_Pt(std::string lutName, std::vector< long long > lut, unsigned int precision)
typedef for a single object template
Definition: GlobalScales.h:39
std::map< std::string, std::vector< long long > > m_lut_Cosh
Definition: GlobalScales.h:135
void setETTScales(ScaleParameters &scales)
Definition: GlobalScales.h:64
long long getLUT_CalMuPhi(std::string lutName, int element) const
std::map< std::string, std::vector< long long > > m_lut_Cos
Definition: GlobalScales.h:136
virtual std::string getScalesName() const
Definition: GlobalScales.cc:36
unsigned int getPrec_Cos(std::string lutName) const
virtual void printScale(ScaleParameters scale, std::ostream &myCout) const
ScaleParameters m_muScales
Definition: GlobalScales.h:120