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

Tutorial ABCD method with RooParamtricHist #1002

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
2da6de1
adding data for exercise
cesarecazzaniga Sep 6, 2024
46198d5
removing unnecessary data
cesarecazzaniga Sep 6, 2024
5145b1f
updating postfit plotting code
cesarecazzaniga Sep 6, 2024
f318b1f
updating mkdocs.yml with new tutorial
cesarecazzaniga Sep 6, 2024
459538e
adding tutorial docs
cesarecazzaniga Sep 6, 2024
c13b5b9
adapting paths for saving histo and plots to be consistent
cesarecazzaniga Sep 11, 2024
51ff3ce
adapting python commands to run with latest version
cesarecazzaniga Sep 11, 2024
6602287
updating commands tutorial
cesarecazzaniga Sep 11, 2024
258a3ea
adapting python commands to run tutorial
cesarecazzaniga Sep 12, 2024
1fc43e1
updating instructions
cesarecazzaniga Sep 12, 2024
4815410
adding new datacards
cesarecazzaniga Sep 12, 2024
4e89efd
updating code to generate histos
cesarecazzaniga Sep 12, 2024
c54307b
updating documentation to get prefit and postfit plots
cesarecazzaniga Sep 13, 2024
4bbace7
updating images tutorial
cesarecazzaniga Sep 13, 2024
9472d6d
correcting datacards and datacards production code, small fix on sys…
cesarecazzaniga Sep 13, 2024
60cfc57
updating documentation with results
cesarecazzaniga Sep 13, 2024
195f0e3
updating text of tutorial
cesarecazzaniga Sep 16, 2024
6888a45
updates in create_workspace.py
cesarecazzaniga Sep 16, 2024
e7137ab
updating documentation
cesarecazzaniga Sep 16, 2024
baecc6c
changing output file name from FitDiagnostics
cesarecazzaniga Sep 16, 2024
e843d7d
updating results to match the ones of latest version of combine
cesarecazzaniga Sep 16, 2024
75a7b1b
updating text of the tutorial
cesarecazzaniga Sep 17, 2024
4a3146c
freformatting with black
cesarecazzaniga Sep 25, 2024
f2c046c
specifying exception type
cesarecazzaniga Sep 25, 2024
1b4ba21
removing not necessary f-strings
cesarecazzaniga Sep 25, 2024
758d434
Fix image display
Sep 26, 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Combination of mPhi_1500_Catany_2018_CR_B.txt mPhi_1500_Catany_2018_CR_C.txt mPhi_1500_Catany_2018_CR_D.txt mPhi_1500_Catany_2018_SR.txt
imax 4 number of bins
jmax 1 number of processes minus 1
kmax 2 number of nuisance parameters
----------------------------------------------------------------------------------------------------------------------------------
shapes Bkg ch1 param_ws.root wspace:bkg_B
shapes data_obs ch1 param_ws.root wspace:data_obs_B
shapes mPhi_1500 ch1 param_ws.root wspace:mPhi_1500_B
shapes Bkg ch2 param_ws.root wspace:bkg_C
shapes data_obs ch2 param_ws.root wspace:data_obs_C
shapes mPhi_1500 ch2 param_ws.root wspace:mPhi_1500_C
shapes Bkg ch3 param_ws.root wspace:bkg_D
shapes data_obs ch3 param_ws.root wspace:data_obs_D
shapes mPhi_1500 ch3 param_ws.root wspace:mPhi_1500_D
shapes Bkg ch4 param_ws.root wspace:bkg_A
shapes data_obs ch4 param_ws.root wspace:data_obs_A
shapes mPhi_1500 ch4 param_ws.root wspace:mPhi_1500_A
----------------------------------------------------------------------------------------------------------------------------------
bin ch1 ch2 ch3 ch4
observation -1 -1 -1 -1
----------------------------------------------------------------------------------------------------------------------------------
bin ch1 ch1 ch2 ch2 ch3 ch3 ch4 ch4
process mPhi_1500 Bkg mPhi_1500 Bkg mPhi_1500 Bkg mPhi_1500 Bkg
process 0 1 0 1 0 1 0 1
rate -1 1 -1 1 -1 1 -1 1
----------------------------------------------------------------------------------------------------------------------------------
BkgRate lnN - - - - - - - 1.05
lumi lnN 1.016 - 1.016 - 1.016 - 1.016 -
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
imax * number of bins
jmax * number of processes minus 1
kmax * number of nuisance parameters
-----------------------------------------------------------------------------------
shapes data_obs B param_ws.root wspace:data_obs_B
shapes Bkg B param_ws.root wspace:bkg_B
shapes mPhi_1500 B param_ws.root wspace:mPhi_1500_B
-----------------------------------------------------------------------------------
bin B
observation -1
-----------------------------------------------------------------------------------
bin B B
process Bkg mPhi_1500
process 1 0
rate 1 -1
-----------------------------------------------------------------------------------
lumi lnN -- 1.016
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
imax * number of bins
jmax * number of processes minus 1
kmax * number of nuisance parameters
-----------------------------------------------------------------------------------
shapes data_obs C param_ws.root wspace:data_obs_C
shapes Bkg C param_ws.root wspace:bkg_C
shapes mPhi_1500 C param_ws.root wspace:mPhi_1500_C
-----------------------------------------------------------------------------------
bin C
observation -1
-----------------------------------------------------------------------------------
bin C C
process Bkg mPhi_1500
process 1 0
rate 1 -1
-----------------------------------------------------------------------------------
lumi lnN -- 1.016
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
imax * number of bins
jmax * number of processes minus 1
kmax * number of nuisance parameters
-----------------------------------------------------------------------------------
shapes data_obs D param_ws.root wspace:data_obs_D
shapes Bkg D param_ws.root wspace:bkg_D
shapes mPhi_1500 D param_ws.root wspace:mPhi_1500_D
-----------------------------------------------------------------------------------
bin D
observation -1
-----------------------------------------------------------------------------------
bin D D
process Bkg mPhi_1500
process 1 0
rate 1 -1
-----------------------------------------------------------------------------------
lumi lnN -- 1.016
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
imax * number of bins
jmax * number of processes minus 1
kmax * number of nuisance parameters
-----------------------------------------------------------------------------------
shapes data_obs A param_ws.root wspace:data_obs_A
shapes Bkg A param_ws.root wspace:bkg_A
shapes mPhi_1500 A param_ws.root wspace:mPhi_1500_A
-----------------------------------------------------------------------------------
bin A
observation -1
-----------------------------------------------------------------------------------
bin A A
process Bkg mPhi_1500
process 1 0
rate 1 -1
-----------------------------------------------------------------------------------
lumi lnN -- 1.016
BkgRate lnN 1.05 --
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Combination of mPhi_1500_Catany_2018_CR_B.txt mPhi_1500_Catany_2018_CR_C.txt mPhi_1500_Catany_2018_CR_D.txt mPhi_1500_Catany_2018_SR.txt
imax 4 number of bins
jmax 1 number of processes minus 1
kmax 2 number of nuisance parameters
----------------------------------------------------------------------------------------------------------------------------------
shapes Bkg ch1 param_ws.root wspace:bkg_B
shapes data_obs ch1 param_ws.root wspace:data_obs_B
shapes mPhi_1500 ch1 param_ws.root wspace:mPhi_1500_B
shapes Bkg ch2 param_ws.root wspace:bkg_C
shapes data_obs ch2 param_ws.root wspace:data_obs_C
shapes mPhi_1500 ch2 param_ws.root wspace:mPhi_1500_C
shapes Bkg ch3 param_ws.root wspace:bkg_D
shapes data_obs ch3 param_ws.root wspace:data_obs_D
shapes mPhi_1500 ch3 param_ws.root wspace:mPhi_1500_D
shapes Bkg ch4 param_ws.root wspace:bkg_A
shapes data_obs ch4 param_ws.root wspace:data_obs_A
shapes mPhi_1500 ch4 param_ws.root wspace:mPhi_1500_A
----------------------------------------------------------------------------------------------------------------------------------
bin ch1 ch2 ch3 ch4
observation -1 -1 -1 -1
----------------------------------------------------------------------------------------------------------------------------------
bin ch1 ch1 ch2 ch2 ch3 ch3 ch4 ch4
process mPhi_1500 Bkg mPhi_1500 Bkg mPhi_1500 Bkg mPhi_1500 Bkg
process 0 1 0 1 0 1 0 1
rate -1 1 -1 1 -1 1 -1 1
----------------------------------------------------------------------------------------------------------------------------------
BkgRate lnN - - - - - - - 1.05
lumi lnN 1.016 - 1.016 - 1.016 - 1.016 -
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
imax * number of bins
jmax * number of processes minus 1
kmax * number of nuisance parameters
-----------------------------------------------------------------------------------
shapes data_obs B param_ws.root wspace:data_obs_B
shapes Bkg B param_ws.root wspace:bkg_B
shapes mPhi_1500 B param_ws.root wspace:mPhi_1500_B
-----------------------------------------------------------------------------------
bin B
observation -1
-----------------------------------------------------------------------------------
bin B B
process Bkg mPhi_1500
process 1 0
rate 1 -1
-----------------------------------------------------------------------------------
lumi lnN -- 1.016
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
imax * number of bins
jmax * number of processes minus 1
kmax * number of nuisance parameters
-----------------------------------------------------------------------------------
shapes data_obs C param_ws.root wspace:data_obs_C
shapes Bkg C param_ws.root wspace:bkg_C
shapes mPhi_1500 C param_ws.root wspace:mPhi_1500_C
-----------------------------------------------------------------------------------
bin C
observation -1
-----------------------------------------------------------------------------------
bin C C
process Bkg mPhi_1500
process 1 0
rate 1 -1
-----------------------------------------------------------------------------------
lumi lnN -- 1.016
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
imax * number of bins
jmax * number of processes minus 1
kmax * number of nuisance parameters
-----------------------------------------------------------------------------------
shapes data_obs D param_ws.root wspace:data_obs_D
shapes Bkg D param_ws.root wspace:bkg_D
shapes mPhi_1500 D param_ws.root wspace:mPhi_1500_D
-----------------------------------------------------------------------------------
bin D
observation -1
-----------------------------------------------------------------------------------
bin D D
process Bkg mPhi_1500
process 1 0
rate 1 -1
-----------------------------------------------------------------------------------
lumi lnN -- 1.016
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
imax * number of bins
jmax * number of processes minus 1
kmax * number of nuisance parameters
-----------------------------------------------------------------------------------
shapes data_obs A param_ws.root wspace:data_obs_A
shapes Bkg A param_ws.root wspace:bkg_A
shapes mPhi_1500 A param_ws.root wspace:mPhi_1500_A
-----------------------------------------------------------------------------------
bin A
observation -1
-----------------------------------------------------------------------------------
bin A A
process Bkg mPhi_1500
process 1 0
rate 1 -1
-----------------------------------------------------------------------------------
lumi lnN -- 1.016
BkgRate lnN 1.05 --
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading