20 from tracking
import add_vxd_track_finding_vxdtf2, add_mc_matcher, add_hit_preparation_modules
22 estimationMethod =
'tripletFit'
23 clusterInfo =
'Average'
25 eval_file_train =
"Upsilon4S_ForMVA_10000Events_w16th_overlay_Bkg.root"
29 name =
'VXDEQE_CollectedTrainingData_Default'
32 b2.set_log_level(b2.LogLevel.INFO)
34 path = b2.create_path()
36 rootInput = b2.register_module(
'RootInput')
37 rootInput.param(
'inputFileName', eval_file_train)
38 path.add_module(rootInput)
41 eventinfoprinter = b2.register_module(
'EventInfoPrinter')
42 path.add_module(eventinfoprinter)
44 path.add_module(
"Gearbox")
45 path.add_module(
"Geometry")
47 add_hit_preparation_modules(path, components=[
'SVD'])
49 add_vxd_track_finding_vxdtf2(path, reco_tracks=
"RecoTracks", components=[
'SVD'], suffix=
"", sectormap_file=sector_map)
51 add_mc_matcher(path, components=[
'SVD'])
53 data = b2.register_module(
'VXDQETrainingDataCollector')
54 data.param(
'EstimationMethod', estimationMethod)
55 data.param(
'ClusterInformation', clusterInfo)
56 data.param(
'TrainingDataOutputName', name +
'.root')
57 data.param(
'SpacePointTrackCandsStoreArrayName',
'SPTrackCands')
58 data.param(
'MCRecoTracksStoreArrayName',
'MCRecoTracks')