27 from setup_modules
import setup_VXDTF2
32 arg_parser = argparse.ArgumentParser(description=
'VXDTF2 evaluation:\
33 Applies VXDTF2 to selected dataset \n\
34 Usage: basf2 testVXDTF2.py -i <inputFileName> -- --secmap <secmapFile>')
36 arg_parser.add_argument(
'--secmap',
'-s', type=str,
37 help=
'Inclusion of the root file containing the trained SecMap for the application of the VXDTF2.')
39 arguments = arg_parser.parse_args(sys.argv[1:])
40 sec_map_file = arguments.secmap
48 setup_name =
'SVDOnlyDefault'
50 setup_name =
'SVDPXDDefault'
55 b2.set_log_level(b2.LogLevel.ERROR)
56 b2.log_to_file(
'logVXDTF2Evaluation.log', append=
False)
60 path = b2.create_path()
63 rootInput = b2.register_module(
'RootInput')
64 path.add_module(rootInput)
67 eventinfoprinter = b2.register_module(
'EventInfoPrinter')
68 path.add_module(eventinfoprinter)
71 gearbox = b2.register_module(
'Gearbox')
72 path.add_module(gearbox)
76 geometry = b2.register_module(
'Geometry')
77 geometry.param(
'components', [
'BeamPipe',
78 'MagneticFieldConstant4LimitedRSVD',
81 path.add_module(geometry)
84 setup_VXDTF2(path=path,
86 sec_map_file=sec_map_file,
87 setup_name=setup_name,
88 overlap_filter=
'hopfield',
89 quality_estimator=
'circleFit')
92 genFitExtrapolation = b2.register_module(
'SetupGenfitExtrapolation')
93 path.add_module(genFitExtrapolation)
95 fitter = b2.register_module(
'DAFRecoFitter')
96 path.add_module(fitter)
97 path.add_module(
'TrackCreator', pdgCodes=[211, 13, 321, 2212])
100 mcTrackMatcherModule = b2.register_module(
'MCRecoTracksMatcher')
101 mcTrackMatcherModule.param({
104 'UsePXDHits': usePXD,
105 'mcRecoTracksStoreArrayName':
'MCRecoTracks',
106 'MinimalPurity': .66,
108 path.add_module(mcTrackMatcherModule)
111 trackingValidationModule = CombinedTrackingValidationModule(
114 output_file_name=
"VXDTF2Validation.root",
116 path.add_module(trackingValidationModule)
118 path.add_module(
'Progress')