Belle II Software  release-05-02-19
EclChargedPidModuleTest.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 """
5 
6 This steering file tests the ECLChargedPIDModule.
7 
8 It must run on DST files, or reduced DSTs containing
9 ECLShowers, Tracks and all relevant relational containers:
10 
11 'Tracks',
12 'TrackFitResults',
13 'ECLClusters',
14 'ECLShowers',
15 'TracksToECLClusters',
16 'TracksToECLShowers',
17 'ECLClustersToECLShowers',
18 'ECLConnectedRegions',
19 'ECLPidLikelihoods',
20 'PIDLikelihoods',
21 'TracksToECLPidLikelihoods',
22 'TracksToPIDLikelihoods',
23 
24 Author: Marco Milesi (marco.milesi@unimelb.edu.au)
25 Year: 2018
26 
27 Usage:
28 
29 basf2 -n N -i /path/to/input/DST/file.root EclChargedPidModuleTest.py
30 
31 """
32 
33 import basf2
34 
35 # Register necessary modules to this path.
36 main_path = basf2.create_path()
37 
38 # Add module to read input *DST file.
39 simpleinput = basf2.register_module('RootInput')
40 main_path.add_module(simpleinput)
41 
42 # Add the module to the path.
43 eclid = basf2.register_module('ECLChargedPID')
44 main_path.add_module(eclid)
45 # Set debug options for this module.
46 eclid.logging.log_level = basf2.LogLevel.DEBUG
47 eclid.logging.debug_level = 20
48 
49 # Print the data model objects in the store.
50 printcolls = basf2.register_module('PrintCollections')
51 main_path.add_module(printcolls)
52 
53 # Start processing events.
54 basf2.process(main_path)
55 
56 # Get some statistics about the booked modules.
57 print(basf2.statistics)
basf2.process
def process(path, max_event=0)
Definition: __init__.py:25