Belle II Software development
EclChargedPidModuleTest.py
1#!/usr/bin/env python3
2
3
10
11"""This steering file tests the 'ECLChargedPID' module.
12
13Input:
14 It must run on DST files, or reduced DSTs containing
15 ECLShowers, Tracks, and all relevant relational containers:
16
17 - Tracks
18 - TrackFitResults
19 - ECLClusters
20 - ECLShowers
21 - TracksToECLClusters
22 - TracksToECLShowers
23 - ECLClustersToECLShowers
24 - ECLConnectedRegions
25 - ECLPidLikelihoods
26 - PIDLikelihoods
27 - TracksToECLPidLikelihoods
28 - TracksToPIDLikelihoods
29Usage:
30 $ basf2 -i <path_to_input_file> -n <number_of_events>
31 EclChargedPidModuleTest.py
32"""
33
34import basf2 as b2
35
36# Create path. Register necessary modules to this path.
37mainPath = b2.create_path()
38
39# Register and add 'RootInput' module to read input DST file.
40inputFile = b2.register_module('RootInput')
41mainPath.add_module(inputFile)
42
43# Register and add 'ECLChargedPID' module
44eclChargedPID = b2.register_module('ECLChargedPID')
45mainPath.add_module(eclChargedPID)
46
47# Set debug options for 'ECLChargedPID' module.
48eclChargedPID.logging.log_level = b2.LogLevel.DEBUG
49eclChargedPID.logging.debug_level = 20
50
51"""Register and add 'PrintCollections' module.
52 This prints the data model objects in the store.
53"""
54printCollections = b2.register_module('PrintCollections')
55mainPath.add_module(printCollections)
56
57# Process the events and print call statistics
58mainPath.add_module('Progress')
59b2.process(mainPath)
60print(b2.statistics)