-
Notifications
You must be signed in to change notification settings - Fork 0
/
untitled.txt
59 lines (47 loc) · 2.91 KB
/
untitled.txt
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
for _sample in sample_list:
model = R.RDF.TH1DModel(_sample+'_SB_2b_Z_var'+'No3_btag_score','No3_btag_score', 15, 0, 1)
histo_dict[_sample+'_SB_2b_Z_var'] = rdf_dict[_sample+'_SB_2b'].Filter('isZee||isZmm')\
.Filter('V_mass<75 || V_mass>105')\
.Histo1D(model,'No3_btag_score','weight')
model = R.RDF.TH1DModel(_sample+'_SB_3b_Z_var'+'No3_btag_score','No3_btag_score', 15, 0, 1)
histo_dict[_sample+'_SB_3b_Z_var'] = rdf_dict[_sample+'_SB_3b'].Filter('isZee||isZmm')\
.Filter('V_mass<75 || V_mass>105')\
.Histo1D(model,'No3_btag_score','weight')
model = R.RDF.TH1DModel(_sample+'_SB_4b_Z_var'+'No3_btag_score','No3_btag_score', 15, 0, 1)
histo_dict[_sample+'_SB_4b_Z_var'] = rdf_dict[_sample+'_SB_4b'].Filter('isZee||isZmm')\
.Filter('V_mass<75 || V_mass>105')\
.Histo1D(model,'No3_btag_score','weight')
histo_dict[_sample+'_SB_2b_Z_var'].Write()
histo_dict[_sample+'_SB_3b_Z_var'].Write()
histo_dict[_sample+'_SB_4b_Z_var'].Write()
model = R.RDF.TH1DModel(_sample+'_CR_2b_Z_var'+'No3_btag_score','No3_btag_score', 15, 0, 1)
histo_dict[_sample+'_CR_2b_Z_var'] = rdf_dict[_sample+'_CR_2b'].Filter('isZee||isZmm')\
.Filter('V_mass<75 || V_mass>105')\
.Histo1D(model,'No3_btag_score','weight')
model = R.RDF.TH1DModel(_sample+'_CR_3b_Z_var'+'No3_btag_score','No3_btag_score', 15, 0, 1)
histo_dict[_sample+'_CR_3b_Z_var'] = rdf_dict[_sample+'_CR_3b'].Filter('isZee||isZmm')\
.Filter('V_mass<75 || V_mass>105')\
.Histo1D(model,'No3_btag_score','weight')
model = R.RDF.TH1DModel(_sample+'_CR_4b_Z_var'+'No3_btag_score','No3_btag_score', 15, 0, 1)
histo_dict[_sample+'_CR_4b_Z_var'] = rdf_dict[_sample+'_CR_4b'].Filter('isZee||isZmm')\
.Filter('V_mass<75 || V_mass>105')\
.Histo1D(model,'No3_btag_score','weight')
histo_dict[_sample+'_CR_2b_Z_var'].Write()
histo_dict[_sample+'_CR_3b_Z_var'].Write()
histo_dict[_sample+'_CR_4b_Z_var'].Write()
model = R.RDF.TH1DModel(_sample+'_SR_2b_Z_var'+'No3_btag_score','No3_btag_score', 15, 0, 1)
histo_dict[_sample+'_SR_2b_Z_var'] = rdf_dict[_sample+'_SR_2b'].Filter('isZee||isZmm')\
.Filter('V_mass<75 || V_mass>105')\
.Histo1D(model,'No3_btag_score','weight')
model = R.RDF.TH1DModel(_sample+'_SR_3b_Z_var'+'No3_btag_score','No3_btag_score', 15, 0, 1)
histo_dict[_sample+'_SR_3b_Z_var'] = rdf_dict[_sample+'_SR_3b'].Filter('isZee||isZmm')\
.Filter('V_mass<75 || V_mass>105')\
.Histo1D(model,'No3_btag_score','weight')
model = R.RDF.TH1DModel(_sample+'_SR_4b_Z_var'+'No3_btag_score','No3_btag_score', 15, 0, 1)
histo_dict[_sample+'_SR_4b_Z_var'] = rdf_dict[_sample+'_SR_4b'].Filter('isZee||isZmm')\
.Filter('V_mass<75 || V_mass>105')\
.Histo1D(model,'No3_btag_score','weight')
histo_dict[_sample+'_SR_2b_Z_var'].Write()
histo_dict[_sample+'_SR_3b_Z_var'].Write()
histo_dict[_sample+'_SR_4b_Z_var'].Write()
#END