How To: Compare theory predictions with experimental limits¶
In [6]:
# Set up the path to SModelS installation folder
import sys; sys.path.append("."); import smodels_paths
In [7]:
# Import those parts of smodels that are needed for this exercise
# (We will assume the input is a SLHA file. For LHE files, use the lheDecomposer instead)
from smodels.share.models.mssm import BSMList
from smodels.share.models.SMparticles import SMList
from smodels.base.model import Model
from smodels.decomposition import decomposer
from smodels.installation import installDirectory
from smodels.base.physicsUnits import fb, GeV
from smodels.matching.theoryPrediction import theoryPredictionsFor
from smodels.experiment.databaseObj import Database
In [8]:
# Define the SLHA input file name
filename="inputFiles/slha/gluino_squarks.slha"
model = Model(BSMparticles = BSMList, SMparticles = SMList)
model.updateParticles(inputFile=filename)
In [9]:
# Load the database, do the decomposition and compute theory predictions:
# (Look at the theory predictions HowTo to learn how to compute theory predictions)
database = Database("unittest")
topList = decomposer.decompose(model, sigmacut = 10*fb, massCompress=True, invisibleCompress=True,minmassgap = 5* GeV)
allThPredictions = theoryPredictionsFor(database, topList)
In [10]:
# Print the value of each theory prediction for each experimental
# result and the corresponding upper limit (see the obtain experimental upper limits HowTo to learn how
# to compute the upper limits).
# lso print the expected upper limit, if available
for theoryPred in allThPredictions:
expID = theoryPred.expResult.globalInfo.id
dataType = theoryPred.dataType()
dataId = theoryPred.dataId()
print ( "\nExperimental Result: %s (%s-type)" %(expID,dataType) ) #Result ID and type
print ( "Theory prediction xsec = ",theoryPred.xsection )#Signal xsection*efficiency*BR
print ( "Upper limit = ",theoryPred.getUpperLimit() )
print ( "Expected Upper limit = ",theoryPred.getUpperLimit(expected= True) )
Experimental Result: ATLAS-SUSY-2013-02 (upperLimit-type) Theory prediction xsec = 5.50E-03 [pb] Upper limit = 1.72E+01 [fb] Expected Upper limit = None Experimental Result: CMS-SUS-16-039 (upperLimit-type) Theory prediction xsec = 2.07E-01 [pb] Upper limit = 2.12E+03 [fb] Expected Upper limit = None Experimental Result: CMS-SUS-16-039 (upperLimit-type) Theory prediction xsec = 3.99E-02 [pb] Upper limit = 4.68E+02 [fb] Expected Upper limit = None Experimental Result: ATLAS-SUSY-2013-12 (upperLimit-type) Theory prediction xsec = 1.85E-02 [pb] Upper limit = 4.81E+02 [fb] Expected Upper limit = None
In [ ]: