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