27import modularAnalysis
as ana
36main = b2.create_path()
42main.add_module(
'EventInfoSetter')
44main.add_module(
'HistoManager', histoFileName=
'CollectorOutput.root')
45main.add_module(
'Gearbox')
46main.add_module(
'Geometry')
47main.add_module(
'ParticleGun', momentumParams=[5.5, 5.50000000001], nTracks=1, pdgCodes=[
53new_main = b2.create_path()
55for mod
in main.modules():
56 if mod.type() ==
"DAFRecoFitter":
57 gbl_mod = b2.register_module(
"GBLRecoFitter2")
58 gbl_mod.param(
"resolveAmbiguities", 1)
59 gbl_mod.param(
"externalIterations", 2)
60 gbl_mod.param(
"gblInternalIterations",
"hh")
61 gbl_mod.set_name(str(mod.name()).replace(
"DAFRecoFitter",
"GBLRecoFitter2"))
62 for par
in mod.available_params():
63 if par.setInSteering
and par.name
not in [
"trackFitType"]:
64 gbl_mod.param(par.name, par.values)
65 print(
"Replacing DAFRecoFitter with name:", mod.name(),
"with GBLRecoFitter using name:", gbl_mod.name())
66 new_main.add_module(gbl_mod)
68 new_main.add_module(mod)
73new_main = b2.create_path()
75for mod
in main.modules():
77 if mod.name() ==
"Combined_DAFRecoFitter":
78 new_main.add_module(
"GBLRecoFitter2", resolveAmbiguities=1, externalIterations=2, gblInternalIterations=
"hh,hh")
80 new_main.add_module(mod)
90 tracks=['RecoTracks'])
96ana.fillParticleList(
"pi+:allCharged",
"", path=main)
127ana.variablesToNtuple(
"pi+:allCharged",
128 variables=track_variables,
129 filename=
'ntuples.root', path=main)
131main.add_module(
'AlignDQM')
132main.add_module(
'TrackDQM')
135main.add_module(
"Progress", maxN=0)
add_reconstruction(path, components=None, pruneTracks=True, add_trigger_calculation=True, skipGeometryAdding=False, trackFitHypotheses=None, addClusterExpertModules=True, with_cdc_cellular_automaton=False, use_second_cdc_hits=False, svd_standalone_mode="VXDTF2", add_muid_hits=False, reconstruct_cdst=None, use_random_numbers_for_hlt_prescale=True, pxd_filtering_offline=False, create_intercepts_for_pxd_ckf=False, append_full_grid_cdc_eventt0=True, legacy_ecl_charged_pid=False, emulate_HLT=False, skip_full_grid_cdc_eventt0_if_svd_time_present=True, switch_off_slow_modules_for_online=False, use_cat_finder=False)
add_simulation(path, components=None, bkgfiles=None, bkgOverlay=True, forceSetPXDDataReduction=False, usePXDDataReduction=True, cleanupPXDDataReduction=True, generate_2nd_cdc_hits=False, simulateT0jitter=True, isCosmics=False, FilterEvents=False, usePXDGatedMode=False, skipExperimentCheckForBG=False, ignoreRunNumberForBG=False, save_slow_pions_in_mc=False, save_all_charged_particles_in_mc=False)