How To: Print out the theory predictions¶
In [8]:
# Set up the path to SModelS installation folder
import sys; sys.path.append("."); import smodels_paths
In [9]:
# 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 [10]:
# load the official database:
database = Database( "unittest")
In [11]:
# Define the SLHA input file name
filename="inputFiles/slha/gluino_squarks.slha"
model = Model(BSMparticles = BSMList, SMparticles = SMList)
model.updateParticles(inputFile=filename)
In [12]:
# Perform the decomposition:
topList = decomposer.decompose(model, sigmacut = 10.0* fb, massCompress=True, invisibleCompress=True,minmassgap = 5* GeV)
In [13]:
# Compute the theory prediction for each selected experimental result using the output from the decomposition:
allThPredictions = theoryPredictionsFor(database, topList)
In [14]:
# Print information about each theory prediction for each result:
for theoryPred in allThPredictions:
print ("\nExperimental Result: ",theoryPred.expResult.globalInfo.id,"(%s-type)" %theoryPred.dataType() ) #Result ID
print ("Theory prediction xsec = ",theoryPred.xsection) #Signal xsection*efficiency*BR
print ("Conditions violation (if any) = ",theoryPred.conditions) #Condition values (for UL-type results)
print ("Dataset:",theoryPred.dataId() ) #Corresponding signal region (for EM-type results)
print ("Txnames = ",[str(tx) for tx in theoryPred.txnames]) #List of simplified models (txnames) contributing to the signal xsec
Experimental Result: ATLAS-SUSY-2013-02 (upperLimit-type) Theory prediction xsec = 5.50E-03 [pb] Conditions violation (if any) = None Dataset: None Txnames = ['T6WW'] Experimental Result: CMS-SUS-16-039 (upperLimit-type) Theory prediction xsec = 2.07E-01 [pb] Conditions violation (if any) = None Dataset: None Txnames = ['TChiWH'] Experimental Result: CMS-SUS-16-039 (upperLimit-type) Theory prediction xsec = 3.99E-02 [pb] Conditions violation (if any) = None Dataset: None Txnames = ['TChiWZ'] Experimental Result: CMS-PAS-SUS-16-024 (upperLimit-type) Theory prediction xsec = 3.99E-02 [pb] Conditions violation (if any) = None Dataset: None Txnames = ['TChiWZ'] Experimental Result: ATLAS-SUSY-2013-12 (upperLimit-type) Theory prediction xsec = 1.85E-02 [pb] Conditions violation (if any) = None Dataset: None Txnames = ['TChiWZ']
In [ ]: