1 |
#ifndef SELECTION
|
2 |
#define SELECTION
|
3 |
|
4 |
// System headers
|
5 |
//
|
6 |
#include <vector> // STL vector class
|
7 |
#include <iostream> // standard I/O
|
8 |
#include <iomanip> // functions to format standard I/O
|
9 |
#include <fstream> // functions for file I/O
|
10 |
#include <string> // C++ string class
|
11 |
#include <sstream> // class for parsing strings
|
12 |
#include <assert.h>
|
13 |
#include <stdlib.h>
|
14 |
#include <getopt.h>
|
15 |
using namespace std;
|
16 |
|
17 |
//
|
18 |
// ROOT headers
|
19 |
//
|
20 |
#include <TROOT.h> // access to gROOT, entry point to ROOT system
|
21 |
#include <TTree.h>
|
22 |
#include <TFile.h>
|
23 |
#include <TChain.h> //
|
24 |
#include <TBranch.h> // class to access branches in TTree
|
25 |
#include <TClonesArray.h> // ROOT array class
|
26 |
#include <TLorentzVector.h> // 4-vector class
|
27 |
#include <TVector3.h> // 3D vector class
|
28 |
|
29 |
//
|
30 |
// ntuple format headers
|
31 |
//
|
32 |
#include "HiggsAnaDefs.hh"
|
33 |
#include "TGenInfo.hh"
|
34 |
#include "TEventInfo.hh"
|
35 |
#include "TElectron.hh"
|
36 |
#include "TMuon.hh"
|
37 |
#include "TJet.hh"
|
38 |
#include "RunLumiRangeMap.h"
|
39 |
|
40 |
//
|
41 |
// utility headers
|
42 |
//
|
43 |
#include "PassHLT.h"
|
44 |
#include "ParseArgs.h"
|
45 |
#include "SimpleLepton.h"
|
46 |
#include "MuonSelection.h"
|
47 |
#include "HZZCiCElectronSelection.h"
|
48 |
#include "Angles.h"
|
49 |
|
50 |
//
|
51 |
// defines
|
52 |
//
|
53 |
#define K_BDT_LOOSE 0
|
54 |
#define K_BDT_MED 1
|
55 |
#define K_BDT_TIGHT 2
|
56 |
|
57 |
#define EVTFAIL_JSON 0
|
58 |
#define EVTFAIL_TRIGGER 1
|
59 |
#define EVTFAIL_Z1 2
|
60 |
#define EVTFAIL_Z1_PLUSL 3
|
61 |
#define EVTFAIL_4L 4
|
62 |
#define EVTFAIL_ISOLATION 5
|
63 |
#define EVTFAIL_IP 6
|
64 |
#define EVTFAIL_KINEMATICS 7
|
65 |
|
66 |
|
67 |
//i: 9cut: 0.275effB: 0.45364effS: 0.895138nsig: 344158ntot: 384475
|
68 |
#define PFISO_ELE_TIGHT_EB_HIGHPT 0.275
|
69 |
//i: 2cut: 0.45effB: 0.765236effS: 0.949037nsig: 364881ntot: 384475
|
70 |
#define PFISO_ELE_LOOSE_EB_HIGHPT 0.45
|
71 |
|
72 |
//i: 8cut: 0.3effB: 0.535408effS: 0.896676nsig: 143713ntot: 160273
|
73 |
#define PFISO_ELE_TIGHT_TRANS_HIGHPT 0.3
|
74 |
//i: 2cut: 0.45effB: 0.781833effS: 0.946179nsig: 151647ntot: 160273
|
75 |
#define PFISO_ELE_LOOSE_TRANS_HIGHPT 0.45
|
76 |
|
77 |
//i: 7cut: 0.325effB: 0.627641effS: 0.894936nsig: 212422ntot: 237360
|
78 |
#define PFISO_ELE_TIGHT_EE_HIGHPT 0.325
|
79 |
//i: 0cut: 0.5effB: 0.825242effS: 0.947497nsig: 224898ntot: 237360
|
80 |
#define PFISO_ELE_LOOSE_EE_HIGHPT 0.5
|
81 |
|
82 |
|
83 |
//i: 10cut: 0.25effB: 0.479756effS: 0.634297nsig: 9569ntot: 15086
|
84 |
#define PFISO_ELE_TIGHT_EB_LOWPT 0.25
|
85 |
//i: 8cut: 0.3effB: 0.576163effS: 0.680963nsig: 10273ntot: 15086
|
86 |
#define PFISO_ELE_LOOSE_EB_LOWPT 0.3
|
87 |
|
88 |
//i: 10cut: 0.25effB: 0.49514effS: 0.626184nsig: 8858ntot: 14146
|
89 |
#define PFISO_ELE_TIGHT_TRANS_LOWPT 0.25
|
90 |
//i: 8cut: 0.3effB: 0.584501effS: 0.682384nsig: 9653ntot: 14146
|
91 |
#define PFISO_ELE_LOOSE_TRANS_LOWPT 0.3
|
92 |
|
93 |
//i: 10cut: 0.25effB: 0.537894effS: 0.639738nsig: 18530ntot: 28965
|
94 |
#define PFISO_ELE_TIGHT_EE_LOWPT 0.25
|
95 |
//i: 8cut: 0.3effB: 0.618612effS: 0.691973nsig: 20043ntot: 28965
|
96 |
#define PFISO_ELE_LOOSE_EE_LOWPT 0.3
|
97 |
|
98 |
|
99 |
|
100 |
#define PFISO_MU_LOOSE_EB_HIGHPT 0.20
|
101 |
#define PFISO_MU_LOOSE_EB_LOWPT 0.13
|
102 |
#define PFISO_MU_LOOSE_EE_HIGHPT 0.20
|
103 |
#define PFISO_MU_LOOSE_EE_LOWPT 0.13
|
104 |
|
105 |
#define PFISO_MU_TIGHT_EB_HIGHPT 0.13
|
106 |
#define PFISO_MU_TIGHT_EB_LOWPT 0.06
|
107 |
#define PFISO_MU_TIGHT_EE_HIGHPT 0.09
|
108 |
#define PFISO_MU_TIGHT_EE_LOWPT 0.05
|
109 |
|
110 |
|
111 |
|
112 |
//#define THEIR_EVENTS
|
113 |
|
114 |
void initRunLumiRangeMap();
|
115 |
void initRunLumiRangeMap(RunLumiRangeMap &rlrm);
|
116 |
//unsigned getGenChannel(mithep::TGenInfo * ginfo);
|
117 |
|
118 |
unsigned fails_HZZ4L_selection(ControlFlags &ctrl, // input control
|
119 |
mithep::TEventInfo *info, // input event inof
|
120 |
TClonesArray *electronArr, // input electrons
|
121 |
TClonesArray *muonArr, // input muons
|
122 |
double eventweight, // weight
|
123 |
TTree * passtuple ); // output ntuple
|
124 |
|
125 |
/* unsigned fails_HZZ4L_selection(ControlFlags &ctrl, // input control */
|
126 |
/* mithep::TEventInfo *info, // input event inof */
|
127 |
/* TClonesArray *electronArr, // input electrons */
|
128 |
/* TClonesArray *muonArr, // input muons */
|
129 |
/* double eventweight, // weight */
|
130 |
/* LabVectors * l ); */
|
131 |
|
132 |
unsigned fails_HZZ4L_selection(ControlFlags &ctrl, // input control
|
133 |
mithep::TEventInfo *info, // input event inof
|
134 |
TClonesArray *electronArr, // input electrons
|
135 |
TClonesArray *muonArr, // input muons
|
136 |
double eventweight, // weight
|
137 |
TTree * passtuple, // output ntuple
|
138 |
LabVectors * l);
|
139 |
|
140 |
unsigned fails_HZZ4L_selection(ControlFlags &ctrl, // input control
|
141 |
mithep::TEventInfo *info, // input event inof
|
142 |
TClonesArray *electronArr, // input electrons
|
143 |
TClonesArray *muonArr, // input muons
|
144 |
double eventweight, // weight
|
145 |
TTree * passtuple, // output ntuple
|
146 |
LabVectors * l,
|
147 |
TClonesArray *jetArr // input muons
|
148 |
);
|
149 |
|
150 |
#endif
|