-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLeptonSelection.cc
59 lines (46 loc) · 1.38 KB
/
LeptonSelection.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#include "LeptonSelection.h"
Lep::Lep() {}
Lep::~Lep() {}
void Lep::SetPt(Double_t minPt) {
minPt ? pt_cut_min=minPt : pt_cut_min=0.0;
pt_cut_max=10000.0;
}
void Lep::SetPt(Double_t minPt, Double_t maxPt) {
minPt ? pt_cut_min=minPt : pt_cut_min=0.0;
maxPt ? pt_cut_max=maxPt : pt_cut_max=10000.0;
}
void Lep::SetEta(Double_t Eta) {
Eta ? eta_cut=Eta : eta_cut=3.0;
eta_cut_min=0.0;
}
void Lep::SetEta(Double_t minEta, Double_t Eta) {
minEta ? eta_cut_min=minEta : eta_cut_min=0.0;
Eta ? eta_cut=Eta : eta_cut=3.0;
}
void Lep::SetRelIso(Double_t RelIso) {
RelIso ? relIso_cut=RelIso : relIso_cut=10.0;
relIsoMIN_cut=0.0;
}
void Lep::SetRelIso(Double_t RelIsoMIN, Double_t RelIso) {
RelIsoMIN ? relIsoMIN_cut=RelIsoMIN : relIsoMIN_cut=0.0;
RelIso ? relIso_cut=RelIso : relIso_cut=10.0;
}
void Lep::SetChiNdof(Double_t ChiNdof) {
ChiNdof ? chiNdof_cut=ChiNdof : chiNdof_cut=100.0;
chiNdofMIN_cut=0.0;
}
void Lep::SetChiNdof(Double_t ChiNdofMIN, Double_t ChiNdof) {
ChiNdofMIN ? chiNdofMIN_cut=ChiNdofMIN : chiNdofMIN_cut=0.0;
ChiNdof ? chiNdof_cut=ChiNdof : chiNdof_cut=100.0;
}
void Lep::SetBSdxy(Double_t dxy) {
dxy ? dxy_cut=dxy : dxy_cut=2.0;
dxyMIN_cut=0.0;
}
void Lep::SetBSdxy(Double_t dxyMIN, Double_t dxy) {
dxyMIN ? dxyMIN_cut=dxyMIN : dxyMIN_cut=0.0;
dxy ? dxy_cut=dxy : dxy_cut=2.0;
}
void Lep::SetBSdz(Double_t dz) {
dz ? dz_cut=dz : dz_cut=2.0;
}