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 electronDummyVeto(ControlFlags &, const mithep::Electron*, const mithep::Vertex &);
|
34 |
SelectionStatus electronCutBasedVeto(ControlFlags &, const mithep::Electron*, const mithep::Vertex &);
|
35 |
|
36 |
SelectionStatus electronPreSelection(ControlFlags &, const mithep::Electron *, const mithep::Vertex &);
|
37 |
SelectionStatus electronBDTSelection( ControlFlags &, const mithep::Electron * );
|
38 |
|
39 |
void initBDTSelection();
|
40 |
Bool_t isEleFO(ControlFlags &, const mithep::Electron *, const mithep::Vertex &vtx);
|
41 |
Bool_t isLooseEleFO(const mithep::Electron *, const mithep::Array<mithep::PFCandidate> *, const mithep::Vertex &vtx);
|
42 |
|
43 |
|
44 |
SelectionStatus electronIDMVASelection(ControlFlags &ctrl,
|
45 |
const mithep::Electron *ele,
|
46 |
const mithep::Vertex & vtx );
|
47 |
void initElectronIDMVA();
|
48 |
|
49 |
#endif
|
50 |
|