Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
2f91d15
change tauscan pltName if using unfolded
DouglasBurns Nov 21, 2016
6006c0b
Break properly if tau does not need to be calc
DouglasBurns Nov 22, 2016
68fa136
add printouts
DouglasBurns Nov 4, 2016
8067a15
add TTBarMor17 samnple
DouglasBurns Nov 7, 2016
a54e7b4
Remove FractionFitter/SimultaneousFit methods, move 01_fit_results to…
DouglasBurns Oct 14, 2016
e1d7939
Add in temporary full systematic list[WIP], remove deprecaated func f…
DouglasBurns Oct 18, 2016
cfa1872
Remove metType from paths, use temp syst list
DouglasBurns Oct 18, 2016
bbe7c9c
Remove met_type, rename outputfiles so they are easier to find by eye
DouglasBurns Oct 18, 2016
d7fc868
Use new naming scheme. Remove old plotting scripts
DouglasBurns Oct 18, 2016
6289fea
Add new plots showing largest systematics
DouglasBurns Oct 18, 2016
0879f09
get_files_in_path glob->os.walk
DouglasBurns Oct 18, 2016
680013a
update path to new ntuples. remove amcHerwig
DouglasBurns Oct 18, 2016
373e9ec
change unfolding config to find files
DouglasBurns Nov 4, 2016
2af5bcf
Fix for 00. NJet now skips resolution properly
DouglasBurns Nov 22, 2016
c694f55
01 opt_parser->arg_parser if we want to go beyond python2.7
DouglasBurns Nov 22, 2016
e598c54
--test now does central only
DouglasBurns Nov 22, 2016
3aca0a3
Fixed debug argument
DouglasBurns Nov 23, 2016
ceb5b71
Move a couple legacy scripts to legacy/
DouglasBurns Nov 23, 2016
f4ed82f
add TopEtaReweighting to list of unfolding matrices to be done, updat…
DouglasBurns Nov 23, 2016
66e1bde
00_pickbins - resolution now initialised
DouglasBurns Nov 24, 2016
4c66fb8
Start on new 01 config
DouglasBurns Nov 23, 2016
6e53db4
Srtart reworking the normalisation and measurement script
DouglasBurns Nov 24, 2016
22b794f
Test config
DouglasBurns Nov 24, 2016
92d8bb1
Very basic normalisation calc working
DouglasBurns Nov 24, 2016
4d22335
Add in datadriven qcd
DouglasBurns Nov 25, 2016
bfc315e
Working config creater
DouglasBurns Nov 28, 2016
234d90f
Remove Lepton weights when calculating datadriven qcd
DouglasBurns Nov 28, 2016
f9407b1
Rewriting xsection config - in progress
DouglasBurns Nov 28, 2016
4ca68fc
Scaling will always be > 0
DouglasBurns Nov 28, 2016
18d1322
Add MET uncertainty branches
DouglasBurns Nov 28, 2016
daab8ea
Normalisatoin script now reads all configs
DouglasBurns Nov 28, 2016
06972d9
Add in running over single var. Now saves wrt to PS too
DouglasBurns Nov 29, 2016
0bf716d
JER and JES samples can now access their trees
DouglasBurns Nov 29, 2016
3fdb1d8
Outputs to correct Testing folder structure
DouglasBurns Nov 29, 2016
18cab24
Remove Normalisation class.
DouglasBurns Nov 30, 2016
4b8907a
Add selection to config such that abs(lepton_eta) histogram can be drawn
DouglasBurns Nov 30, 2016
1d19b78
Add selection to tree.Draw(), add some comments
DouglasBurns Nov 30, 2016
058531f
WIP what is actually needed in the xsection config?
DouglasBurns Nov 30, 2016
99f73bc
Ouput to pandas
DouglasBurns Dec 5, 2016
23ed2b9
Adds MC lumi scaling to config creation
DouglasBurns Dec 5, 2016
3f59bde
correctly find files, update lumi scalin
DouglasBurns Dec 5, 2016
2ea1335
02 options->args
DouglasBurns Dec 5, 2016
7fd4f98
rearrange02. Muon channel only for now - Need to deal with combined B…
DouglasBurns Dec 6, 2016
7216cf4
Make pandas tuple writer/reader more generic
DouglasBurns Dec 6, 2016
4c4d555
path_to_JSON -> path_to_DF
DouglasBurns Dec 9, 2016
9248706
measurementsandprefixes->measurements
DouglasBurns Dec 9, 2016
69e28a3
Move a few more scripts to legacy/
DouglasBurns Dec 9, 2016
dc54505
00 OptionParser->ArgumentParser
DouglasBurns Dec 9, 2016
0b40544
00 Add comments
DouglasBurns Dec 9, 2016
96d9ed8
Add symmetric arg for tuple to graph (v,e)->graph as well as (v,e,e)-…
DouglasBurns Dec 12, 2016
1ac44b5
04 to work of pandas DF.
DouglasBurns Dec 12, 2016
484d5ef
path_to_JSON->path_to_DF
DouglasBurns Dec 12, 2016
06d6101
mvoe argparser to function and update
DouglasBurns Dec 12, 2016
fd3d8e5
remove btagbin for now
DouglasBurns Dec 12, 2016
5fcf34c
Add comments
DouglasBurns Dec 12, 2016
f92a921
Remove some imports
DouglasBurns Dec 12, 2016
cd1b0b5
Add argument parser function
DouglasBurns Dec 15, 2016
2e2b150
Remove offline weight bug where pu weight was counted twice
DouglasBurns Dec 15, 2016
b1de099
Update ptreweighting
DouglasBurns Dec 15, 2016
0d1be61
Remove comments and TESTING
DouglasBurns Dec 15, 2016
e32cce5
Remove dependence on singly used list
DouglasBurns Dec 16, 2016
fb37330
opts->args
DouglasBurns Dec 16, 2016
35ddac4
remove normalise_to_fit
DouglasBurns Dec 16, 2016
27e3c09
remove met_type
DouglasBurns Dec 16, 2016
2d36804
remove path_to_JSON
DouglasBurns Dec 16, 2016
b27a3e3
Fix some bugs and rearrange a little
DouglasBurns Dec 16, 2016
8108aa9
rename scripts in unfolding_tests
DouglasBurns Jan 6, 2017
6e533a3
hopefully make tarring of dps work
DouglasBurns Jan 6, 2017
80ffd2c
rename new config creater. mv old to legacy
DouglasBurns Jan 6, 2017
e22eb04
Remove TESTING/ directory
DouglasBurns Jan 6, 2017
98de780
Default the new norm script. move previous to legacy
DouglasBurns Jan 6, 2017
a6ffc4c
measurement2.py -> measurent.py
DouglasBurns Jan 6, 2017
98bc8b1
Emyrs DPS additions incorporated
DouglasBurns Jan 10, 2017
fa78be7
Fix argument bug in 01 submission
DouglasBurns Jan 10, 2017
cbb68f8
Rate changing systematic now only apply to associate sample - not all…
DouglasBurns Jan 10, 2017
9759c7e
Fix some xsection calc functions, Add actual data before fake subtrac…
DouglasBurns Jan 10, 2017
e630d35
Remove TESTNING path
DouglasBurns Jan 10, 2017
cbe64d4
update x_0nb_ files
DouglasBurns Jan 13, 2017
9d89dd7
Add alphaS and matching uncertainties
DouglasBurns Jan 13, 2017
1615b8d
Fix rate uncertainties. Change QCD rate now only applies to QCD sampl…
DouglasBurns Jan 13, 2017
1c54bf3
Fix x axis labels on multiple subplots
DouglasBurns Jan 13, 2017
6852439
Temporarily increase storage precision while i figure out what going …
DouglasBurns Jan 13, 2017
a945560
More Colours, Plot Cosmetics
DouglasBurns Jan 13, 2017
718c4ab
Remove TTbar new tune generator for spring16 MC
DouglasBurns Jan 13, 2017
a79d3b2
pdate tau finderto read from dataframes
DouglasBurns Jan 13, 2017
8778e34
Adding logZ to colorbar on binning plots
DouglasBurns Jan 13, 2017
1af5820
Fix QCD uncertainty treamtent
EmyrClement Jan 17, 2017
35a944f
Add uncertainties in quadrature in fix_overflow
EmyrClement Jan 17, 2017
1031109
double length of control plots
DouglasBurns Jan 18, 2017
02b2fab
do not calculate all qcd control plots multiple times
DouglasBurns Jan 18, 2017
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
3 changes: 2 additions & 1 deletion bin/x_04b_all_vars
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ i=0
echo "Visible phase space"
for var in MET HT ST WPT lepton_pt abs_lepton_eta NJets; do
echo "Plotting diff. x-section for distribution: $var"
nohup time python dps/analysis/xsection/04_make_plots_matplotlib.py --visiblePS --show-generator-ratio -v $var -c 13 -p data/normalisation/background_subtraction/ -o plots/background_subtraction &> logs/04_${var}_plot_Vis_13TeV.log & # -a <--add this option for additional plots
# nohup time python dps/analysis/xsection/04_make_plots_matplotlib.py --visiblePS --show-generator-ratio -v $var -c 13 -p data/normalisation/background_subtraction/ -o plots/background_subtraction &> logs/04_${var}_plot_Vis_13TeV.log & # -a <--add this option for additional plots
nohup time python dps/analysis/xsection/04_make_plots_matplotlib.py --visiblePS -v $var -c 13 -p data/normalisation/background_subtraction/ -o plots/background_subtraction &> logs/04_${var}_plot_Vis_13TeV.log & # -a <--add this option for additional plots
let i+=1
shallIwait $i $N_JOBS
done
Expand Down
2 changes: 1 addition & 1 deletion bin/x_05b_all_vars
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ echo "Now visible phase space"

