27 geometry_xml='testbeam/vxd/2017_geometry.xml',
28 excluded_components=[],
30 additonal_components = []
32 if geometry_version == 0:
33 print(
'WARNING: overriding the setting of parameter geometry_xml! Old value: ' + geometry_xml)
34 geometry_xml =
'testbeam/vxd/2017_geometry.xml'
35 print(
'New value: ' + geometry_xml)
37 if geometry_version == 1:
38 print(
'WARNING: overriding the setting of parameter geometry_xml! Old value: ' + geometry_xml)
39 geometry_xml =
'testbeam/vxd/2017_geometry_1.xml'
40 print(
'New value: ' + geometry_xml)
42 if target
is not None:
43 additonal_components += [target]
46 excluded_components += [
'MagneticField']
48 if field_override
is not None:
49 excluded_components += [
'MagneticField']
50 additonal_components += [
'MagneticFieldConstant']
53 if field_override
is not None:
54 path.add_module(
'Gearbox',
55 fileName=geometry_xml,
56 override=[(
"/DetectorComponent[@name='MagneticFieldConstant']//Z",
60 path.add_module(
'Gearbox', fileName=geometry_xml)
63 path.add_module(
'Geometry', excludedComponents=excluded_components, additionalComponents=additonal_components,
67 main = b2.create_path()
68 main.add_module(
'RootInput', inputFileName=str(fileIN))
78 add_geometry(main, magnet=
not magnet_off, field_override=
None, target=
None, geometry_version=geom)
80 main.add_module(
'SVDChargeSharingAnalysis', outputDirName=str(dirOUT), outputRootFileName=
'test.root',
81 useTrackInfo=
True, is2017TBanalysis=
True)
83 main.add_module(
'Progress')