|
ATLAS Offline Software
|
|
def | get_and_fix_PDGTABLE_AMSB (replace) |
|
def | CharginosPhysicsToolCfg (flags, name="CharginosPhysicsTool", **kwargs) |
|
def | CharginoPlusToPiPlusNeutralinoCfg (flags, name="CharginoPlusToPiPlusNeutralino", **kwargs) |
|
def | CharginoMinusToPiMinusNeutralinoCfg (flags, name="CharginoMinusToPiMinusNeutralino", **kwargs) |
|
def | CharginoPlusToEPlusNeutralinoCfg (flags, name="CharginoPlusToEPlusNeutralino", **kwargs) |
|
def | CharginoMinusToEMinusNeutralinoCfg (flags, name="CharginoMinusToEMinusNeutralino", **kwargs) |
|
def | CharginoPlusToMuPlusNeutralinoCfg (flags, name="CharginoPlusToMuPlusNeutralino", **kwargs) |
|
def | CharginoMinusToMuMinusNeutralinoCfg (flags, name="CharginoMinusToMuMinusNeutralino", **kwargs) |
|
def | AMSB_Cfg (flags) |
|
def | AMSB_VerboseSelectorCfg (flags, name="G4UA::VerboseSelectorTool", **kwargs) |
|
◆ AMSB_Cfg()
def CharginosConfig.AMSB_Cfg |
( |
|
flags | ) |
|
Definition at line 151 of file CharginosConfig.py.
153 if flags.Common.ProductionStep == ProductionStep.Simulation:
154 from G4AtlasServices.G4AtlasServicesConfig
import PhysicsListSvcCfg
156 C1Mass = eval(flags.Input.SpecialConfiguration[
"AMSBC1Mass"])
157 N1Mass = eval(flags.Input.SpecialConfiguration[
"AMSBN1Mass"])
160 from ExtraParticles.PDGHelpers
import updateExtraParticleAcceptList
162 if flags.Common.ProductionStep == ProductionStep.Simulation:
165 C1Lifetime = eval(flags.Input.SpecialConfiguration.get(
"AMSBC1Lifetime",
"-1.0"))
169 C1ToEleBR = eval(flags.Input.SpecialConfiguration.get(
"AMSBC1ToEleBR",
"-1.0"))
173 C1ToMuBR = eval(flags.Input.SpecialConfiguration.get(
"AMSBC1ToMuBR",
"-1.0"))
177 result.getService(
"PhysicsListSvc").PhysOption += physicsOptions
◆ AMSB_VerboseSelectorCfg()
def CharginosConfig.AMSB_VerboseSelectorCfg |
( |
|
flags, |
|
|
|
name = "G4UA::VerboseSelectorTool" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 182 of file CharginosConfig.py.
182 def AMSB_VerboseSelectorCfg(flags, name="G4UA::VerboseSelectorTool
", **kwargs): kwargs.setdefault('TargetEvent',1)
183 kwargs.setdefault(
'VerboseLevel',1)
184 kwargs.setdefault(
'TargetPdgIDs',
189 from G4DebuggingTools.G4DebuggingToolsConfig
import VerboseSelectorToolCfg
◆ CharginoMinusToEMinusNeutralinoCfg()
def CharginosConfig.CharginoMinusToEMinusNeutralinoCfg |
( |
|
flags, |
|
|
|
name = "CharginoMinusToEMinusNeutralino" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 112 of file CharginosConfig.py.
115 C1ToEleBR = eval(flags.Input.SpecialConfiguration.get(
"AMSBC1ToEleBR",
"-1.0"))
118 kwargs.setdefault(
"ParticleName",
"s_chi_minus_1")
119 kwargs.setdefault(
"BR",C1ToEBR)
120 kwargs.setdefault(
"Daughters",
"s_chi_0_1,anti_nu_e,e-")
121 result.setPrivateTools(CompFactory.AddPhysicsDecayTool(name, **kwargs))
◆ CharginoMinusToMuMinusNeutralinoCfg()
def CharginosConfig.CharginoMinusToMuMinusNeutralinoCfg |
( |
|
flags, |
|
|
|
name = "CharginoMinusToMuMinusNeutralino" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 138 of file CharginosConfig.py.
141 C1ToMuBR = eval(flags.Input.SpecialConfiguration.get(
"AMSBC1ToMuBR",
"-1.0"))
143 C1ToMuonBR = C1ToMuBR
144 kwargs.setdefault(
"ParticleName",
"s_chi_minus_1")
145 kwargs.setdefault(
"BR",C1ToMuonBR)
146 kwargs.setdefault(
"Daughters",
"s_chi_0_1,anti_nu_mu,mu-")
147 result.setPrivateTools(CompFactory.AddPhysicsDecayTool(name, **kwargs))
◆ CharginoMinusToPiMinusNeutralinoCfg()
def CharginosConfig.CharginoMinusToPiMinusNeutralinoCfg |
( |
|
flags, |
|
|
|
name = "CharginoMinusToPiMinusNeutralino" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 83 of file CharginosConfig.py.
86 C1ToEleBR = eval(flags.Input.SpecialConfiguration.get(
"AMSBC1ToEleBR",
"-1.0"))
89 C1ToMuBR = eval(flags.Input.SpecialConfiguration.get(
"AMSBC1ToMuBR",
"-1.0"))
92 kwargs.setdefault(
"ParticleName",
"s_chi_minus_1")
93 kwargs.setdefault(
"BR",C1ToPiBR)
94 kwargs.setdefault(
"Daughters",
"s_chi_0_1,pi-")
95 result.setPrivateTools(CompFactory.AddPhysicsDecayTool(name, **kwargs))
◆ CharginoPlusToEPlusNeutralinoCfg()
def CharginosConfig.CharginoPlusToEPlusNeutralinoCfg |
( |
|
flags, |
|
|
|
name = "CharginoPlusToEPlusNeutralino" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 99 of file CharginosConfig.py.
102 C1ToEleBR = eval(flags.Input.SpecialConfiguration.get(
"AMSBC1ToEleBR",
"-1.0"))
105 kwargs.setdefault(
"ParticleName",
"s_chi_plus_1")
106 kwargs.setdefault(
"BR",C1ToEBR)
107 kwargs.setdefault(
"Daughters",
"s_chi_0_1,nu_e,e+")
108 result.setPrivateTools(CompFactory.AddPhysicsDecayTool(name, **kwargs))
◆ CharginoPlusToMuPlusNeutralinoCfg()
def CharginosConfig.CharginoPlusToMuPlusNeutralinoCfg |
( |
|
flags, |
|
|
|
name = "CharginoPlusToMuPlusNeutralino" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 125 of file CharginosConfig.py.
128 C1ToMuBR = eval(flags.Input.SpecialConfiguration.get(
"AMSBC1ToMuBR",
"-1.0"))
130 C1ToMuonBR = C1ToMuBR
131 kwargs.setdefault(
"ParticleName",
"s_chi_plus_1")
132 kwargs.setdefault(
"BR",C1ToMuonBR)
133 kwargs.setdefault(
"Daughters",
"s_chi_0_1,nu_mu,mu+")
134 result.setPrivateTools(CompFactory.AddPhysicsDecayTool(name, **kwargs))
◆ CharginoPlusToPiPlusNeutralinoCfg()
def CharginosConfig.CharginoPlusToPiPlusNeutralinoCfg |
( |
|
flags, |
|
|
|
name = "CharginoPlusToPiPlusNeutralino" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 67 of file CharginosConfig.py.
70 C1ToEleBR = eval(flags.Input.SpecialConfiguration.get(
"AMSBC1ToEleBR",
"-1.0"))
73 C1ToMuBR = eval(flags.Input.SpecialConfiguration.get(
"AMSBC1ToMuBR",
"-1.0"))
76 kwargs.setdefault(
"ParticleName",
"s_chi_plus_1")
77 kwargs.setdefault(
"BR",C1ToPiBR)
78 kwargs.setdefault(
"Daughters",
"s_chi_0_1,pi+")
79 result.setPrivateTools(CompFactory.AddPhysicsDecayTool(name, **kwargs))
◆ CharginosPhysicsToolCfg()
def CharginosConfig.CharginosPhysicsToolCfg |
( |
|
flags, |
|
|
|
name = "CharginosPhysicsTool" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 44 of file CharginosConfig.py.
47 C1Mass = eval(flags.Input.SpecialConfiguration.get(
"AMSBC1Mass",
None))
48 N1Mass = eval(flags.Input.SpecialConfiguration.get(
"AMSBN1Mass",
None))
49 C1Lifetime = eval(flags.Input.SpecialConfiguration.get(
"AMSBC1Lifetime",
"-1.0"))
51 kwargs.setdefault(
"CharginoPlusMass", C1Mass)
52 kwargs.setdefault(
"CharginoPlusStable", (C1Lifetime < 0))
53 if not (C1Lifetime < 0):
54 kwargs.setdefault(
"CharginoPlusLifetime", C1Lifetime)
56 kwargs.setdefault(
"CharginoMinusMass", C1Mass)
57 kwargs.setdefault(
"CharginoMinusStable", (C1Lifetime < 0))
58 if not (C1Lifetime < 0):
59 kwargs.setdefault(
"CharginoMinusLifetime", C1Lifetime)
61 kwargs.setdefault(
"NeutralinoMass", N1Mass)
63 result.setPrivateTools(CompFactory.CharginosPhysicsTool(name, **kwargs))
◆ get_and_fix_PDGTABLE_AMSB()
def CharginosConfig.get_and_fix_PDGTABLE_AMSB |
( |
|
replace | ) |
|
Definition at line 13 of file CharginosConfig.py.
17 shutil.move(
'PDGTABLE.MeV',
'PDGTABLE.MeV.org')
22 lines =
open(
'PDGTABLE.MeV.org').readlines()
23 for pdgid,mass,name,charge
in replace:
24 if not re.search(
r'[MW]\s+'+
str(pdgid)+
r'\s+\S+',
''.
join(lines)):
25 lines.append(
'M' +
str(pdgid).rjust(8) +
''.ljust(26) +
26 (
'%11.5E' % mass).ljust(15) +
27 '+0.0E+00'.ljust(9) +
'-0.0E+00'.ljust(9) +
28 name.strip() +
''.ljust(6) + charge.strip()+
''.rjust(20-len(name.strip())) +
'\n')
29 lines.append(
'W' +
str(pdgid).rjust(8) +
''.ljust(26) +
30 '0.E+00'.ljust(15) +
'+0.0E+00'.ljust(9) +
'-0.0E+00'.ljust(9) +
31 name.strip() +
''.ljust(6) + charge.strip()+
''.rjust(20-len(name.strip())) +
'\n')
33 from past.builtins
import xrange
34 for i
in xrange(len(lines)):
35 if re.search(
r'M\s+'+
str(pdgid)+
r'\s+\S+', lines[i]):
37 lines[i] = l[0:35] + (
'%11.5E' % mass).ljust(14) + l[49:]
39 update =
open(
'PDGTABLE.MeV',
'w')
40 update.write(
''.
join(lines))
void xrange(TH1 *h, bool symmetric)
def updateExtraParticleAcceptList(listName='G4particle_acceptlist_ExtraParticles.txt', pdgcodes=[])
def CharginoPlusToEPlusNeutralinoCfg(flags, name="CharginoPlusToEPlusNeutralino", **kwargs)
def CharginoPlusToPiPlusNeutralinoCfg(flags, name="CharginoPlusToPiPlusNeutralino", **kwargs)
def CharginoMinusToMuMinusNeutralinoCfg(flags, name="CharginoMinusToMuMinusNeutralino", **kwargs)
def CharginoMinusToPiMinusNeutralinoCfg(flags, name="CharginoMinusToPiMinusNeutralino", **kwargs)
std::string join(const std::vector< std::string > &v, const char c=',')
def PhysicsListSvcCfg(flags, name="PhysicsListSvc", **kwargs)
def get_and_fix_PDGTABLE_AMSB(replace)
def CharginoMinusToEMinusNeutralinoCfg(flags, name="CharginoMinusToEMinusNeutralino", **kwargs)
def CharginosPhysicsToolCfg(flags, name="CharginosPhysicsTool", **kwargs)
def AMSB_VerboseSelectorCfg(flags, name="G4UA::VerboseSelectorTool", **kwargs)
def CharginoPlusToMuPlusNeutralinoCfg(flags, name="CharginoPlusToMuPlusNeutralino", **kwargs)