for var in MET HT ST WPT lepton_pt abs_lepton_eta NJets; do
echo "Tabulating diff. x-section for distribution: $var"
nohup time python dps/analysis/xsection/05_make_tables.py -v $var -c 13 -p data/normalisation/background_subtraction/ -a --visiblePS -o tables/background_subtraction &> logs/05_${var}_table_13TeV.log &
nohup time python dps/analysis/xsection/05_make_systematic_plots.py -v $var --visiblePS &> logs/05_${var}_table_13TeV.log &
let i+=1
if (( $i % N_JOBS == 0 ))
then
Expand Down
396 changes: 246 additions & 150 deletions dps/analysis/BLTUnfold/produceUnfoldingHistograms.py

Large diffs are not rendered by default.

28 changes: 26 additions & 2 deletions dps/analysis/BLTUnfold/runJobsCrab.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,45 @@
'--centreOfMassEnergy 13 -f',

'--centreOfMassEnergy 13 -s central',
# '--centreOfMassEnergy 13 -s central --topPtReweighting 1',
# '--centreOfMassEnergy 13 -s central --topPtReweighting -1',
# '--centreOfMassEnergy 13 -s central --topEtaReweighting 1',
# '--centreOfMassEnergy 13 -s central --topEtaReweighting -1',

# '--centreOfMassEnergy 13 -s amcatnlo',
# '--centreOfMassEnergy 13 -s madgraph',
'--centreOfMassEnergy 13 -s powhegherwigpp',
# # '--centreOfMassEnergy 13 -s amcatnloherwigpp',

