def test_Pythonization_GenRunInfo(): ri = hm.GenRunInfo() a = hm.GenRunInfo.ToolInfo() a.name = "aaa" b = hm.GenRunInfo.ToolInfo() c = hm.GenRunInfo.ToolInfo() b.name = "foo" c = ("foo", "1.0", "bar") return 0
def make_hepmc(self, parse): #HepMC3 output global hepmc from pyHepMC3 import HepMC3 as hepmc nam = parse.get("main", "nam").strip("\"'") + ".hepmc" print("HepMC3 output name:", nam) self.hepmc_out = hepmc.WriterAscii(nam, hepmc.GenRunInfo()) self.hepmc_ievt = 0