15 def add_VXDHoughTracking(path,
16 svd_space_points='SVDSpacePoints',
17 svd_clusters='SVDClusters',
18 reco_tracks='VXDHoughTrackingRecoTracks',
19 use_simple_roi_calculation=False,
20 usePXDROIFinderModule=True,
21 pxd_intercepts_name='VXDHoughTrackingPXDIntercepts',
22 rois_name='VXDHoughTrackingROIs'):
24 Convenience function to add the optimized VXDHoughTracking to the path.
25 : param path: The path to add the VXDHoughTracking module to.
26 : param reco_tracks: Name of the StoreArray containing the RecoTracks found by VXDHoughTracking
27 : param use_simple_roi_calculation: Use a simple ROI calculation with a circle extrapolation in r-phi
28 and a straight line extrapolation in theta
29 : param usePXDROIFinderModule: Calculate ROI using the PXDROIFinderModule
30 : param pxd_intercepts_name: Name of the StoreArray containing the PXDIntercepts calculated by VXDHoughTracking.
31 If both simple and advanced ROI finding are selected, the StoreArray for the advanced ROI finding will get
32 the prefix PXDROIFinder,
33 : param rois_name: Name of the StoreArray containing the ROIs calculated by VXDHoughTracking.
34 If both simple and advanced ROI finding are selected, the StoreArray for the advanced ROI finding will get
35 the prefix PXDROIFinder,
38 advancedPXDInterceptsName = pxd_intercepts_name
39 advancedROIName = rois_name
43 if use_simple_roi_calculation
and usePXDROIFinderModule:
44 advancedPXDInterceptsName =
'PXDROIFinder' + advancedPXDInterceptsName
45 advancedROIName =
'PXDROIFinder' + advancedROIName
47 path.add_module(
'VXDHoughTracking',
48 SVDSpacePointStoreArrayName=svd_space_points,
49 SVDClustersStoreArrayName=svd_clusters,
50 finalOverlapResolverNameSVDClusters=svd_clusters,
51 refinerOverlapResolverNameSVDClusters=svd_clusters,
52 RecoTracksStoreArrayName=reco_tracks,
54 relationFilter=
'angleAndTime',
55 relationFilterParameters={
'AngleAndTimeThetaCutDeltaL0': 0.03,
56 'AngleAndTimeThetaCutDeltaL1': 0.10,
57 'AngleAndTimeThetaCutDeltaL2': 0.20,
58 'AngleAndTimeDeltaUTime': 15.,
59 'AngleAndTimeDeltaVTime': 15., },
62 threeHitUseNBestHits=5,
63 fourHitUseNBestHits=3,
64 fiveHitUseNBestHits=2,
67 if usePXDROIFinderModule:
69 if 'SetupGenfitExtrapolation' not in path:
70 path.add_module(
'SetupGenfitExtrapolation').set_name(
'SetupGenfitExtrapolationForVXDHoughTracking')
73 path.add_module(
'DAFRecoFitter', recoTracksStoreArrayName=reco_tracks).set_name(
'VXDHoughTracking-only DAFRecoFitter')
75 path.add_module(
'PXDROIFinder',
76 recoTrackListName=reco_tracks,
77 PXDInterceptListName=advancedPXDInterceptsName,
78 ROIListName=advancedROIName,
86 maxWidthV=0.5,).set_name(
'VXDHoughTrackingPXDROIFinder')