13b2.set_log_level(b2.LogLevel.INFO)
15input_dir =
'/data/belle2/BG/Jun2014/bg_SVD/'
16output_dir =
'/data/belle2/BG/Jun2014/bg_SVD/output/'
19components.append((
'Coulomb_HER', 100))
20components.append((
'Coulomb_LER', 100))
21components.append((
'RBB_HER', 100))
22components.append((
'RBB_LER', 100))
23components.append((
'Touschek_HER', 100))
24components.append((
'Touschek_LER', 100))
25components.append((
'twoPhoton', 200))
27files = [input_dir + s +
'_' + str(t) +
'us.root' for (s, t)
in components]
29svd_branches = [
'MCParticles',
'MCParticlesToSVDSimHits',
30 'MCParticlesToSVDTrueHits',
'SVDSimHits',
'SVDTrueHits']
32input = b2.register_module(
'RootInput')
33input.param(
'inputFileNames', files)
37histo = b2.register_module(
'HistoManager')
39histo.param(
'histoFileName', output_dir +
'SVDBackgroundHisto.root')
42progress = b2.register_module(
'Progress')
45gearbox = b2.register_module(
'Gearbox')
47geometry = b2.register_module(
'Geometry')
48geometry.param(
'components', [
'SVD'])
51svdDigi = b2.register_module(
'SVDDigitizer')
52svdDigi.param(
'ElectronicEffects',
False)
58svdBkg = b2.register_module(
'SVDBackground')
59svdBkg.param(
'componentNames', [s
for (s, t)
in components])
60svdBkg.param(
'componentTimes', [t
for (s, t)
in components])
61svdBkg.param(
'outputDirectory', output_dir)
63svdBkg.set_log_level(b2.LogLevel.DEBUG)
64svdBkg.set_debug_level(10)
67output = b2.register_module(
'RootOutput')
68output.param(
'outputFileName', output_dir +
'SVDBackgroundOutput.root')
69output.param(
'branchNames', [
'SVDEnergyDepositionEvents',
'SVDNeutronFluxEvents'])
72main = b2.create_path()
77main.add_module(progress)
78main.add_module(gearbox)
79main.add_module(geometry)
80main.add_module(svdDigi)
82main.add_module(svdBkg)
83main.add_module(output)