GauginosConfig.py 1.88 KB
Newer Older
1
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2
3
4

from AthenaCommon import CfgMgr
def getGauginosPhysicsTool(name="GauginosPhysicsTool", **kwargs):
5
    from AthenaCommon.SystemOfUnits import GeV,ns # noqa: F401
6
    from G4AtlasApps.SimFlags import simFlags
7
    # Example specialConfiguration {'GMSBSlepton': '100.0*GeV', 'GMSBGravitino': '1e-07*GeV', 'GMSBSleptonTime': '0.01*ns'}
8
9
    GMSBNeutralino = eval(simFlags.specialConfiguration.get_Value().get("GMSBNeutralino", "0*GeV"))
    GMSBTime = eval(simFlags.specialConfiguration.get_Value().get("GMSBLifeTime", "0*GeV"))
10
    kwargs.setdefault("NeutralinoMass",        GMSBNeutralino)
11
12
13
14
15
16
    ##kwargs.setdefault("NeutralinoWidth",       0.0*GeV)
    ##kwargs.setdefault("NeutralinoCharge",      0)
    ##kwargs.setdefault("NeutralinoPDGCode",     1000039)
    kwargs.setdefault("NeutralinoStable",      False)
    kwargs.setdefault("NeutralinoLifetime",    GMSBTime)
    ##kwargs.setdefault("NeutralinoShortlived",  False)
17

18
    if "GMSBGravitino" in simFlags.specialConfiguration.get_Value():
19
        GMSBGravitino = eval(simFlags.specialConfiguration.get_Value().get("GMSBGravitino", "0*GeV"))
20
21
22
23
24
25
26
        kwargs.setdefault("GravitinoMass",       GMSBGravitino)
        ##kwargs.setdefault("GravitinoWidth",       0.0*GeV)
        ##kwargs.setdefault("GravitinoCharge",      0)
        ##kwargs.setdefault("GravitinoPDGCode",     1000022)
        ##kwargs.setdefault("GravitinoStable",      True)
        ##kwargs.setdefault("GravitinoLifetime",    -1)
        ##kwargs.setdefault("GravitinoShortlived",  False)
27
    return CfgMgr.GauginosPhysicsTool(name, **kwargs)
28
29
30
31
32
33


def getNeutralinoToPhotonGravitino(name="NeutralinoToPhotonGravitino", **kwargs):
    kwargs.setdefault("ParticleName","s_chi_0_1")
    kwargs.setdefault("BR", 1.0) # Branching Ratio
    kwargs.setdefault("Daughters","s_G,gamma")
34
    return CfgMgr.AddPhysicsDecayTool(name, **kwargs)