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