#Set up the path to SModelS installation folder if running on a different folder
import sys,os
sys.path.append(os.path.join(os.getenv("HOME"),"smodels/"))
#Import those parts of smodels that are needed for this exercise
from smodels.tools.physicsUnits import GeV
from smodels.experiment import smsAnalysisFactory, smsHelpers
## define where the database resides
smsHelpers.base=os.path.join(os.getenv("HOME"),"smodels-database/")
#specify analysis and topology as strings:
#and load analysis
ananame = ["CMS-SUS-12-028"]
txname = ["T2"]
analysis = smsAnalysisFactory.load(ananame, topologies=txname)[0]
masses = [[500*GeV, 150*GeV],[500*GeV, 150*GeV]]
analysis.getUpperLimitFor(masses)