12 import modularAnalysis
as ma
14 import reconstruction
as re
15 from daqdqm.commondqm
import add_common_dqm
20 b2.set_log_level(b2.LogLevel.INFO)
22 path =
"/group/belle2/dataprod/Data/Raw/e0018/r01553/sub00/"
23 files = path+
"physics.0018.01553.HLT8.f0000*.root"
26 main = b2.create_path()
29 b2.conditions.globaltags = [
'online',
30 'dp_recon_release6_patch',
31 'ecl_release06_forOnline']
33 main.add_module(
"RootInput", inputFileNames=files)
34 main.add_module(
"HistoManager", histoFileName=
"KLMDQMHistograms.root")
35 main.add_module(
'Gearbox')
36 main.add_module(
'Geometry')
37 raw.add_unpackers(main)
38 re.add_reconstruction(main, add_muid_hits=
True)
40 software_trigger =
"software_trigger_cut&skim&accept_mumutight"
41 cut_string = f
'SoftwareTriggerResult({software_trigger})>0'
43 add_common_dqm(main, dqm_environment=
'HLT', dqm_mode=
'dont_care')
44 ma.fillParticleList(
'mu+:all', cut=
"", path=main)
45 ma.cutAndCopyList(
"mu+:cut",
"mu+:all", cut_string, path=main)
47 collector = b2.register_module(
'KLMStripEfficiencyCollector')
48 collector.param(
'Debug',
True)
49 collector.param(
'DebugFileName',
'KLMStripEffCollector_debugFile.root')
50 collector.param(
'MuonListName',
'mu+:cut')
51 main.add_module(collector)
53 klm2 = b2.register_module(
'KLMDQM2')
56 main.add_module(
'Progress')
61 b2.process(main, max_event=1000)