Configuration schema
The configuration schema for cabinetry
is given below.
It is defined via a json schema that can be found at src/cabinetry/schemas/config.json.
The General
block holds general settings, followed by blocks that take lists of objects: regions, samples, normalization factors, and systematics.
The Regions
, Samples
and NormFactors
blocks are required, while Systematics
is optional.
Settings shown in bold are required.
General
general settings |
Regions
list of regions |
|
type |
array |
items |
a region |
minItems |
1 |
uniqueItems |
True |
Samples
list of samples |
|
type |
array |
items |
a sample |
minItems |
1 |
uniqueItems |
True |
NormFactors
list of normalization factors |
|
type |
array |
items |
a normalization factor |
minItems |
1 |
uniqueItems |
True |
Systematics
list of systematics |
|
type |
array |
items |
a systematic uncertainty |
minItems |
0 |
uniqueItems |
True |
Details about the setting blocks:
General settings
general settings |
||||
type |
object |
|||
properties |
||||
|
name of measurement |
|||
type |
string |
|||
|
name of parameter of interest, defaults to empty string |
|||
type |
string |
|||
|
path to input files |
|||
type |
string |
|||
|
folder to save histograms to and read histograms from |
|||
type |
string |
|||
|
list of parameters to treat as constant in fits |
|||
type |
array |
|||
items |
a fixed parameter |
|||
type |
object |
|||
properties |
||||
|
name of fixed parameter |
|||
type |
string |
|||
|
value to fix parameter to |
|||
type |
number |
|||
additionalProperties |
False |
|||
minItems |
1 |
|||
uniqueItems |
True |
|||
|
(part of) path to file containing variation (for histogram inputs), defaults to empty string |
|||
type |
string |
|||
additionalProperties |
False |
Region
a region of phase space |
|||
required: Name + Variable + Binning (for ntuple inputs), Name (for histogram inputs) |
|||
type |
object |
||
properties |
|||
|
name of the region |
||
type |
string |
||
|
variable to bin in |
||
type |
string |
||
|
binning to use in histograms |
||
type |
array |
||
items |
bins |
||
type |
number |
||
minItems |
2 |
||
uniqueItems |
True |
||
|
selection criteria to apply |
||
type |
string |
||
|
(part of) path to file containing region |
||
type |
string |
||
additionalProperties |
False |
Sample
a sample of a specific process or data |
||
required: Name + Tree (for ntuple inputs), Name (for histogram inputs) |
||
type |
object |
|
properties |
||
|
name of the sample |
|
type |
string |
|
|
name of tree |
|
type |
string |
|
|
selection criteria to apply (override for region setting) |
|
type |
string |
|
|
weight to apply to events |
|
type |
string |
|
|
(part of) path(s) to input file(s) |
|
|
if it is a data sample |
|
type |
boolean |
|
|
whether to disable the automatic inclusion of staterror modifiers for this sample, defaults to False |
|
type |
boolean |
|
|
region(s) that contain the sample, defaults to all regions |
|
additionalProperties |
False |
NormFactor
a normalization factor affecting one or more samples |
|||
type |
object |
||
properties |
|||
|
name of the normalization factor |
||
type |
string |
||
|
region(s) that contain the normfactor, defaults to all regions |
||
|
affected sample(s), defaults to all samples |
||
|
nominal value |
||
type |
number |
||
|
lower and upper bound |
||
type |
array |
||
items |
bounds |
||
type |
number |
||
maxItems |
2 |
||
minItems |
2 |
||
uniqueItems |
True |
||
additionalProperties |
False |
Systematic
a systematic uncertainty |
||
type |
object |
|
properties |
||
|
name of the systematic uncertainty |
|
type |
string |
|
|
type of systematic uncertainty |
|
type |
string |
|
enum |
Normalization, NormPlusShape |
|
|
template for “up” variation |
|
|
template for “down” variation |
|
|
region(s) that contain the systematic, defaults to all regions |
|
|
affected sample(s), defaults to all samples |
|
|
smoothing to apply |
|
|
name of modifier in workspace, defaults to value set by Name |
|
type |
string |
|
additionalProperties |
False |
Common options:
Template
a systematic template (up/down) |
||
type |
object |
|
properties |
||
|
name of tree (override for nominal setting) |
|
type |
string |
|
|
weight to apply (override for nominal setting) |
|
type |
string |
|
|
variable to bin in (override for nominal setting) |
|
type |
string |
|
|
selection criteria to apply (override for region / sample setting) |
|
type |
string |
|
|
(part of) path to file containing region (override for nominal setting) |
|
type |
string |
|
|
(part of) path(s) to input file(s) (override for nominal setting) |
|
|
normalization uncertainty to apply |
|
type |
number |
|
|
whether to apply symmetrization |
|
type |
boolean |
|
|
(part of) path to file containing variation (for histogram inputs, override for general setting) |
|
type |
string |
|
additionalProperties |
False |
Sample setting
name(s) of affected sample(s) |
|||
oneOf |
single affected sample |
||
type |
string |
||
multiple affected samples |
|||
type |
array |
||
items |
single affected sample |
||
type |
string |
||
minItems |
1 |
||
uniqueItems |
True |
SamplePath setting
path(s) to input file(s) for histogram production |
|||
a list of paths is only supported for ntuple inputs |
|||
oneOf |
path to single file |
||
type |
string |
||
list of paths |
|||
type |
array |
||
items |
path to single file |
||
type |
string |
||
minItems |
1 |
||
uniqueItems |
True |
Regions setting
name(s) of region(s) |
|||
oneOf |
single region |
||
type |
string |
||
list of regions |
|||
type |
array |
||
items |
single region |
||
type |
string |
||
minItems |
1 |
||
uniqueItems |
True |
Smoothing setting
smoothing settings for template histograms |
||
type |
object |
|
properties |
||
|
name of smoothing algorithm to use |
|
type |
string |
|
enum |
353QH, twice |
|
|
regions to apply smoothing in |
|
|
sample(s) to apply smoothing to, defaults to all samples |
|
additionalProperties |
False |