Skip to content

Latest commit

 

History

History
310 lines (229 loc) · 14 KB

DatabaseStructure.rst

File metadata and controls

310 lines (229 loc) · 14 KB

Database Structure

Database of Experimental Results

SModelS stores all the information about the experimental results in the Database <Database>. Below we describe both the directory <folderStruct> and object <objStruct> structure of the Database <Database>.

Database: Directory Structure

The Database <Database> is organized as files in an ordinary (UNIX) directory hierarchy, with a thin Python layer serving as the access to the database. The overall structure of the directory hierarchy and its contents is depicted in the scheme below (click to enlarge):

image

As seen above, the top level of the SModelS database categorizes the analyses by LHC center-of-mass energies, $\sqrt{s}$:

  • 8 TeV
  • 13 TeV

Also, the top level directory contains a file called version with the version string of the database. The second level splits the results up between the different experiments:

  • 8TeV/CMS/
  • 8TeV/ATLAS/

The third level of the directory hierarchy encodes the Experimental Results<ExpResult>:

  • 8TeV/CMS/CMS-SUS-12-024
  • 8TeV/ATLAS/ATLAS-CONF-2013-047
  • ...
  • The Database folder is described by the Database Class

Experimental Result Folder

Each Experimental Result<ExpResult> folder contains:

  • a folder for each DataSet<DataSet> (e.g. data)
  • a globalInfo.txt file

The globalInfo.txt file contains the meta information about the Experimental Result<ExpResult>. It defines the center-of-mass energy $\sqrt{s}$, the integrated luminosity, the id used to identify the result and additional information about the source of the data. Here is the content of CMS-SUS-12-024/globalInfo.txt as an example:

/literals/globalInfo.txt

Data Set Folder

Each DataSet<DataSet> folder (e.g. data) contains:

  • the Upper Limit maps for UL-type results <ULtype> or Efficiency maps for EM-type results <EMtype> (TxName.txt files)
  • a dataInfo.txt file containing meta information about the DataSet<DataSet>
  • Data Set folders are described by the DataSet Class
  • TxName files are described by the TxName Class
  • dataInfo files are described by the Info Class

Data Set Folder: Upper Limit Type

Since UL-type results <ULtype> have a single dataset (see DataSets<DataSet>), the info file only holds some trivial information, such as the type of Experimental Result<ExpResult> (UL) and the dataset id (None for UL-type results). Here is the content of CMS-SUS-12-024/data/dataInfo.txt as an example:

/literals/dataInfo.txt

For UL-type results <ULtype>, each TxName.txt file contains the UL map for a given simplified model (element <element> or sum of elements <element>) as well as some meta information, including the corresponding constraint <ULconstraint> and conditions <ULconditions>. The first few lines of CMS-SUS-12-024/data/T1tttt.txt read:

/literals/T1tttt.txt

If the finalState property is not provided, the simplified model is assumed to contain neutral BSM final states in each branch, leading to a MET signature. However, if this is not the case, the non-MET final states must be explicitly listed in the TxName.txt file (see final state classes <final stateOdd> for more details). An example from the CMS-EXO-12-026/data/THSCPM1b.txt file is shown below:

/literals/THSCPM1b.txt

The second block of data in the TxName.txt file contains the upper limits as a function of the BSM masses:

/literals/T1tttt.txt

As we can see, the UL map is given as a Python array with the structure: [[masses, upper limit], [masses, upper limit], ...].

Data Set Folder: Efficiency Map Type

For EM-type results <EMtype> the dataInfo.txt contains relevant information, such as an id to identify the DataSet<DataSet> (signal region), the number of observed and expected background events for the corresponding signal region and the respective signal upper limits. Here is the content of CMS-SUS-13-012-eff/3NJet6_1000HT1250_200MHT300/dataInfo.txt as an example:

/literals/dataInfo-eff.txt

For EM-type results <EMtype>, each TxName.txt file contains the efficiency map for a given simplified model (element <element> or sum of elements <element>) as well as some meta information. Here is the first few lines of CMS-SUS-13-012-eff/3NJet6_1000HT1250_200MHT300/T2.txt:

/literals/T2.txt

As seen above, the first block of data in the T2.txt file contains information about the element <element> ([[[jet]], [[jet]]]) in bracket notation <bracketNotation> for which the efficiencies refers to as well as reference to the original data source and some additional information. As in the Upper Limit case, the simplified model is assumed to contain neutral BSM final states (MET signature). For non-MET final states the finalState field must list the final state signatures <final stateOdd>. The second block of data contains the efficiencies as a function of the BSM masses:

/literals/T2.txt

As we can see the efficiency map is given as a Python array with the structure: [[masses, efficiency], [masses, efficiency], ...].

Inclusive Simplified Models

If the analysis signal efficiencies are insensitive to some of the simplified model final states, it might be convenient to define inclusive simplified models. A typical case are some of the heavy stable charged particle searches, which only rely on the presence of a non-relativistic charged particle, which leads to an anomalous charged track signature. In this case the signal efficiencies are highly insensitive to the remaining event activity and the corresponding simplified models can be very inclusive. In order to handle this inclusive cases in the database we allow for wildcards when specifying the constraints. For instance, the constraint for the CMS-EXO-13-006 eff/c000/THSCPM3.txt reads:

/literals/THSCPM3.txt

and represents the (inclusive) simplified model:

image

Note that although the final state represented by "*" is any Z2-even final states <final statesEven>, it must still correspond to a single particle, since the topology specifies a 2-body decay for the initially produced BSM particle. Finally, it might be useful to define even more inclusive simplified models, such as the one in CMS-EXO-13-006 eff/c000/THSCPM4.txt:

/literals/THSCPM4.txt

In the above case the simplified model corresponds to an HSCP being initially produced in association with any BSM particle which leads to a MET signature. Notice that the notation "[*]" corresponds to any `branch, while ["*"] means any particle:

image

In such cases the mass array for the arbitrary branch must also be specified as using wildcards:

/literals/THSCPM4.txt

Database: Object Structure

The Database folder structure <folderStruct> is mapped to Python objects in SModelS. The mapping is almost one-to-one, except for a few exceptions. Below we show the overall object structure as well as the folders/files the objects represent (click to enlarge):

image

The type of Python object (Python class, Python list,...) is shown in brackets. For convenience, below we explicitly list the main database folders/files and the Python objects they are mapped to:

Database: Binary (Pickle) Format

At the first time of instantiating the Database class, the text files in <database-path>. are loaded and parsed, and the corresponding data objects are built. The efficiency and upper limit maps themselves are subjected to standard preprocessing steps such as a principal component analysis and Delaunay triangulation (see Figure below). The simplices defined during triangulation are then used for linearly interpolating the data grid, thus allowing SModelS to compute efficiencies or upper limits for arbitrary mass values (as long as they fall inside the data grid). This procedure provides an efficient and numerically robust way of dealing with generic data grids, including arbitrary parametrizations of the mass parameter space, irregular data grids and asymmetric branches.

image

For the sake of efficiency, the entire database -- including the Delaunay triangulation -- is then serialized into a pickle file (<database-path>/database.pcl), which will be read directly the next time the database is loaded. If any changes in the database folder structure are detected, the python or the SModelS version has changed, SModelS will automatically re-build the pickle file. This action may take a few minutes, but it is again performed only once. If desired, the pickling process can be skipped using the option force_load = `txt' in the constructor of Database .