1 |
amagnan |
1.1 |
#ifndef HbbAnalysis_GenInfo_hh
|
2 |
|
|
#define HbbAnalysis_GenInfo_hh
|
3 |
|
|
#include <vector>
|
4 |
|
|
#include <string>
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
namespace HbbAnalysis {
|
8 |
|
|
|
9 |
|
|
class GenInfo {
|
10 |
|
|
|
11 |
|
|
public:
|
12 |
|
|
|
13 |
|
|
GenInfo():
|
14 |
|
|
pid_(0),
|
15 |
|
|
ptHat_(0),
|
16 |
|
|
xs_(),
|
17 |
|
|
exsLO_(),
|
18 |
|
|
exsNLO_(),
|
19 |
agilbert |
1.2 |
feff_(),
|
20 |
|
|
weight_(0)
|
21 |
amagnan |
1.1 |
{};
|
22 |
|
|
~GenInfo(){};
|
23 |
|
|
|
24 |
|
|
|
25 |
|
|
inline double processID()
|
26 |
|
|
{
|
27 |
|
|
return pid_;
|
28 |
|
|
};
|
29 |
|
|
|
30 |
|
|
inline double ptHat()
|
31 |
|
|
{
|
32 |
|
|
return ptHat_;
|
33 |
|
|
};
|
34 |
|
|
|
35 |
|
|
inline std::pair<double,double> internalXS()
|
36 |
|
|
{
|
37 |
|
|
return xs_;
|
38 |
|
|
};
|
39 |
|
|
|
40 |
|
|
inline std::pair<double,double> externalXSLO()
|
41 |
|
|
{
|
42 |
|
|
return exsLO_;
|
43 |
|
|
};
|
44 |
|
|
|
45 |
|
|
inline std::pair<double,double> externalXSNLO()
|
46 |
|
|
{
|
47 |
|
|
return exsNLO_;
|
48 |
|
|
};
|
49 |
|
|
|
50 |
|
|
inline double filterEff()
|
51 |
|
|
{
|
52 |
|
|
return feff_;
|
53 |
|
|
};
|
54 |
agilbert |
1.2 |
|
55 |
|
|
inline double weight()
|
56 |
|
|
{
|
57 |
|
|
return weight_;
|
58 |
|
|
};
|
59 |
amagnan |
1.1 |
inline void processID(const double aVal)
|
60 |
|
|
{
|
61 |
|
|
pid_ = aVal;
|
62 |
|
|
};
|
63 |
|
|
|
64 |
|
|
inline void ptHat(const double aVal)
|
65 |
|
|
{
|
66 |
|
|
ptHat_ = aVal;
|
67 |
|
|
};
|
68 |
|
|
|
69 |
|
|
inline void internalXS(const double aVal,
|
70 |
|
|
const double aErr)
|
71 |
|
|
{
|
72 |
|
|
xs_ = std::pair<double,double>(aVal,aErr);
|
73 |
|
|
};
|
74 |
|
|
|
75 |
|
|
inline void externalXSLO(const double aVal,
|
76 |
|
|
const double aErr)
|
77 |
|
|
{
|
78 |
|
|
exsLO_ = std::pair<double,double>(aVal,aErr);
|
79 |
|
|
};
|
80 |
|
|
inline void externalXSNLO(const double aVal,
|
81 |
|
|
const double aErr)
|
82 |
|
|
{
|
83 |
|
|
exsNLO_ = std::pair<double,double>(aVal,aErr);
|
84 |
|
|
};
|
85 |
|
|
|
86 |
|
|
inline void filterEff(const double aVal)
|
87 |
|
|
{
|
88 |
|
|
feff_ = aVal;
|
89 |
|
|
};
|
90 |
|
|
|
91 |
agilbert |
1.2 |
inline void weight(const double aVal)
|
92 |
|
|
{
|
93 |
|
|
weight_ = aVal;
|
94 |
|
|
};
|
95 |
amagnan |
1.1 |
|
96 |
|
|
inline void Clear(){
|
97 |
|
|
pid_ = 0;
|
98 |
|
|
ptHat_ = 0;
|
99 |
|
|
xs_ = std::pair<double,double>(0,0);
|
100 |
|
|
exsLO_ = std::pair<double,double>(0,0);
|
101 |
|
|
exsNLO_ = std::pair<double,double>(0,0);
|
102 |
|
|
feff_ = 0;
|
103 |
agilbert |
1.2 |
weight_ = 0;
|
104 |
amagnan |
1.1 |
}
|
105 |
|
|
|
106 |
|
|
private:
|
107 |
|
|
|
108 |
|
|
double pid_;
|
109 |
|
|
double ptHat_;
|
110 |
|
|
std::pair<double,double> xs_;
|
111 |
|
|
std::pair<double,double> exsLO_;
|
112 |
|
|
std::pair<double,double> exsNLO_;
|
113 |
|
|
double feff_;
|
114 |
agilbert |
1.2 |
double weight_;
|
115 |
amagnan |
1.1 |
|
116 |
|
|
};//class
|
117 |
|
|
|
118 |
|
|
}//namespace
|
119 |
|
|
|
120 |
|
|
#endif //HbbAnalysis_GenInfo_hh
|
121 |
|
|
|