|
| | outfilename = sys.argv[1] |
| |
| float | mass = 0.511e-3 |
| |
| int | pz = -10 |
| |
| | E = np.sqrt(mass**2 + pz**2) |
| |
| int | y1 = 110 |
| |
| int | y2 = 180 |
| |
| int | z = -64000 |
| |
| | writer = HepMC3.WriterAscii( outfilename ) |
| |
| | particle_in1 = HepMC3.GenParticle(HepMC3.FourVector(0, 0, pz, E)) |
| |
| | particle_out1 = HepMC3.GenParticle(HepMC3.FourVector(0, 0, pz, E)) |
| |
| | particle_in2 = HepMC3.GenParticle(HepMC3.FourVector(0, 0, pz, E)) |
| |
| | particle_out2 = HepMC3.GenParticle(HepMC3.FourVector(0, 0, pz, E)) |
| |
| | vertex1 = HepMC3.GenVertex(HepMC3.FourVector(0., y1, z, 0.)) |
| |
| | vertex2 = HepMC3.GenVertex(HepMC3.FourVector(0., y2, z, 0.)) |
| |
| | event = HepMC3.GenEvent( HepMC3.Units.GEV, HepMC3.Units.MM ) |
| |