Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add validation workflow from MC & add 2023 files #91

Merged
merged 40 commits into from
Mar 28, 2024
Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
4f96701
test file for QCD
Oct 6, 2023
79d8360
QCD Pt binned samples for QCD workflow
Nov 9, 2023
4de6c26
Data samples for QCD workflow
Nov 9, 2023
9a36495
add QCD workflow selection
Nov 9, 2023
49e1301
add UL18 files for QCD
Nov 9, 2023
5f86e77
add histograms for QCD workflow
Nov 9, 2023
6ecf437
PU weights for QCD workflow
Nov 9, 2023
84e59e6
HLT_PFJet140 prescales
Nov 9, 2023
6b6f962
add variables for QCD workflow
Nov 9, 2023
a3c3ef4
add QCD Pt binned samples xsection
Nov 9, 2023
1db83bf
QCD workflow, need debug
Nov 10, 2023
c936cf9
add QCD workflow
Nov 10, 2023
266e762
add QCD plotting
Nov 10, 2023
8453835
prescales for HLT_PFJet140
Nov 10, 2023
f99dc0f
script to prepare json file for prescales
Nov 10, 2023
50575b9
csv file contains HLT_PFJet140 prescales information
Nov 10, 2023
5a1298d
Resolved conflicts
uttiyasarkar Nov 14, 2023
b437150
fix : add new files & change tagger axis & minor fixes
Ming-Yan Dec 3, 2023
fd79a80
feat: add condor resubmission scripts & fix DY hists
Nov 21, 2023
f2a5db0
Merge pull request #2 from uttiyasarkar/devhsin
hsinweihsia Dec 8, 2023
3047c9b
feat : add validation workflow & ROC/efficiency script
Ming-Yan Dec 3, 2023
5ac19b9
Merge branch 'master' of github.com:cms-btv-pog/BTVNanoCommissioning
Ming-Yan Feb 9, 2024
73ffd99
fix: correction
Ming-Yan Feb 12, 2024
668d775
fix: correction
Ming-Yan Feb 12, 2024
bf16c52
fix: correction implementation & add pu info
Ming-Yan Feb 12, 2024
1f7f492
fix: add pv hists
Ming-Yan Feb 14, 2024
9eb79f1
fix:axis
Ming-Yan Feb 15, 2024
ec2a36b
fix:minor
Ming-Yan Feb 15, 2024
8526451
Merge branch 'master' into QCD
Ming-Yan Feb 19, 2024
5fbffff
fix: compatible with current changes
Ming-Yan Feb 20, 2024
5967ba9
fix: working QCD
Ming-Yan Feb 23, 2024
ee43ed6
feat: fixed QCD
Ming-Yan Feb 24, 2024
0331cfa
feat: add veto
Ming-Yan Mar 11, 2024
f5ae16c
feat: add Summer23 info
Ming-Yan Mar 11, 2024
1c9bbc8
fix : format
Ming-Yan Mar 11, 2024
4828510
feat : change JEC implementation
Ming-Yan Mar 20, 2024
00e9404
fix : workflow
Ming-Yan Mar 20, 2024
7071cb0
fix : remove dependency python 3.8
Ming-Yan Mar 20, 2024
b677807
feat : minor fixes
Ming-Yan Mar 25, 2024
eb509a4
feat: add xsection
Ming-Yan Mar 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add variables for QCD workflow
  • Loading branch information
hhsia committed Nov 9, 2023
commit 6b6f9621348125ca012de2bc7a155f9290c79722
126 changes: 126 additions & 0 deletions src/BTVNanoCommissioning/helpers/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -6091,6 +6091,128 @@ def definitions():

return definitions_dict

def SV_definitions():
SV_definitions_dict = {
"JetSVs_chi2": {
"displayname": "SV $\\chi^2$",
"ylabel_text": "entries",
"format_unit": "2f",
"format_unit_digits": 2,
"bins": 22,
"manual_ranges": [-1, 10],
"inputVar_units": None,
},
"JetSVs_costhetasvpv": {
"displayname": "Cosine of the angle cos(θ) between the SV and the PV",
"ylabel_text": "entries",
"format_unit": "2f",
"format_unit_digits": 2,
"bins": 40,
"manual_ranges": [-2., 2.],
"inputVar_units": None,
},
"JetSVs_d3d": {
"displayname": "3D distance between SV and PV",
"ylabel_text": "entries",
"format_unit": "2f",
"format_unit_digits": 2,
"bins": 2000,
"manual_ranges": [0., 200.],
"inputVar_units": "mm",
},
"JetSVs_d3dsig": {
"displayname": "3D flight distance significance of the SV",
"ylabel_text": "entries",
"format_unit": "2f",
"format_unit_digits": 2,
"bins": 200,
"manual_ranges": [0., 200.],
"inputVar_units": None,
},
"JetSVs_dxy": {
"displayname": "Transverse (2D) flight distance of the SV",
"ylabel_text": "entries",
"format_unit": "2f",
"format_unit_digits": 2,
"bins": 1000,
"manual_ranges": [0.,100.],
"inputVar_units": "mm",
},
"JetSVs_dxysig": {
"displayname": "Transverse (2D) flight distance significance of the SV",
"ylabel_text": "entries",
"format_unit": "2f",
"format_unit_digits": 2,
"bins": 200,
"manual_ranges": [0.,200.],
"inputVar_units": None,
},
"JetSVs_enration": {
"displayname": "energy relative to parent jet [GeV]",
"ylabel_text": "entries",
"format_unit": "2f",
"format_unit_digits": 2,
"bins": 100,
"manual_ranges": [0.,10.],
"inputVar_units": None,
},
"JetSVs_mass": {
"displayname": "invariant mass of the secondary vertex [GeV]",
"ylabel_text": "entries",
"format_unit": "2f",
"format_unit_digits": 2,
"bins": 100,
"manual_ranges": [0.,10.],
"inputVar_units": None,
},
"JetSVs_normchi2": {
"displayname": "Normalized $\\chi^2$ of the SV",
"ylabel_text": "entries",
"format_unit": "2f",
"format_unit_digits": 2,
"bins": 30,
"manual_ranges": [0.,30.],
"inputVar_units": None,
},
"JetSVs_ntracks": {
"displayname": "Number of tracks associated to SV",
"ylabel_text": "entries",
"format_unit": "2f",
"format_unit_digits": 2,
"bins": 30,
"manual_ranges": [0.,30.],
"inputVar_units": None,
},
"JetSVs_phirel": {
"displayname": "DeltaPhi(SV, Jet)",
"ylabel_text": "entries",
"format_unit": "2f",
"format_unit_digits": 2,
"bins": 200,
"manual_ranges": [-1.,1.],
"inputVar_units": None,
},
"JetSVs_pt": {
"displayname": "SV $p_T$",
"ylabel_text": "entries",
"format_unit": "2f",
"format_unit_digits": 2,
"bins": 200,
"manual_ranges": [0.,200.],
"inputVar_units": "[GeV]",
},
"JetSVs_ptrel": {
"displayname": "SV $p_T$ relative to parent jet",
"ylabel_text": "entries",
"format_unit": "2f",
"format_unit_digits": 2,
"bins": 10,
"manual_ranges": [0.,10.],
"inputVar_units": None,
},
}
return SV_definitions_dict


def axes_name(var_input):
discname = [
Expand Down Expand Up @@ -6156,6 +6278,7 @@ def axes_name(var_input):
"dr_mujet2",
"dr_mujet3",
"dr_mumu",
"dr_SVjet0",
"ele_dxy",
"ele_dz",
"ele_eta",
Expand Down Expand Up @@ -6210,6 +6333,7 @@ def axes_name(var_input):
"negl_phi",
"negl_pt",
"njet",
"nJetSVs",
"posl_dxy",
"posl_dz",
"posl_eta",
Expand Down Expand Up @@ -6255,6 +6379,8 @@ def axes_name(var_input):
unit = "($\\mu$,soft-$\\mu$)"
elif "mujet" in var:
unit = "($\\mu$,Jet)"
elif "SVjet0" in var:
unit = "(SV,Jet)"
elif "MET_" in var:
obj = "MET"
elif "ele_" in var:
Expand Down