Belle II Software development
OverlapResiduals_example.py
1#!/usr/bin/env python3
2
3
10
11
21
22import basf2
23from simulation import add_simulation
24from reconstruction import add_reconstruction
25
26# Setting the random seed for particle generation
27basf2.set_random_seed(0)
28
29# Run the modules
30main = basf2.create_path()
31# Create Event information
32main.add_module('EventInfoSetter', evtNumList=[100], runList=[1])
33main.add_module('Gearbox')
34main.add_module('Geometry')
35main.add_module('HistoManager')
36# Performs generation of specific cosmic events
37main.add_module('Cosmics', level=1, ipRequirement=1, cylindricalR=16.0)
38# Performs simulation
39add_simulation(main)
40# Performs reconstruction
41add_reconstruction(main, pruneTracks=False)
42# The main module: studies hits in overlapping sensors of a same VXD layer to monitor the VXD alignment
43main.add_module('OverlapResiduals')
44main.add_module('ProgressBar')
45
46# Process events
47basf2.process(main)
48
49# Print call statistics
50print(basf2.statistics)