Skip to content

Commit

Permalink
Merge pull request #8 from cmstas/more-categories
Browse files Browse the repository at this point in the history
Lep SFs, and SR MVA (input variables and score calculation)
  • Loading branch information
kmohrman authored Nov 3, 2023
2 parents 33a18b5 + 9e97e16 commit e99f921
Show file tree
Hide file tree
Showing 19 changed files with 25,713 additions and 115 deletions.
272 changes: 180 additions & 92 deletions analysis/wwz/get_wwz_yields.py

Large diffs are not rendered by default.

38 changes: 27 additions & 11 deletions analysis/wwz/ref_for_ci/counts_wwz_ref.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@
1861.0,
null
],
"sr_4l_sf_presel_counts": [
1836.0,
null
],
"sr_4l_of_presel_counts": [
3433.0,
null
],
"all_events_counts": [
54868.0,
null
Expand All @@ -57,47 +65,55 @@
null
],
"sr_4l_sf_A": [
0.6564941065153107,
0.6113826727998374,
null
],
"sr_4l_sf_B": [
0.5439027689862996,
0.5052365531326496,
null
],
"sr_4l_sf_C": [
0.15502961090533063,
0.14247860853292207,
null
],
"sr_4l_of_1": [
0.18187831446994096,
0.16384727075985167,
null
],
"sr_4l_of_2": [
0.22431658784626052,
0.20446058674271855,
null
],
"sr_4l_of_3": [
0.4469010012689978,
0.4126786421631113,
null
],
"sr_4l_of_4": [
1.4732143472065218,
1.3895898234158148,
null
],
"sr_4l_sf_presel": [
1.3176498409570498,
null
],
"sr_4l_of_presel": [
2.521420349141232,
null
],
"all_events": [
42.997765715117566,
42.35189975848351,
null
],
"4l_presel": [
7.726364016125444,
7.190368592231446,
null
],
"cr_4l_of": [
0.13424351782305166,
0.1253628576478738,
null
],
"cr_4l_sf": [
0.30572878575185314,
0.2840108541579843,
null
]
}
Expand Down
130 changes: 118 additions & 12 deletions analysis/wwz/wwz4l.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,302 @@
{
"NUM_LeptonMvaTight_DEN_TrackerMuons": {
"abseta_pt": {
"abseta:[0.0,0.9]": {
"pt:[10,15]": {
"AltSig": 0.001794668529474408,
"massBin": 0.00035244472339446276,
"massRange": 0.00105095340148198,
"stat": 0.00711707690074481,
"syst": 0.005593181004282421,
"tagIso": 0.0051801658545692075,
"value": 0.8906135988696489
},
"pt:[15,20]": {
"AltSig": 0.0025311144717226064,
"massBin": 0.0009096968559493823,
"massRange": 0.0034888565071538036,
"stat": 0.0025493102346905304,
"syst": 0.005279485675093961,
"tagIso": 0.0029097698237704472,
"value": 0.9154376529113443
},
"pt:[20,25]": {
"AltSig": 0.00027414155401983553,
"massBin": 0.001087865438453739,
"massRange": 0.0011246915874314478,
"stat": 0.0012414165398046384,
"syst": 0.003749424553637651,
"tagIso": 0.0033962697938708097,
"value": 0.9483855838269287
},
"pt:[25,30]": {
"AltSig": 0.00015106701566447445,
"massBin": 0.0003017052721271951,
"massRange": 0.0008188566614947823,
"stat": 0.0006718823060357615,
"syst": 0.003876514940608457,
"tagIso": 0.0037739892074878933,
"value": 0.9707016301752767
},
"pt:[30,40]": {
"AltSig": 0.0002744053245251621,
"massBin": 0.00019351547954887804,
"massRange": 0.0007019766345200407,
"stat": 0.00021917448756066655,
"syst": 0.0018980290881472261,
"tagIso": 0.0017311836127598124,
"value": 0.9828862380773977
},
"pt:[40,50]": {
"AltSig": 0.00011384172960393624,
"massBin": 3.376591423603914e-05,
"massRange": 0.00013777552760640965,
"stat": 0.0001341163569232481,
"syst": 0.0009774386378949822,
"tagIso": 0.0009603666583546944,
"value": 0.9897756310142636
},
"pt:[50,60]": {
"AltSig": 0.00012182283642980796,
"massBin": 2.7449055371886466e-05,
"massRange": 0.00023697119588883542,
"stat": 0.0002650752648403933,
"syst": 0.0009780082030797898,
"tagIso": 0.000940611738972974,
"value": 0.9932889570445501
},
"pt:[60,120]": {
"AltSig": 9.086552649728574e-05,
"massBin": 4.946324986437878e-05,
"massRange": 0.000509278982058825,
"stat": 0.00037068895001998264,
"syst": 0.0006193307039841153,
"tagIso": 0.00033690099782845984,
"value": 0.9928818212423124
}
},
"abseta:[0.9,1.2]": {
"pt:[10,15]": {
"AltSig": 0.0022794060471345023,
"massBin": 0.0020155041898906045,
"massRange": 0.00129981065811402,
"stat": 0.01150221318104872,
"syst": 0.006369557361760615,
"tagIso": 0.005442775410636758,
"value": 0.8891781180034699
},
"pt:[15,20]": {
"AltSig": 0.0036484575604669445,
"massBin": 0.004034858855948953,
"massRange": 0.003257264596469578,
"stat": 0.004478527876680055,
"syst": 0.006767093603228758,
"tagIso": 0.0023648371245156286,
"value": 0.9290584503359859
},
"pt:[20,25]": {
"AltSig": 0.003648845317198557,
"massBin": 0.0038289477315134324,
"massRange": 0.003016126803688346,
"stat": 0.002418921501235203,
"syst": 0.006350462403099862,
"tagIso": 0.0018045605996346858,
"value": 0.9535398515113269
},
"pt:[25,30]": {
"AltSig": 0.0013277444168732222,
"massBin": 0.0002414253490747864,
"massRange": 0.0028183208076706934,
"stat": 0.0013973340839810325,
"syst": 0.004570939992771873,
"tagIso": 0.0033360708635845615,
"value": 0.9715573579217887
},
"pt:[30,40]": {
"AltSig": 7.386424145061632e-05,
"massBin": 2.32531465070851e-05,
"massRange": 0.00021370799807807206,
"stat": 0.0004404309306359748,
"syst": 0.0014513728234938307,
"tagIso": 0.001433462705948907,
"value": 0.9817583686296315
},
"pt:[40,50]": {
"AltSig": 0.0001499490734215847,
"massBin": 3.736383629382445e-05,
"massRange": 0.00023848287236682975,
"stat": 0.00021522279953918656,
"syst": 0.0009459395285100894,
"tagIso": 0.0009022453825334731,
"value": 0.988716485917649
},
"pt:[50,60]": {
"AltSig": 1.0311105552274213e-05,
"massBin": 5.362528150087975e-06,
"massRange": 0.0001482833890294466,
"stat": 0.0003831821870018139,
"syst": 0.0009384822845983314,
"tagIso": 0.0009266207203796895,
"value": 0.9904664179008486
},
"pt:[60,120]": {
"AltSig": 8.77869317919e-05,
"massBin": 0.00011621237370962323,
"massRange": 0.0006694193946379379,
"stat": 0.0006359551678896634,
"syst": 0.0017847960824246272,
"tagIso": 0.0016480785383968244,
"value": 0.9930877181592119
}
},
"abseta:[1.2,2.1]": {
"pt:[10,15]": {
"AltSig": 0.0013200139734085292,
"massBin": 0.00018030709470584494,
"massRange": 0.0020724349777064277,
"stat": 0.007967089786360865,
"syst": 0.00350478942263573,
"tagIso": 0.002492712302252953,
"value": 0.9020984509239869
},
"pt:[15,20]": {
"AltSig": 0.0019696182631383508,
"massBin": 0.00048248936222877736,
"massRange": 0.002620828129785535,
"stat": 0.003039432812464859,
"syst": 0.004430680031965583,
"tagIso": 0.0029410871072838574,
"value": 0.9161564808928513
},
"pt:[20,25]": {
"AltSig": 0.0011063402436133352,
"massBin": 0.00042004595720535054,
"massRange": 0.0010723110221640408,
"stat": 0.0016293380248575283,
"syst": 0.004099073313790381,
"tagIso": 0.003775198506406119,
"value": 0.943940447533144
},
"pt:[25,30]": {
"AltSig": 0.0015973662833377311,
"massBin": 4.105135896026457e-05,
"massRange": 0.0005305385505456894,
"stat": 0.0009541539292984997,
"syst": 0.002714369570304189,
"tagIso": 0.002129099986698968,
"value": 0.9615753816542674
},
"pt:[30,40]": {
"AltSig": 5.5188023944108267e-05,
"massBin": 1.2023702223251664e-05,
"massRange": 0.0003603997447461649,
"stat": 0.0003334818859136156,
"syst": 0.0018523405057148433,
"tagIso": 0.001816063623801989,
"value": 0.9785550116097087
},
"pt:[40,50]": {
"AltSig": 0.00022171409916926788,
"massBin": 4.763033466154143e-05,
"massRange": 0.00011673202961570706,
"stat": 0.00016925833859816357,
"syst": 0.0014727919506649255,
"tagIso": 0.0014505392006611828,
"value": 0.9866768660081376
},
"pt:[50,60]": {
"AltSig": 3.900325478278788e-05,
"massBin": 0.00013488550434281876,
"massRange": 0.00018556391114615822,
"stat": 0.0003166101817766718,
"syst": 0.0010312186091854898,
"tagIso": 0.0010046205759614568,
"value": 0.9887093205792922
},
"pt:[60,120]": {
"AltSig": 0.00013146439420819167,
"massBin": 0.00010162606422137177,
"massRange": 0.0001582658299630335,
"stat": 0.000450838459696172,
"syst": 0.000346544603958221,
"tagIso": 0.0002596812386850833,
"value": 0.9897090021166988
}
},
"abseta:[2.1,2.4]": {
"pt:[10,15]": {
"AltSig": 0.00023241391225403696,
"massBin": 0.0014406947142424076,
"massRange": 0.001991125919861947,
"stat": 0.021820964812260618,
"syst": 0.006912969574399556,
"tagIso": 0.006457162567379937,
"value": 0.8970995143156725
},
"pt:[15,20]": {
"AltSig": 0.00015859368678017294,
"massBin": 0.0005316948437437685,
"massRange": 0.0016026436719192017,
"stat": 0.006564081995696162,
"syst": 0.0033580152948910155,
"tagIso": 0.002898266484854195,
"value": 0.9170029728414116
},
"pt:[20,25]": {
"AltSig": 7.492326645175407e-05,
"massBin": 0.000459027721387395,
"massRange": 0.0013441949562840727,
"stat": 0.003978907020483309,
"syst": 0.004654636382378293,
"tagIso": 0.004431981478616787,
"value": 0.9140142351936156
},
"pt:[25,30]": {
"AltSig": 0.00013195586637482215,
"massBin": 0.0001304249688421355,
"massRange": 0.002735213894409838,
"stat": 0.0023876776862210647,
"syst": 0.005288261271616953,
"tagIso": 0.00452215537167211,
"value": 0.9373251678769887
},
"pt:[30,40]": {
"AltSig": 0.00045275009885370476,
"massBin": 3.89526071895574e-05,
"massRange": 0.0002144650354096167,
"stat": 0.0009490826582214167,
"syst": 0.0015509817788267714,
"tagIso": 0.001467327253621531,
"value": 0.9555794441860835
},
"pt:[40,50]": {
"AltSig": 0.0008793107463751504,
"massBin": 0.0010908105377250288,
"massRange": 0.0008470580508470049,
"stat": 0.0006895054323976057,
"syst": 0.002278379620605082,
"tagIso": 0.0015844403858085165,
"value": 0.9663658083398173
},
"pt:[50,60]": {
"AltSig": 3.213727410256162e-05,
"massBin": 6.730018445533226e-05,
"massRange": 0.00021967105092607353,
"stat": 0.001321338456116413,
"syst": 0.0016558398547519015,
"tagIso": 0.0016395085040204482,
"value": 0.9668778664112435
},
"pt:[60,120]": {
"AltSig": 6.987844119787923e-06,
"massBin": 7.806598302123602e-05,
"massRange": 0.0005300114889265628,
"stat": 0.001967891479570664,
"syst": 0.001524353882090435,
"tagIso": 0.0014270947592152083,
"value": 0.9700363976321362
}
}
}
}
}
Loading

0 comments on commit e99f921

Please sign in to comment.