10from basf2
import Path, process, AfterConditionPath
11from modularAnalysis
import applyEventCuts
16main.add_module(
'RootInput')
20event_cuts =
"[SoftwareTriggerResult(software_trigger_cut&skim&accept_b_neutral)]"
21event_cuts +=
" or [SoftwareTriggerResult(software_trigger_cut&skim&accept_b_charged)]"
22event_cuts +=
" or [SoftwareTriggerResult(software_trigger_cut&skim&accept_dstar_1)]"
23event_cuts +=
" or [SoftwareTriggerResult(software_trigger_cut&skim&accept_dstar_2)]"
24event_cuts +=
" or [SoftwareTriggerResult(software_trigger_cut&skim&accept_dstar_3)]"
25event_cuts +=
" or [SoftwareTriggerResult(software_trigger_cut&skim&accept_dstar_4)]"
26event_cuts +=
" or [SoftwareTriggerResult(software_trigger_cut&skim&accept_jpsi)]"
27event_cuts +=
" or [SoftwareTriggerResult(software_trigger_cut&skim&accept_kshort)]"
28applyEventCuts(event_cuts, path=main)
30trigger_skim = main.add_module(
"TriggerSkim", triggerLines=[
31 "software_trigger_cut&skim&accept_b_neutral",
32 "software_trigger_cut&skim&accept_b_charged",
33 "software_trigger_cut&skim&accept_dstar_1",
34 "software_trigger_cut&skim&accept_dstar_2",
35 "software_trigger_cut&skim&accept_dstar_3",
36 "software_trigger_cut&skim&accept_dstar_4",
38 "software_trigger_cut&skim&accept_kshort",
40trigger_skim.param(
"expectedResult", 1)
41trigger_skim.param(
"logicMode",
"or")
42trigger_skim.if_value(
"==0", Path(), AfterConditionPath.END)
57masterclass = main.add_module(
'MasterClass')
59 masterclass.param(
'outputFileName', argv[1])
61main.add_module(
'Progress')