104def load_files_for_dyon_scenario(MASS, CHARGE, GCHARGE):
105 CODE=4110000+int(CHARGE)*10
106 CODE2=4120000+int(CHARGE)*10
107 if getPDGTABLE('PDGTABLE.MeV'):
108 ALINE1="M {code} {intmass}.E+03 +0.0E+00 -0.0E+00 DyonSS 0".format(code=CODE,intmass=int(MASS))
109 ALINE2="W {code} 0.E+00 +0.0E+00 -0.0E+00 DyonSS 0".format(code=CODE)
110 ALINE3="M {code2} {intmass}.E+03 +0.0E+00 -0.0E+00 DyonOS 0".format(code2=CODE2,intmass=int(MASS))
111 ALINE4="W {code2} 0.E+00 +0.0E+00 -0.0E+00 DyonOS 0".format(code2=CODE2)
112
113
114 BLINE1="{code} {intmass}.00 {fcharge} {gcharge} # DyonSS".format(code=CODE, intmass=int(MASS), fcharge=float(CHARGE), gcharge=GCHARGE)
115 BLINE2="-{code} {intmass}.00 -{fcharge} -{gcharge} # DyonSSBar".format(code=CODE, intmass=int(MASS), fcharge=float(CHARGE), gcharge=GCHARGE)
116 BLINE3="{code2} {intmass}.00 -{fcharge} {gcharge} # DyonOS".format(code2=CODE2, intmass=int(MASS), fcharge=float(CHARGE), gcharge=GCHARGE)
117 BLINE4="-{code2} {intmass}.00 {fcharge} -{gcharge} # DyonOSBar".format(code2=CODE2, intmass=int(MASS), fcharge=float(CHARGE), gcharge=GCHARGE)
118
119 f=open('PDGTABLE.MeV','a')
120 f.writelines(str(ALINE1))
121 f.writelines('\n')
122 f.writelines(str(ALINE2))
123 f.writelines('\n')
124 f.writelines(str(ALINE3))
125 f.writelines('\n')
126 f.writelines(str(ALINE4))
127 f.writelines('\n')
128 f.close()
129 partmod = os.path.isfile('particles.txt')
130 if partmod is True:
131 os.remove('particles.txt')
132 f=open('particles.txt','w')
133 f.writelines(str(BLINE1))
134 f.writelines('\n')
135 f.writelines(str(BLINE2))
136 f.writelines('\n')
137 f.writelines(str(BLINE3))
138 f.writelines('\n')
139 f.writelines(str(BLINE4))
140 f.writelines('\n')
141 f.close()
142
143 del ALINE1
144 del ALINE2
145 del ALINE3
146 del ALINE4
147 del BLINE1
148 del BLINE2
149 del BLINE3
150 del BLINE4
151
152