File indexing completed on 2025-01-18 09:12:09
0001
0002 from pathlib import Path
0003
0004 import acts
0005 import acts.examples
0006 from acts.examples.simulation import addPythia8
0007
0008 u = acts.UnitConstants
0009
0010
0011 def runPythia8(
0012 outputDir,
0013 outputRoot: bool = True,
0014 outputCsv: bool = True,
0015 s: acts.examples.Sequencer = None,
0016 ):
0017
0018 rnd = acts.examples.RandomNumbers()
0019 outputDir = Path(outputDir)
0020
0021
0022 s = s or acts.examples.Sequencer(
0023 events=10, numThreads=-1, logLevel=acts.logging.INFO
0024 )
0025
0026 addPythia8(
0027 s,
0028 rnd=rnd,
0029 outputDirCsv=outputDir / "csv" if outputCsv else None,
0030 outputDirRoot=outputDir if outputRoot else None,
0031 )
0032
0033 return s
0034
0035
0036 if "__main__" == __name__:
0037 runPythia8(Path.cwd()).run()