24 basf2.set_log_level(basf2.LogLevel.DEBUG)
25 basf2.set_debug_level(20)
31 main = basf2.create_path()
34 dstfiles = [sys.argv[1]]
38 print(
'Files to be processed:')
43 os.makedirs(sys.argv[0].split(
'.py')[0] +
'/data', exist_ok=
True)
44 os.makedirs(sys.argv[0].split(
'.py')[0] +
'/hist', exist_ok=
True)
47 outputfile = sys.argv[0].split(
'.py')[0] +
'/hist/histo.' + sys.argv[1].split(
'/')[-1].split(ending)[0] +
'.root'
48 dstputfile = sys.argv[0].split(
'.py')[0] +
'/data/dst.' + sys.argv[1].split(
'/')[-1].split(ending)[0] +
'.root'
51 main.add_module(
"RootInput", inputFileNames=dstfiles)
54 main.add_module(
'Gearbox')
55 main.add_module(
'Geometry')
58 main.add_module(
'Progress', maxN=3)
74 main.add_module(
'CDCTriggerRecoMatcher', TrgTrackCollectionName=neurotrigger.hwneurotracks,
75 hitCollectionName=neurotrigger.hwneuroinputsegmenthits, axialOnly=
True)
76 main.add_module(
'CDCTriggerRecoMatcher', TrgTrackCollectionName=neurotrigger.hwsimneurotracks,
77 hitCollectionName=neurotrigger.hwneuroinputsegmenthits, axialOnly=
True)
78 main.add_module(
'CDCTriggerRecoMatcher', TrgTrackCollectionName=neurotrigger.hwneuroinput2dfindertracks,
79 hitCollectionName=neurotrigger.hwneuroinputsegmenthits, axialOnly=
True)
83 main.add_module(
'SetupGenfitExtrapolation')
86 main.add_module(
'HistoManager',
87 histoFileName=outputfile)
88 main.add_module(
'CDCTriggerNeuroDQM',
89 simNeuroTracksName=neurotrigger.hwsimneurotracks,
90 unpackedNeuroInput2dTracksName=neurotrigger.hwneuroinput2dfindertracks,
102 main.add_module(
'RootOutput', outputFileName=dstputfile)
106 print(basf2.statistics)
def add_neurotrigger_hw(path, nntweightfile=None, debug_level=4, debugout=False, **kwargs)