3 loE = (
float(mass) + 10.)*1000.
4 hiE = (
float(mass) + 6000.)*1000.
9 evgenConfig.description =
"Single HECO generation for Mass=%s, Charge=%s in MC15" % (mass,charge)
10 evgenConfig.keywords = [
"exotic",
"singleParticle",
"highElectricChargeObject"]
11 evgenConfig.generators = [
"ParticleGun"]
12 evgenConfig.contact = [
"anlionti@cern.ch"]
14 evgenConfig.specialConfig =
'MASS=%s;CHARGE=%s;preInclude=SimulationJobOptions/preInclude.Qball.py' % (mass,charge)
21 include(
"ParticleGun/ParticleGun_Common.py")
23 import ParticleGun
as PG
24 PG.MASSES[PDG] =
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 %s %s.E+03 +0.0E+00 -0.0E+00 Monopole 0" % (PDG,mass)
33 ALINE2=
"W %s 0.E+00 +0.0E+00 -0.0E+00 Monopole 0" % (PDG)
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=
"%s qb %s.E+03 (Mev/c) lepton %s" % (PDG,mass,charge)
57 ALINE2=
"-%s qbbar %s.E+03 (Mev/c) lepton -%s" % (PDG,mass,charge)
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))