10 from ROOT
import Belle2
14 if len(sys.argv) != 3:
15 sys.exit(
"Expected two arguments (input filename + output filename). Exit.")
16 filenameIn = sys.argv[1]
17 filenameOut = sys.argv[2]
19 b2.set_log_level(b2.LogLevel.WARNING)
21 main = b2.create_path()
23 main.add_module(
'RootInput', inputFileName=filenameIn)
24 main.add_module(
'Gearbox')
25 main.add_module(
'Geometry')
28 main.add_module(
'CDCTriggerTSF',
33 main.add_module(
'TRGECLFAM',
39 main.add_module(
'TRGECL',
47 not_triggered = b2.create_path()
49 trigger = main.add_module(
'TRGGDLCosmicRun', BackToBack=
True)
50 trigger.if_false(not_triggered)
52 main.add_module(
'RootOutput', outputFileName=filenameOut)
static std::string findFile(const std::string &path, bool silent=false)
Search for given file or directory in local or central release directory, and return absolute path if...