Commit 4f0fd61a authored by Ross John Hunter's avatar Ross John Hunter
Browse files

Update arnau option file for new HltEfficiencyChecker

parent b0371d03
Pipeline #1702758 failed with stage
in 40 seconds
......@@ -12,14 +12,20 @@
Run like any other options file:
./Moore/run gaudirun.py hlt2_example.py
./MooreAnalysis/run gaudirun.py MooreAnalysis/HltEfficiencyChecker/options/arnau_hlt2_example.py
"""
from Moore import options, run_moore
from RecoConf.reco_objects_from_file import stateProvider_with_simplified_geom
import os
from Moore import options
from HltEfficiencyChecker.config import run_moore_with_tuples
from Hlt2Conf.lines.b_to_open_charm import all_lines
def make_lines():
return [builder() for builder in all_lines.values()]
decay = (
"${B0}[[B0]CC => ${Dstar}(D*(2007)~0 -> (D~0 => ${Kplus}K+ ${piminus}pi-) (pi0 -> ${gamma0}gamma ${gamma1}gamma) ) ${Kplus_slow}K+ ${piminus_slow}pi-]CC"
)
input_files = [
options.input_files = [
'root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/XDST/00102881/0000/00102881_00000001_2.xdst',
'root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/XDST/00102881/0000/00102881_00000002_2.xdst',
'root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/XDST/00102881/0000/00102881_00000003_2.xdst',
......@@ -106,34 +112,22 @@ input_files = [
'root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/XDST/00102881/0000/00102881_00000093_2.xdst'
]
#input_files = ['/afs/cern.ch/work/a/abrossag/private/TestDstUpgrade/00102881_00000008_2.xdst']
options.input_files = input_files
options.input_type = 'ROOT'
options.input_raw_format = 4.3
# When running from Upgrade MC, must use the post-juggling locations of the raw
# event
###############################################################################
# Set a reasonable number of events
###############################################################################
# Leave the number of events to HltEfficiencyChecker - FIXME needs to be configurable.
#options.evt_max = -1
options.evt_max = 1000
options.simulation = True
options.data_type = 'Upgrade'
options.dddb_tag = 'dddb-20171126'
options.conddb_tag = 'sim-20171127-vc-md100'
# Leave the naming to HltEfficiencyChecker
#options.output_file = 'hlt2_exampleDown.dst'
options.output_type = 'ROOT'
options.lines_maker = make_lines
options.ntuple_file = "eff_ntuple.root"
# Specify the decay descriptor - needed for MCDecayTreeTuple in the tuple-making script.
os.environ[
"DECAYDESC"] = "[[B0]CC => ^(D*(2007)~0 -> (D~0 => K+ pi-) (pi0 -> gamma gamma) ) ^K+ ^pi-]CC"
# needed to run over FTv6 data
from RecoConf.hlt1_tracking import default_ft_decoding_version
default_ft_decoding_version.global_bind(
value=4)
#def make_lines():
# return [builder() for builder in all_lines.values()]
#public_tools = [stateProvider_with_simplified_geom()]
#run_moore(options, make_lines, public_tools)
# TODO stateProvider_with_simplified_geom must go away from option files
from RecoConf.reco_objects_from_file import stateProvider_with_simplified_geom
run_moore_with_tuples(
options, decay, public_tools=[stateProvider_with_simplified_geom()])
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment