3 loE = (
float(monmass) + 10.)*1000.
4 hiE = (
float(monmass) + 6000.)*1000.
5 MeVmass=
float(monmass)*1000.
9 evgenConfig.description =
"Single magnetic monopole generation for Mass=%s, Gcharge=%s in MC15" % (monmass,gcharge)
10 evgenConfig.keywords = [
"exotic",
"magneticMonopole",
"singleParticle"]
11 evgenConfig.generators = [
"ParticleGun"]
12 evgenConfig.contact = [
"anlionti@cern.ch"]
14 evgenConfig.specialConfig =
'MASS=%s;GCHARGE=%s;preInclude=SimulationJobOptions/preInclude.Monopole.py' % (monmass,gcharge)
21 include(
"ParticleGun/ParticleGun_Common.py")
23 import ParticleGun
as PG
24 PG.MASSES[4110000] =
float(MeVmass)
25 genSeq.ParticleGun.sampler.pid = (-PDG, PDG)
26 genSeq.ParticleGun.sampler.mom = PG.EEtaMPhiSampler(energy=[loE,hiE], eta=[-2,2])
32 ALINE1=
"M 4110000 %s.E+03 +0.0E+00 -0.0E+00 Monopole 0" % (monmass)
33 ALINE2=
"W 4110000 0.E+00 +0.0E+00 -0.0E+00 Monopole 0"
38 pdgmod = os.path.isfile(
'PDGTABLE.MeV')
40 os.remove(
'PDGTABLE.MeV')
41 os.system(
'get_files -data PDGTABLE.MeV')
43 f.writelines(
str(ALINE1))
45 f.writelines(
str(ALINE2))
56 ALINE1=
"4110000 mm %s.E+03 (Mev/c) lepton %s" % (monmass,gcharge)
57 ALINE2=
"-4110000 mmbar %s.E+03 (Mev/c) lepton -%s" % (monmass,gcharge)
62 pdgmod = os.path.isfile(
'G4particle_acceptlist.txt')
64 os.remove(
'G4particle_acceptlist.txt')
65 os.system(
'get_files -data G4particle_acceptlist.txt')
66 f=
open(
'G4particle_acceptlist.txt',
'a')
67 f.writelines(
str(ALINE1))
69 f.writelines(
str(ALINE2))