Skip to content

Commit cc33f03

Browse files
committed
Fixes to config/__init.py and tools/hist_utilities.py so unfolding pull jobs work.
1 parent db255c0 commit cc33f03

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

bin/create_unfolding_pulls_on_DICE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ def main():
7676
)
7777
pull_jobs.append(pull_job)
7878

79-
# Since we are analysing 300 x 300 = 90000 samples and one 10x10 sample
80-
# takes around 7 seconds it will take 1.75h in a single job.
79+
# Since, in testing, one 10x10 sample took around 7 seconds
80+
# and here we are analysing 300 x 300 = 90000 samples, it will take 1.75h in a single job.
8181
# For very fast (~1 min) processing we want at least 100 jobs.
8282
n_jobs_to_run = 100 # this is per pull_job
8383
n_jobs_to_split = 100

config/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,12 @@ def __fill_defaults_7TeV__( self ):
363363
'WPT' : 0
364364
}
365365

366+
self.tau_values_electron = {
367+
}
368+
369+
self.tau_values_muon = {
370+
}
371+
366372
self.categories_and_prefixes['PU_down'] = '_PU_64600mb'
367373
self.categories_and_prefixes['PU_up'] = '_PU_71400mb'
368374

@@ -414,6 +420,12 @@ def __fill_defaults_8TeV__( self ):
414420
'WPT' : 0
415421
}
416422

423+
self.tau_values_electron = {
424+
}
425+
426+
self.tau_values_muon = {
427+
}
428+
417429
self.categories_and_prefixes['PU_down'] = '_PU_65835mb'
418430
self.categories_and_prefixes['PU_up'] = '_PU_72765mb'
419431

tools/hist_utilities.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,12 @@ def copy_style(copy_from, copy_to):
396396
# legend
397397
copy_to.legendstyle = copy_from.legendstyle
398398

399+
def make_line_hist(bin_edges, y_value):
400+
l = Hist(bin_edges, type = 'D')
401+
for i in range(1, len(bin_edges)):
402+
l.SetBinContent(i, y_value)
403+
return l
404+
399405
if __name__ == '__main__':
400406
value_error_tuplelist = [( 0.006480446927374301, 0.0004647547547401945 ),
401407
( 0.012830288388947605, 0.0010071677178938234 ),

0 commit comments

Comments
 (0)