25 |
|
#include <TClonesArray.h> // ROOT array class |
26 |
|
#include <TLorentzVector.h> // 4-vector class |
27 |
|
#include <TVector3.h> // 3D vector class |
28 |
+ |
#include <TH1D.h> |
29 |
|
|
30 |
|
// |
31 |
|
// ntuple format headers |
32 |
|
// |
33 |
< |
#include "HiggsAnaDefs.hh" |
34 |
< |
#include "TEventInfo.hh" |
35 |
< |
#include "TElectron.hh" |
36 |
< |
#include "TMuon.hh" |
37 |
< |
#include "TJet.hh" |
33 |
> |
#include "EventHeader.h" |
34 |
> |
#include "Electron.h" |
35 |
> |
#include "Muon.h" |
36 |
> |
#include "PFCandidate.h" |
37 |
> |
#include "PFCandidateCol.h" |
38 |
|
#include "RunLumiRangeMap.h" |
39 |
|
|
39 |
– |
// |
40 |
– |
// utility headers |
41 |
– |
// |
42 |
– |
#include "PassHLT.h" |
40 |
|
#include "ParseArgs.h" |
41 |
< |
#include "SimpleLepton.h" |
42 |
< |
#include "MuonSelection.h" |
46 |
< |
#include "HZZCiCElectronSelection.h" |
47 |
< |
#include "Angles.h" |
48 |
< |
|
49 |
< |
// |
50 |
< |
// defines |
51 |
< |
// |
52 |
< |
#define K_BDT_LOOSE 0 |
53 |
< |
#define K_BDT_MED 1 |
54 |
< |
#define K_BDT_TIGHT 2 |
55 |
< |
|
56 |
< |
#define EVTFAIL_JSON 0 |
57 |
< |
#define EVTFAIL_TRIGGER 1 |
58 |
< |
#define EVTFAIL_Z1 2 |
59 |
< |
#define EVTFAIL_Z1_PLUSL 3 |
60 |
< |
#define EVTFAIL_4L 4 |
61 |
< |
#define EVTFAIL_ISOLATION 5 |
62 |
< |
#define EVTFAIL_IP 6 |
63 |
< |
#define EVTFAIL_KINEMATICS 7 |
64 |
< |
|
65 |
< |
|
66 |
< |
//i: 9cut: 0.275effB: 0.45364effS: 0.895138nsig: 344158ntot: 384475 |
67 |
< |
#define PFISO_ELE_TIGHT_EB_HIGHPT 0.275 |
68 |
< |
//i: 2cut: 0.45effB: 0.765236effS: 0.949037nsig: 364881ntot: 384475 |
69 |
< |
#define PFISO_ELE_LOOSE_EB_HIGHPT 0.45 |
70 |
< |
|
71 |
< |
//i: 8cut: 0.3effB: 0.535408effS: 0.896676nsig: 143713ntot: 160273 |
72 |
< |
#define PFISO_ELE_TIGHT_TRANS_HIGHPT 0.3 |
73 |
< |
//i: 2cut: 0.45effB: 0.781833effS: 0.946179nsig: 151647ntot: 160273 |
74 |
< |
#define PFISO_ELE_LOOSE_TRANS_HIGHPT 0.45 |
75 |
< |
|
76 |
< |
//i: 7cut: 0.325effB: 0.627641effS: 0.894936nsig: 212422ntot: 237360 |
77 |
< |
#define PFISO_ELE_TIGHT_EE_HIGHPT 0.325 |
78 |
< |
//i: 0cut: 0.5effB: 0.825242effS: 0.947497nsig: 224898ntot: 237360 |
79 |
< |
#define PFISO_ELE_LOOSE_EE_HIGHPT 0.5 |
80 |
< |
|
81 |
< |
|
82 |
< |
//i: 10cut: 0.25effB: 0.479756effS: 0.634297nsig: 9569ntot: 15086 |
83 |
< |
#define PFISO_ELE_TIGHT_EB_LOWPT 0.25 |
84 |
< |
//i: 8cut: 0.3effB: 0.576163effS: 0.680963nsig: 10273ntot: 15086 |
85 |
< |
#define PFISO_ELE_LOOSE_EB_LOWPT 0.3 |
86 |
< |
|
87 |
< |
//i: 10cut: 0.25effB: 0.49514effS: 0.626184nsig: 8858ntot: 14146 |
88 |
< |
#define PFISO_ELE_TIGHT_TRANS_LOWPT 0.25 |
89 |
< |
//i: 8cut: 0.3effB: 0.584501effS: 0.682384nsig: 9653ntot: 14146 |
90 |
< |
#define PFISO_ELE_LOOSE_TRANS_LOWPT 0.3 |
91 |
< |
|
92 |
< |
//i: 10cut: 0.25effB: 0.537894effS: 0.639738nsig: 18530ntot: 28965 |
93 |
< |
#define PFISO_ELE_TIGHT_EE_LOWPT 0.25 |
94 |
< |
//i: 8cut: 0.3effB: 0.618612effS: 0.691973nsig: 20043ntot: 28965 |
95 |
< |
#define PFISO_ELE_LOOSE_EE_LOWPT 0.3 |
96 |
< |
|
97 |
< |
|
98 |
< |
|
99 |
< |
#define PFISO_MU_LOOSE_EB_HIGHPT 0.20 |
100 |
< |
#define PFISO_MU_LOOSE_EB_LOWPT 0.13 |
101 |
< |
#define PFISO_MU_LOOSE_EE_HIGHPT 0.20 |
102 |
< |
#define PFISO_MU_LOOSE_EE_LOWPT 0.13 |
103 |
< |
|
104 |
< |
#define PFISO_MU_TIGHT_EB_HIGHPT 0.13 |
105 |
< |
#define PFISO_MU_TIGHT_EB_LOWPT 0.06 |
106 |
< |
#define PFISO_MU_TIGHT_EE_HIGHPT 0.09 |
107 |
< |
#define PFISO_MU_TIGHT_EE_LOWPT 0.05 |
108 |
< |
|
109 |
< |
|
110 |
< |
//#define THEIR_EVENTS |
111 |
< |
|
112 |
< |
|
113 |
< |
|
114 |
< |
void initRunLumiRangeMap(); |
115 |
< |
|
116 |
< |
unsigned fails_HZZ4L_selection(ControlFlags &ctrl, // input control |
117 |
< |
mithep::TEventInfo *info, // input event inof |
118 |
< |
TClonesArray *electronArr, // input electrons |
119 |
< |
TClonesArray *muonArr, // input muons |
120 |
< |
double eventweight, // weight |
121 |
< |
TTree * passtuple ); // output ntuple |
122 |
< |
|
123 |
< |
unsigned fails_HZZ4L_selection(ControlFlags &ctrl, // input control |
124 |
< |
mithep::TEventInfo *info, // input event inof |
125 |
< |
TClonesArray *electronArr, // input electrons |
126 |
< |
TClonesArray *muonArr, // input muons |
127 |
< |
double eventweight, // weight |
128 |
< |
LabVectors * l ); |
41 |
> |
#include "EventData.h" |
42 |
> |
#include "SelectionStatus.h" |
43 |
|
|
130 |
– |
unsigned fails_HZZ4L_selection(ControlFlags &ctrl, // input control |
131 |
– |
mithep::TEventInfo *info, // input event inof |
132 |
– |
TClonesArray *electronArr, // input electrons |
133 |
– |
TClonesArray *muonArr, // input muons |
134 |
– |
double eventweight, // weight |
135 |
– |
TTree * passtuple, // output ntuple |
136 |
– |
LabVectors * l); |
44 |
|
|
45 |
+ |
EventData apply_HZZ4L_selection(ControlFlags &ctrl, // input control |
46 |
+ |
const mithep::EventHeader *info, // input event info |
47 |
+ |
const mithep::Vertex & fVertex, |
48 |
+ |
const mithep::Array<mithep::PFCandidate> *fPFCandidates, |
49 |
+ |
const mithep::Array<mithep::PileupEnergyDensity> *, |
50 |
+ |
const mithep::Array<mithep::Electron> *electronArr, // input electrons |
51 |
+ |
SelectionStatus (*ElectronPreSelector)( ControlFlags &, |
52 |
+ |
const mithep::Electron*, |
53 |
+ |
const mithep::Vertex &), |
54 |
+ |
SelectionStatus (*ElectronIDSelector)( ControlFlags &, |
55 |
+ |
const mithep::Electron*, |
56 |
+ |
const mithep::Vertex &), |
57 |
+ |
SelectionStatus (*ElectronIsoSelector)( ControlFlags &, |
58 |
+ |
const mithep::Electron*, |
59 |
+ |
const mithep::Vertex & , |
60 |
+ |
const mithep::Array<mithep::PFCandidate> *, |
61 |
+ |
const mithep::Array<mithep::PileupEnergyDensity> *, |
62 |
+ |
mithep::ElectronTools::EElectronEffectiveAreaTarget, |
63 |
+ |
vector<const mithep::Muon*>, |
64 |
+ |
vector<const mithep::Electron*> ), |
65 |
+ |
const mithep::Array<mithep::Muon> *muonArr, // input muons |
66 |
+ |
SelectionStatus (*MuonPreSelector)( ControlFlags &, |
67 |
+ |
const mithep::Muon*, |
68 |
+ |
const mithep::Vertex &, |
69 |
+ |
const mithep::Array<mithep::PFCandidate> *), |
70 |
+ |
SelectionStatus (*MuonIDSelector)( ControlFlags &, |
71 |
+ |
const mithep::Muon*, |
72 |
+ |
const mithep::Vertex &), |
73 |
+ |
SelectionStatus (*MuonIsoSelector)( ControlFlags &, |
74 |
+ |
const mithep::Muon*, |
75 |
+ |
const mithep::Vertex & , |
76 |
+ |
const mithep::Array<mithep::PFCandidate> *, |
77 |
+ |
const mithep::Array<mithep::PileupEnergyDensity> *, |
78 |
+ |
mithep::MuonTools::EMuonEffectiveAreaTarget, |
79 |
+ |
vector<const mithep::Muon*>, |
80 |
+ |
vector<const mithep::Electron*> ) |
81 |
+ |
); |
82 |
|
#endif |