10 from basf2
import Path, process, AfterConditionPath
11 from modularAnalysis
import applyEventCuts
16 main.add_module(
'RootInput')
20 event_cuts =
"[SoftwareTriggerResult(software_trigger_cut&skim&accept_b_neutral)]"
21 event_cuts +=
" or [SoftwareTriggerResult(software_trigger_cut&skim&accept_b_charged)]"
22 event_cuts +=
" or [SoftwareTriggerResult(software_trigger_cut&skim&accept_dstar_1)]"
23 event_cuts +=
" or [SoftwareTriggerResult(software_trigger_cut&skim&accept_dstar_2)]"
24 event_cuts +=
" or [SoftwareTriggerResult(software_trigger_cut&skim&accept_dstar_3)]"
25 event_cuts +=
" or [SoftwareTriggerResult(software_trigger_cut&skim&accept_dstar_4)]"
26 event_cuts +=
" or [SoftwareTriggerResult(software_trigger_cut&skim&accept_jpsi)]"
27 event_cuts +=
" or [SoftwareTriggerResult(software_trigger_cut&skim&accept_kshort)]"
28 applyEventCuts(event_cuts, path=main)
30 trigger_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",
40 trigger_skim.param(
"expectedResult", 1)
41 trigger_skim.param(
"logicMode",
"or")
42 trigger_skim.if_value(
"==0", Path(), AfterConditionPath.END)
57 masterclass = main.add_module(
'MasterClass')
59 masterclass.param(
'outputFileName', argv[1])
61 main.add_module(
'Progress')