Belle II Software development
CosmicsSimNoBkgTrackingVolume.py
1#!/usr/bin/env python3
2
3
10
11"""
12<header>
13 <output>CosmicsSimNoBkgTrackingVolume.root</output>
14 <contact>arul.prakash@physik.uni-muenchen.de</contact>
15 <cacheable/>
16 <description>
17 This steering file produces 10000 cosmic ray events without background, for the early_phase3 geometry.
18 The particles are created on a cylinder of radius 125cm (right outside the tracking volume).
19 </description>
20</header>
21"""
22
23from basf2 import create_path, statistics, set_random_seed, process
24from simulation import add_simulation
25from validation import statistics_plots, event_timing_plot
26
27set_random_seed(12345)
28
29main = create_path()
30
31# specify number of events to be generated
32main.add_module(
33 "EventInfoSetter", evtNumList=[10000], runList=[1], expList=[1003]
34)
35
36# Generate cosmic events. Note: with default settings the cosmics are
37# generated on a cylinder of 125cm (closely outside the tracking volume)!
38main.add_module("Cosmics")
39
40# detector simulation
41add_simulation(main)
42
43# memory profile
44main.add_module("Profile")
45
46# output
47main.add_module(
48 "RootOutput", outputFileName="../CosmicsSimNoBkgTrackingVolume.root"
49)
50
51main.add_module('Progress')
52process(main)
53
54# Print call statistics
55print(statistics)
56
57statistics_plots(
58 "CosmicsSimNoBkgTrackingVolume_statistics.root",
59 contact="arul.prakash@physik.uni-muenchen.de",
60 job_desc="a standard simulation job with Cosmics events",
61 prefix="CosmicsSimNoBkgTrackingVolume",
62)
63event_timing_plot(
64 "../CosmicsSimNoBkgTrackingVolume.root",
65 "CosmicsSimNoBkgTrackingVolume_statistics.root",
66 contact="arul.prakash@physik.uni-muenchen.de",
67 job_desc="a standard simulation job with Cosmics events",
68 prefix="CosmicsSimNoBkgTrackingVolume",
69)