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