# # ME scale weights
# Top pt
'--centreOfMassEnergy 13 -s topPtSystematic',

# Underlying event samples
'--centreOfMassEnergy 13 -s ueup',
'--centreOfMassEnergy 13 -s uedown',

# isr/fsr variations
'--centreOfMassEnergy 13 -s isrup',
'--centreOfMassEnergy 13 -s isrdown',
'--centreOfMassEnergy 13 -s fsrup',
'--centreOfMassEnergy 13 -s fsrdown',

# ME scale weights
'--centreOfMassEnergy 13 --muFmuRWeight 1',
'--centreOfMassEnergy 13 --muFmuRWeight 2',
'--centreOfMassEnergy 13 --muFmuRWeight 3',
'--centreOfMassEnergy 13 --muFmuRWeight 4',
'--centreOfMassEnergy 13 --muFmuRWeight 6',
'--centreOfMassEnergy 13 --muFmuRWeight 8',

# # # Top mass
'--centreOfMassEnergy 13 --alphaSWeight 0',
'--centreOfMassEnergy 13 --alphaSWeight 1',

# ME-PS matching weight
'--centreOfMassEnergy 13 --matchingWeight 9',
'--centreOfMassEnergy 13 --matchingWeight 18',

# # Top mass
'--centreOfMassEnergy 13 -s massup',
'--centreOfMassEnergy 13 -s massdown',

Expand Down
2 changes: 1 addition & 1 deletion dps/analysis/BLTUnfold/submitBLTUnfold.description
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ request_memory=500
# use the ENV that is provided
getenv = true

queue 138
queue 142
Binary file removed dps/analysis/search/test.root
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
from dps.utils.file_utilities import make_folder_if_not_exists

com = 13
fitVars = "M3_angle_bl"

config = XSectionConfig( com )

make_folder_if_not_exists('config/unfolding/FullPS/')
# make_folder_if_not_exists('config/unfolding/FullPS/')
make_folder_if_not_exists('config/unfolding/VisiblePS/')

for channel in config.analysis_types.keys():
Expand Down Expand Up @@ -48,7 +46,7 @@
histogramTemplate = "%s_%s" % ( variable, channel )
outputJson = {
"output_folder": "plots/unfolding/bestRegularisation/VisiblePS",
"output_format": ["png", "pdf"],
"output_format": ["pdf"],
"centre-of-mass energy" : com,
"channel": "%s" % channel,
"variable": "%s" % variable,
Expand All @@ -66,7 +64,7 @@
# "histogram": "%s/measuredVis" % ( histogramTemplate ),
},
"data" : {
"file": "data/normalisation/background_subtraction/%sTeV/%s/VisiblePS/central/normalisation_%s_patType1CorrectedPFMet.txt" % ( com, variable, channel),
"file": "data/normalisation/background_subtraction/%sTeV/%s/VisiblePS/central/normalisation_%s.txt" % ( com, variable, channel),
"histogram": "TTJet"
},
}
Expand Down
Loading