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

Adding FCC-hh analysis example, code and event weight processing #411

Merged
merged 31 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
6ec4f21
Merge pull request #1 from HEP-FCC/master
bistapf Mar 15, 2021
73416a7
Merge branch 'HEP-FCC:master' into master
bistapf Sep 2, 2022
dfd6f94
Merge branch 'HEP-FCC:master' into master
bistapf Nov 22, 2022
b81129e
Merge branch 'HEP-FCC:master' into master
bistapf Dec 6, 2022
4b70ddc
Merge branch 'HEP-FCC:master' into master
bistapf Apr 19, 2023
30da3fb
Merge branch 'HEP-FCC:master' into master
bistapf Jul 24, 2023
49ea82e
Merge branch 'HEP-FCC:master' into master
bistapf Sep 4, 2024
a411f19
Merge branch 'HEP-FCC:master' into master
bistapf Sep 12, 2024
5168305
Merge branch 'HEP-FCC:master' into master
bistapf Sep 16, 2024
a95fd03
Merge branch 'HEP-FCC:master' into master
bistapf Sep 20, 2024
519bdc8
Merge branch 'HEP-FCC:master' into master
bistapf Oct 4, 2024
e000701
removing outdated FCChh examples that no longer run
bistapf Sep 12, 2024
f62e131
init bbyy working example for FCChh
bistapf Sep 12, 2024
cff6ae3
copy old FCChh analyzers
bistapf Sep 12, 2024
24c60a2
update collection names in get_tagged_jets functions - not functional…
bistapf Sep 12, 2024
743edae
rewrite of get_tagged_jets to account for reversed link direction PID…
bistapf Sep 18, 2024
f77ad29
apply clang format
bistapf Sep 18, 2024
f2c0e1e
first versions of FCChh example final and plotting scripts
bistapf Sep 20, 2024
26b4d2d
add first version of using event weights for scaling etc
bistapf Sep 27, 2024
68c6257
fix function to get_tagged jets following PR#131 in k4SimDelphes
bistapf Oct 10, 2024
81c05ee
clean up debug prints
bistapf Oct 10, 2024
c49d011
add bbyy normalisation and adapt to splitting b and tau-tags in k4sim…
bistapf Oct 14, 2024
1a4f209
FCC-hh bbyy mini example the old way, pre-datasource
bistapf Oct 14, 2024
9181224
clang formatting
bistapf Oct 14, 2024
7d87ba6
add fcchh analysis to test suite
bistapf Oct 15, 2024
4c8fe79
add do_weighted option to config dict, clean up comments
bistapf Oct 15, 2024
48964bd
add printing of selected weighted events
bistapf Oct 15, 2024
94c18c6
fix writing sow to output tree
bistapf Oct 16, 2024
5a159e1
add check that weight column exists, comments from pr411 review
bistapf Oct 16, 2024
2db3f23
add do_weighted option to man page
bistapf Oct 16, 2024
0609fd9
clean up FCChh bbyy example, add example for checking btag efficienci…
bistapf Oct 16, 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
490 changes: 490 additions & 0 deletions analyzers/dataframe/FCCAnalyses/Analysis_FCChh.h

Large diffs are not rendered by default.

3,577 changes: 3,577 additions & 0 deletions analyzers/dataframe/src/Analysis_FCChh.cc

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions examples/FCChh/HH_bbtautau/CMakeLists.txt

This file was deleted.

82 changes: 0 additions & 82 deletions examples/FCChh/HH_bbtautau/analysis.cc

This file was deleted.

77 changes: 0 additions & 77 deletions examples/FCChh/HH_bbtautau/analysis.py

This file was deleted.

47 changes: 0 additions & 47 deletions examples/FCChh/HH_bbtautau/finalSel.py

This file was deleted.

40 changes: 0 additions & 40 deletions examples/FCChh/HH_bbtautau/plots.py

This file was deleted.

26 changes: 0 additions & 26 deletions examples/FCChh/HH_bbtautau/preSel.py

This file was deleted.

50 changes: 50 additions & 0 deletions examples/FCChh/ggHH_bbyy/analysis_final.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#Input directory where the files produced at the pre-selection level are
inputDir = "outputs/FCChh/ggHH_bbyy/presel/"

#Input directory where the files produced at the pre-selection level are
outputDir = "outputs/FCChh/ggHH_bbyy/final/"

processList = {
'pwp8_pp_hh_5f_hhbbyy':{}, #output file from analysis_stage1.py
}

#Link to the dictonary that contains all the cross section informations etc...
procDict = "/eos/experiment/fcc/hh/tutorials/edm4hep_tutorial_data/FCChh_procDict_tutorial.json"
#Note the numbeOfEvents and sumOfWeights are placeholders that get overwritten with the correct values in the samples

#How to add a process that is not in the official dictionary:
# procDictAdd={"pwp8_pp_hh_5f_hhbbyy": {"numberOfEvents": 4980000, "sumOfWeights": 4980000.0, "crossSection": 0.0029844128399999998, "kfactor": 1.075363, "matchingEfficiency": 1.0}}

# Expected integrated luminosity
intLumi = 30e+06 # pb-1

# Whether to scale to expected integrated luminosity
doScale = True

#Number of CPUs to use
nCPUS = 2

#produces ROOT TTrees, default is False
doTree = True

saveTabular = True

# Optional: Use weighted events
do_weighted = True

# Dictionary of the list of cuts. The key is the name of the selection that will be added to the output file
cutList = {
"sel0_myy":"m_yy[0] > 100. && m_yy[0] < 180.",
"sel1_mbb":"(m_yy[0] > 100. && m_yy[0] < 180.) && (m_bb[0] > 80. && m_bb[0] < 200.)",
}

# Dictionary for the output variable/histograms. The key is the name of the variable in the output files. "name" is the name of the variable in the input file, "title" is the x-axis label of the histogram, "bin" the number of bins of the histogram, "xmin" the minimum x-axis value and "xmax" the maximum x-axis value.
histoList = {
"myy":{"name":"m_yy","title":"m_{#gamma#gamma} [GeV]","bin":50,"xmin":0,"xmax":200},
"myy_zoom":{"name":"m_yy","title":"m_{#gamma#gamma} [GeV]","bin":50,"xmin":100,"xmax":180},
"mbb":{"name":"m_bb","title":"m_{bb} [GeV]","bin":50,"xmin":0,"xmax":250},
"mbb_zoom":{"name":"m_bb","title":"m_{b} [GeV]","bin":50,"xmin":80,"xmax":200},
"y1_pT":{"name":"g1_pt","title":"pT_{#gamma1} [GeV]","bin":50,"xmin":0.,"xmax":200.},
"y2_pT":{"name":"g2_pt","title":"pT_{#gamma2} [GeV]","bin":50,"xmin":0.,"xmax":200.},
"pT_y1_vs_y2_2D":{"cols":["g1_pt", "g2_pt"],"title":"m_{Z} - leptonic recoil [GeV]", "bins": [(40,80,100), (100,120,140)]}, # 2D histogram
}
Loading