Belle II Software development
EclDumpGeometry.py
1#!/usr/bin/env python3
2
3
10
11
24
25import sys
26import basf2 as b2
27from modularAnalysis import inputMdst
28
29# ..path
30mypath = b2.create_path()
31
32# ..override ECL geometry if requested
33newGeom = 0
34narg = len(sys.argv)
35if(narg == 2):
36 newGeom = int(sys.argv[1])
37if(newGeom == 1):
38 b2.conditions.globaltags = ['ecl_alignment']
39if(newGeom == 2):
40 b2.conditions.prepend_testing_payloads("localdb/database.txt")
41print(b2.conditions.globaltags)
42inputMdst(
43 '/group/belle2/dataprod/Data/OfficialReco/proc11/e0010/4S/GoodRuns/r05902/skim/hlt_mumu_2trk/mdst/sub00/*.root',
44 path=mypath)
45
46# ..ECL geometry
47mypath.add_module('Gearbox')
48mypath.add_module('Geometry')
49mypath.add_module('ECLDumpGeometry')
50
51# ..Process the events
52b2.process(mypath)
53print(b2.statistics)