30 parser = argparse.ArgumentParser(description=
"NoKickCuts evaluation module")
33 dest=
'use_validation',
37 help=
'print validation plots')
44 help=
'definition of the cuts with the double-gaussian fit')
46 args = parser.parse_args()
47 use_Validation = args.use_validation
48 use_fit = args.use_fitMethod
51 main_path = b2.create_path()
53 mctrackfinder = b2.register_module(
'TrackFinderMCTruthRecoTracks')
54 mctrackfinder.param(
'WhichParticles', [
'SVD'])
55 mctrackfinder.param(
'EnergyCut', 0)
57 gearbox = b2.register_module(
'Gearbox')
59 geometry = b2.register_module(
'Geometry')
61 rootinput = b2.register_module(
'RootInput')
64 progressbar = b2.register_module(
'ProgressBar')
66 mctrackmatcher = b2.register_module(
'MCRecoTracksMatcher')
67 mctrackmatcher.param(
'UseCDCHits',
False)
68 mctrackmatcher.param(
'UseSVDHits',
True)
69 mctrackmatcher.param(
'UsePXDHits',
True)
70 mctrackmatcher.param(
'mcRecoTracksStoreArrayName',
'MCRecoTracks')
72 NoKickCuts = b2.register_module(
'NoKickCutsEval')
73 NoKickCuts.param(
'useValidation', use_Validation)
74 NoKickCuts.param(
'useFitMethod', use_fit)
77 main_path.add_module(rootinput)
78 main_path.add_module(gearbox)
79 main_path.add_module(geometry)
80 main_path.add_module(mctrackfinder)
81 main_path.add_module(NoKickCuts)
82 main_path.add_module(progressbar)