1 |
< |
#ifndef SELECTION |
2 |
< |
#define SELECTION |
1 |
> |
#ifndef SELECTION_EMU |
2 |
> |
#define SELECTION_EMU |
3 |
|
|
4 |
|
// System headers |
5 |
|
// |
30 |
|
// |
31 |
|
// ntuple format headers |
32 |
|
// |
33 |
< |
#include "HiggsAnaDefs.hh" |
34 |
< |
#include "TGenInfo.hh" |
35 |
< |
#include "TEventInfo.hh" |
36 |
< |
#include "TElectron.hh" |
37 |
< |
#include "TMuon.hh" |
38 |
< |
#include "TJet.hh" |
39 |
< |
#include "TPhoton.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 |
+ |
#include "TriggerTable.h" |
40 |
+ |
#include "TriggerObjectsTable.h" |
41 |
|
|
42 |
|
#include "ParseArgs.h" |
43 |
+ |
#include "TriggerUtils.h" |
44 |
|
#include "EventData.h" |
45 |
|
#include "SelectionStatus.h" |
46 |
+ |
#include "ReferenceSelection.h" |
47 |
+ |
#include "SelectionFuncs.h" |
48 |
+ |
|
49 |
+ |
EventData |
50 |
+ |
apply_HZZ4L_EMU_selection(ControlFlags &ctrl, // input control |
51 |
+ |
const mithep::EventHeader *info, // input event info |
52 |
+ |
mithep::TriggerTable *hltTable, |
53 |
+ |
mithep::Array<mithep::TriggerObject> *hltObjArr, |
54 |
+ |
mithep::TriggerObjectsTable *fTrigObjs, |
55 |
+ |
const mithep::Array<mithep::Vertex> * vtxArr , |
56 |
+ |
const mithep::Array<mithep::PFCandidate> *fPFCandidates, |
57 |
+ |
const mithep::Array<mithep::PileupEnergyDensity> *puEnergyDensity, |
58 |
+ |
const mithep::DecayParticleCol *fConversions, |
59 |
+ |
const mithep::Array<mithep::Electron> *electronArr, // input electrons |
60 |
+ |
SelectionStatus (*ElectronPreSelector)( ControlFlags &, |
61 |
+ |
const mithep::Electron*, |
62 |
+ |
const mithep::Vertex *), |
63 |
+ |
SelectionStatus (*ElectronIDSelector)( ControlFlags &, |
64 |
+ |
const mithep::Electron*, |
65 |
+ |
const mithep::Vertex *), |
66 |
+ |
SelectionStatus (*ElectronIsoSelector)( ControlFlags &, |
67 |
+ |
const mithep::Electron*, |
68 |
+ |
const mithep::Vertex *, |
69 |
+ |
const mithep::Array<mithep::PFCandidate> *, |
70 |
+ |
const mithep::Array<mithep::PileupEnergyDensity> *puEnergyDensity, |
71 |
+ |
|
72 |
+ |
mithep::ElectronTools::EElectronEffectiveAreaTarget, |
73 |
+ |
vector<const mithep::PFCandidate*>), |
74 |
+ |
const mithep::Array<mithep::Muon> *muonArr, // input muons |
75 |
+ |
SelectionStatus (*MuonPreSelector)( ControlFlags &, |
76 |
+ |
const mithep::Muon*, |
77 |
+ |
const mithep::Vertex *, |
78 |
+ |
const mithep::Array<mithep::PFCandidate> *), |
79 |
+ |
SelectionStatus (*MuonIDSelector)( ControlFlags &, |
80 |
+ |
const mithep::Muon*, |
81 |
+ |
// const mithep::Vertex *), |
82 |
+ |
const mithep::Vertex *, |
83 |
+ |
const mithep::Array<mithep::PFCandidate> *), |
84 |
+ |
SelectionStatus (*MuonIsoSelector)( ControlFlags &, |
85 |
+ |
const mithep::Muon*, |
86 |
+ |
const mithep::Vertex * , |
87 |
+ |
const mithep::Array<mithep::PFCandidate> *, |
88 |
+ |
const mithep::Array<mithep::PileupEnergyDensity> *, |
89 |
+ |
mithep::MuonTools::EMuonEffectiveAreaTarget, |
90 |
+ |
vector<const mithep::PFCandidate*>) |
91 |
+ |
); |
92 |
+ |
bool has_ssof_lepton(ControlFlags &ctrl); |
93 |
|
|
46 |
– |
EventData apply_EMU_selection(ControlFlags &ctrl, // input control |
47 |
– |
mithep::TEventInfo *info, // input event info |
48 |
– |
TClonesArray *electronArr, // input electrons |
49 |
– |
SelectionStatus (*ElectronPreSelector)( ControlFlags &, const mithep::TElectron*), |
50 |
– |
SelectionStatus (*ElectronIDSelector)( ControlFlags &, const mithep::TElectron*), |
51 |
– |
SelectionStatus (*ElectronIsoSelector)( ControlFlags &, const mithep::TElectron*), |
52 |
– |
TClonesArray *muonArr, // input muons |
53 |
– |
SelectionStatus (*MuonPreSelector)( ControlFlags &, const mithep::TMuon*), |
54 |
– |
SelectionStatus (*MuonIDSelector)( ControlFlags &, const mithep::TMuon*), |
55 |
– |
SelectionStatus (*MuonIsoSelector)( ControlFlags &, const mithep::TMuon*) |
56 |
– |
); |
94 |
|
#endif |