Skip to content
Snippets Groups Projects
Commit 3dcd06f2 authored by Klaus Rabbertz's avatar Klaus Rabbertz
Browse files

Implement separation of first nnlojet combine task and 2nd reweight/recombine step

parent 3270e1c6
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@ from law.util import interruptable_popen
from subprocess import PIPE
from FnloCppreadFinal import FnloCppreadFinal
from Recombine import Recombine
from analysis.framework import Task
......@@ -41,7 +42,8 @@ class Absolute(Task, law.LocalWorkflow):
def workflow_requires(self):
return {
'fnlocppread': FnloCppreadFinal()
'fnlocppread': FnloCppreadFinal(),
'recombine': Recombine()
}
def output(self):
......
......@@ -45,6 +45,9 @@ class Combine(Task):
if (code != 0):
raise Exception('[Combine] ERROR! nnlojet-combine returned error {} and non-zero exit status {}'.format(error, code))
os.chdir(prevdir)
self.output().dump(job_out, formatter="text")
except:
os.chdir(prevdir)
raise
......@@ -7,6 +7,7 @@ from law import util
from subprocess import PIPE
from FnloCppreadFinal import FnloCppreadFinal
from Recombine import Recombine
from analysis.framework import Task
......
......@@ -8,6 +8,7 @@ from law.util import interruptable_popen
from subprocess import PIPE
from FnloCppreadFinal import FnloCppreadFinal
from Recombine import Recombine
from analysis.framework import Task
......@@ -41,7 +42,8 @@ class MergedGridClosure(Task, law.LocalWorkflow):
def workflow_requires(self):
return {
'fnlocppread': FnloCppreadFinal(self)
'fnlocppread': FnloCppreadFinal(self),
'recombine': Recombine()
}
def output(self):
......
[Paths]
raw_dir = .
out_dir = Combined
[Observables]
ALL
#> rebin an observable
# observable > observable_rebin : [x0, x1, x2, ... xN]
[Parts]
#LO
#V
R
RRa
RRb
RV
#VV
[Final]
#LO = LO
R = R
#V = V
RRa = RRa
RRb = RRb
RV = RV
#VV = VV
NLO = LO + R + V
NNLO = LO + R + V + RRa + RRb + RV + VV
NLO_only = R + V
NNLO_only = RRa + RRb + RV + VV
[Options]
#> search the directory structure recursive for data files
# recursive = True
#> output weight tables: for APPLfast
weights = True
#> restrict merge to only certain columns: e.g. drop channel breakdown for performance
# columns = ['tot_scale01', 'tot_scale02', 'tot_scale03', 'tot_scale04', 'tot_scale05', 'tot_scale06', 'tot_scale07']
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment