-
Notifications
You must be signed in to change notification settings - Fork 29
Update yll binning #650
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
Update yll binning #650
Changes from all commits
55436a1
150189d
90eb410
c947d3f
50b474f
eff3a82
650b069
162950d
e486a7c
c6c2197
de9dc1a
db06e92
a388aaf
e0ece9d
9558dcb
56485e3
17db1fa
35cb7d0
f81bbb2
e6750b9
97c6bd9
37e25ca
1872570
6730177
443c3ad
e4d23c2
2f2eb45
6fc0aef
c25296f
0d7d1ba
0e95401
ff7bfdb
1876c9b
ff355ad
782057f
6d32ed2
798d145
a94b163
9b07326
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| +3 −3 | .github/workflows/main.yml | |
| +38 −27 | bin/rabbit_fit.py | |
| +4 −6 | bin/rabbit_limit.py | |
| +6 −13 | bin/rabbit_plot_hists.py | |
| +28 −11 | bin/rabbit_plot_pulls_and_impacts.py | |
| +70 −30 | rabbit/fitter.py | |
| +4 −0 | rabbit/inputdata.py | |
| +7 −0 | rabbit/parsing.py | |
| +97 −12 | rabbit/tensorwriter.py |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -55,7 +55,11 @@ def main(): | |
|
|
||
| pdf = THEORY_PREDS[pred]["pdf"] | ||
|
|
||
| command = f"python {os.environ['WREM_BASE']}/scripts/histmakers/w_z_gen_dists.py --useCorrByHelicityBinning --theoryCorr {pred} -o {args.outdir} --maxFiles -1 -j 300 --filterProcs ZmumuPostVFP WplusmunuPostVFP WminusmunuPostVFP --addHelicityAxis --pdf {pdf}" | ||
| command = f""" | ||
| python {os.environ['WREM_BASE']}/scripts/histmakers/w_z_gen_dists.py --theoryCorr {pred} \ | ||
| --filterProcs 'Zmumu_MiNNLO' 'Wplusmunu_MiNNLO' 'Wminusmunu_MiNNLO' --aggregateGroups Zmumu Wmunu \ | ||
| -o {args.outdir} --maxFiles -1 -j 300 --addHelicityAxis --pdf {pdf} | ||
| """ | ||
| print(f"Running command: {command}") | ||
| os.system(command) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. os.system from a python script to call a python script is kind of criminal...
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. First of all, I didn't add this script. But I find it useful. If the histmaker scripts were written with a main function etc. it could be possible to import and run ... I would leave this for future work.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @kdlong, David speaks the truth: he bears no more guilt than you, it is I who is to be blamed for this terrible sin. Punish me as you see fit |
||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you have to implement it for this PR, but it should be possible to take this from the pdfInfo to avoid it having to be manually synchronised.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we want to keep the rabbit scripts analysis independent so I don't see how the pdfInfo can be used here. Maybe through the specified config file which. But I agree to do this at some later time.