26 geometry_xml='testbeam/vxd/2017_geometry.xml',
27 excluded_components=[],
29 additonal_components = []
31 if geometry_version == 0:
32 print(
'WARNING: overriding the setting of parameter geometry_xml! Old value: ' + geometry_xml)
33 geometry_xml =
'testbeam/vxd/2017_geometry.xml'
34 print(
'New value: ' + geometry_xml)
36 if geometry_version == 1:
37 print(
'WARNING: overriding the setting of parameter geometry_xml! Old value: ' + geometry_xml)
38 geometry_xml =
'testbeam/vxd/2017_geometry_1.xml'
39 print(
'New value: ' + geometry_xml)
41 if target
is not None:
42 additonal_components += [target]
45 excluded_components += [
'MagneticField']
47 if field_override
is not None:
48 excluded_components += [
'MagneticField']
49 additonal_components += [
'MagneticFieldConstant']
52 if field_override
is not None:
53 path.add_module(
'Gearbox',
54 fileName=geometry_xml,
55 override=[(
"/DetectorComponent[@name='MagneticFieldConstant']//Z",
59 path.add_module(
'Gearbox', fileName=geometry_xml)
62 path.add_module(
'Geometry', excludedComponents=excluded_components, additionalComponents=additonal_components,
66main = b2.create_path()
67main.add_module(
'RootInput', inputFileName=str(fileIN))
77add_geometry(main, magnet=
not magnet_off, field_override=
None, target=
None, geometry_version=geom)
79main.add_module(
'SVDChargeSharingAnalysis', outputDirName=str(dirOUT), outputRootFileName=
'test.root',
80 useTrackInfo=
True, is2017TBanalysis=
True)
82main.add_module(
'Progress')