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