ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/HbbAnalysis/interface/GenInfo.hh
Revision: 1.1
Committed: Thu Jun 24 13:41:56 2010 UTC (14 years, 10 months ago) by amagnan
Content type: text/plain
Branch: MAIN
CVS Tags: v01-00-00, beforeMETHacks, v00-05-03, v00-05-02, v00-05-01
Log Message:
add generator information to tree

File Contents

# User Rev Content
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     feff_()
20     {};
21     ~GenInfo(){};
22    
23    
24     inline double processID()
25     {
26     return pid_;
27     };
28    
29     inline double ptHat()
30     {
31     return ptHat_;
32     };
33    
34     inline std::pair<double,double> internalXS()
35     {
36     return xs_;
37     };
38    
39     inline std::pair<double,double> externalXSLO()
40     {
41     return exsLO_;
42     };
43    
44     inline std::pair<double,double> externalXSNLO()
45     {
46     return exsNLO_;
47     };
48    
49     inline double filterEff()
50     {
51     return feff_;
52     };
53     inline void processID(const double aVal)
54     {
55     pid_ = aVal;
56     };
57    
58     inline void ptHat(const double aVal)
59     {
60     ptHat_ = aVal;
61     };
62    
63     inline void internalXS(const double aVal,
64     const double aErr)
65     {
66     xs_ = std::pair<double,double>(aVal,aErr);
67     };
68    
69     inline void externalXSLO(const double aVal,
70     const double aErr)
71     {
72     exsLO_ = std::pair<double,double>(aVal,aErr);
73     };
74     inline void externalXSNLO(const double aVal,
75     const double aErr)
76     {
77     exsNLO_ = std::pair<double,double>(aVal,aErr);
78     };
79    
80     inline void filterEff(const double aVal)
81     {
82     feff_ = aVal;
83     };
84    
85    
86     inline void Clear(){
87     pid_ = 0;
88     ptHat_ = 0;
89     xs_ = std::pair<double,double>(0,0);
90     exsLO_ = std::pair<double,double>(0,0);
91     exsNLO_ = std::pair<double,double>(0,0);
92     feff_ = 0;
93     }
94    
95     private:
96    
97     double pid_;
98     double ptHat_;
99     std::pair<double,double> xs_;
100     std::pair<double,double> exsLO_;
101     std::pair<double,double> exsNLO_;
102     double feff_;
103    
104     };//class
105    
106     }//namespace
107    
108     #endif //HbbAnalysis_GenInfo_hh
109