Skip to content

Commit 5b55bbf

Browse files
fixes for latest version
Former-commit-id: 2e73ad9
1 parent c8debc7 commit 5b55bbf

File tree

2 files changed

+41
-27
lines changed

2 files changed

+41
-27
lines changed

cpp/SModelS.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ SModelS::SModelS( const std::string & parameterfile )
1919
PyRun_SimpleString("import time");
2020
PyRun_SimpleString("t0=time.time()");
2121
PyRun_SimpleString("import modelTester");
22+
PyRun_SimpleString("import smodelsLogging");
23+
// PyRun_SimpleString("smodelsLogging.setLogLevel ( \"debug\" ) ");
2224
// PyObject* myModuleString = PyString_FromString((char*)"modelTester");
2325
// PyObject* myModule = PyImport_Import( myModuleString );
2426
loadDatabase ( parameterfile );
@@ -36,7 +38,7 @@ void SModelS::loadDatabase ( const string & parameterfile )
3638
buffer << "parameterFile='" << parameterfile << "'";
3739
PyRun_SimpleString( buffer.str().c_str() );
3840
PyRun_SimpleString( "parser = modelTester.getParameters( parameterFile )" );
39-
PyRun_SimpleString( "database, databaseVersion = modelTester.loadDatabase(parser, None, 'info' )" );
41+
PyRun_SimpleString( "database, databaseVersion = modelTester.loadDatabase(parser, None )" );
4042
PyRun_SimpleString( "listOfExpRes = modelTester.loadDatabaseResults(parser, database)" );
4143
PyRun_SimpleString( "print '[smodels.cpp] %d experimental results found.' % len(listOfExpRes) " );
4244
}

cpp/parameters.ini

Lines changed: 38 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,61 @@
11
#Database address
22
[path]
3-
#databasePath = ../smodels-database/database.pcl ; Give path to the database "text" directory or to the binary database file
4-
#databasePath = ../smodels-database ; Give path to the database "text" directory or to the binary database file
5-
databasePath = ../test/database/ ; Give path to the database "text" directory or to the binary database file
3+
databasePath = ../test/database ; Give path to the database directory or to the binary database file
64

75
#Select running mode
86
[options]
97
inputType = SLHA ;SLHA for a SLHA input file or LHE for a LHE input file
108
checkInput = True ;Set True to check the input file for possible errors
119
doInvisible = True ;Set True if invisible compression should be performed, False elsewise
1210
doCompress = True ;Set True if mass compression should be performed, False elsewise
13-
testCoverage = True ;Set True if topologies not covered by experiments should be identified, False otherwise
11+
computeStatistics = True ;Set True to compute likelihood and chi2 for the most sensitive EM result, False elsewise
12+
testCoverage = True ;Set True if topologies not covered by experiments (missing topologies) should be identified, False otherwise
1413

1514
#Select input parameters
1615
[parameters]
1716
sigmacut = 0.03 ;Give minimum cross section value [fb] considered in SLHA decomposition (relevant for SLHA decomposition and detection of missing topologies)
1817
minmassgap = 5. ;Give minimum mass gap [GeV] for mass compression
1918
maxcond = 0.2 ;Maximum relative violation of conditions for valid results
20-
ncpus = -1 ;Give number of cores used when running in parallel (integer, if <1 all availabel CPUs are used)
19+
ncpus = 1 ;Give number of cores used when running in parallel (integer, -1 means all available CPUs are used)
2120

2221
#Select database analyses
2322
[database]
2423
analyses = all ;Set all to use all analyses included in the database
25-
#to use only specific analyses, give a list of the names, e.g.
26-
#analyses = CMS-PAS-SUS-13-008,CMS-SUS-13-013,ATLAS-CONF-2013-024,ATLAS-SUSY-2013-04
27-
#analyses = CMS-SUS-13-004
24+
#to use only specific analyses, give a list of the names separated by comma
25+
# analyses = CMS-PAS-SUS-13-008, CMS-SUS-13-013,ATLAS-CONF-2013-024,ATLAS-SUSY-2013-04
26+
2827
txnames= all ;Set all to use all constraints included in the database
29-
#to use only specific constraints, give a list of the names, e.g.
30-
#txnames = T2
28+
#to use only specific constraints, give a list of the names separated by comma
29+
#txnames = T2,T1,TChiWZ
30+
31+
dataselector= all ; Set all to use all upper limit and efficiency maps results in the database. Set to upperLimit (efficiencyMap) to use only UL (EM) results:
3132
#dataselector = upperLimit
32-
dataselector= all ;Allows to select specific data sets (signal regions). Set all to use all upper limit and efficiency maps analyses the database. If None, it will only use the UL results
33-
#to use only specific signal regions, give a list of the names, e.g.
34-
#dataselector = ANA11-CUT11
35-
36-
37-
#Screen output settings
38-
[stdout]
39-
printDecomp = True ;Set True to print a table of topologies after decomposition, False elsewise
40-
addElmentInfo = True ;Set True to add a table of elements, False elsewise. Note that not all the elements appearing in this table are constrained by experiments.
41-
printAnalyses = False ;Set True to print the list of analyses used, False elsewise
42-
addAnaInfo = False ;Set True to add information about each analysis used, False elsewise
43-
printResults = True ;Set True to print table of results, False elsewise
44-
outputType = summary,stdout ;Define the output formats
45-
46-
#File output settings
47-
[file]
33+
#It can also be used to select specific datasets (signal regions) from efficiency map results. For the latter provide a list of the desired dataset ids
34+
#dataselector = SRA mCT150,SRA mCT200
35+
36+
#Settings for result printout
37+
[printer]
38+
outputType = summary,stdout,python ;Define the output formats
39+
#available output formats: summary, stdout, log, python, xml (type log redirects stdout in *.log output file)
40+
41+
#options for stdout and log format
42+
[stdout-printer]
43+
printDatabase = False ;Set True to print the list of selected experimental results to stdout, False elsewise
44+
addAnaInfo = False ;Set True to add detailed information about each experimental result selected, False elsewise. Only used if printDatabase = True
45+
printDecomp = False ;Set True to print a table of all topologies generated by decomposition, False elsewise
46+
addElementInfo = False ;Set True to print a list of all elements generated by decomposition, False elsewise. Note that not all the elements appearing in this table are constrained by experiments. Only used if printDecomp = True
47+
printExtendedResults = True ;Set True to print detailed information about the experimental constraints, False to print a shorter version
48+
addCoverageID = False ;Set True to print the ID of the elements not constrained by the experimental constraints. Only used if testCoverage=True
49+
50+
#options for summary file
51+
[summary-printer]
4852
expandedSummary = True ;Set True to print to file all applicable analyses, False for only the strongest result
4953

54+
#options for python printer
55+
[python-printer]
56+
addElementList = False ;Set True to print full list of elements to python and xml format, False elsewise. Note that these are all elements after decomposition and the list can be very long.
57+
58+
#options for xml printer
59+
[xml-printer]
60+
addElementList = False ;Set True to print full list of elements to python and xml format, False elsewise. Note that these are all elements after decomposition and the list can be very long.
61+

0 commit comments

Comments
 (0)