1 |
khahn |
1.1 |
#ifndef ELECTRON_SELECTION_BDT
|
2 |
|
|
#define ELECTRON_SELECTION_BDT
|
3 |
|
|
|
4 |
|
|
#include <vector>
|
5 |
|
|
#include <cassert>
|
6 |
|
|
#include <math.h>
|
7 |
|
|
#include <map>
|
8 |
|
|
|
9 |
|
|
#include "Vertex.h"
|
10 |
|
|
#include "Electron.h"
|
11 |
|
|
#include "ElectronCol.h"
|
12 |
|
|
#include "PFCandidate.h"
|
13 |
|
|
|
14 |
|
|
#include "TMath.h"
|
15 |
|
|
|
16 |
|
|
#include "TMVA/Factory.h"
|
17 |
|
|
#include "TMVA/Tools.h"
|
18 |
|
|
#include "TMVA/Reader.h"
|
19 |
|
|
#include "TMVA/MethodCuts.h"
|
20 |
|
|
|
21 |
|
|
#include "ParseArgs.h"
|
22 |
|
|
#include "SelectionStatus.h"
|
23 |
|
|
|
24 |
|
|
#define ELE_IDMVA_CUT_BIN0 0.369
|
25 |
|
|
#define ELE_IDMVA_CUT_BIN1 -0.025
|
26 |
|
|
#define ELE_IDMVA_CUT_BIN2 0.531
|
27 |
|
|
#define ELE_IDMVA_CUT_BIN3 0.735
|
28 |
|
|
#define ELE_IDMVA_CUT_BIN4 0.467
|
29 |
|
|
#define ELE_IDMVA_CUT_BIN5 0.795
|
30 |
|
|
|
31 |
|
|
using namespace std;
|
32 |
|
|
|
33 |
|
|
SelectionStatus electronPreSelection(ControlFlags &, const mithep::Electron *, const mithep::Vertex &);
|
34 |
|
|
SelectionStatus electronBDTSelection( ControlFlags &, const mithep::Electron * );
|
35 |
|
|
void initBDTSelection();
|
36 |
|
|
Bool_t isEleFO(ControlFlags &, const mithep::Electron *, const mithep::Vertex &vtx);
|
37 |
|
|
Bool_t isLooseEleFO(const mithep::Electron *, const mithep::Array<mithep::PFCandidate> *, const mithep::Vertex &vtx);
|
38 |
|
|
|
39 |
|
|
|
40 |
|
|
SelectionStatus electronIDMVASelection(ControlFlags &ctrl,
|
41 |
|
|
const mithep::Electron *ele,
|
42 |
|
|
const mithep::Vertex & vtx );
|
43 |
|
|
void initElectronIDMVA();
|
44 |
|
|
|
45 |
|
|
#endif
|
46 |
|
|
|