1 Introduction

In the exploration of extensions of the Standard Model (SM) of particle physics it is mandatory to work with allowed parameter points – points within the parameter space of the model that do not disagree with current observations. Such samples of allowed parameter points can be used to showcase the possible phenomenology in a beyond the SM (BSM) theory or to illustrate the impact of novel calculations for a physically relevant scenario. The code ScannerS [1] can be used to generate and validate samples of such allowed parameter points in many BSM models with extended scalar sectors. All of the BSM models implemented in ScannerS are pure electroweak (EW) scalar extensions of the SM. In particular, ScannerS does not target supersymmetric models or any other BSM models that introduce new colored scalars. The models implemented in ScannerS range from simple singlet extensions of the SM, through the commonly used variants of the two-Higgs-doublet model (2HDM) to extensions by both additional doublets and scalar singlets. We have found these models to be extremely useful as benchmark models for both collider physics and particle cosmology, but also as well understood reference models to study the impact of novel theoretical calculations. We specifically invite users to implement their own models of interest within the ScannerS framework and make those implementations available to the community.

ScannerS performs parameter scans within the parameter space of the model. A parameter scan is a greatly simplified model fit that forgoes making any statements about the model as a whole in favor of a simpler, point-by-point approach. In model fits – such as those performed with the Fittino [2], ZFitter [3], GFitter [4], GAMBIT [5], or HEPFIT [6] public codes – an overall combined \(\chi ^2\) or likelihood is constructed from all available measurements. By sampling this distribution and using the resulting best fit point of the model, statements about the favoured regions of parameter space and the compatibility between model predictions and data can be made.Footnote 1 However, there are many cases where no global statements about the model are required. In these cases performing a full model fit is often excessive and a simpler approach is sufficient.

The parameter scan approach employed in ScannerS does not construct a global likelihood distribution but instead uses a set of individual constraints. This means, that ScannerS tests the model predictions for the (randomly generated) input parameter points against all implemented constraints and treats each parameter point that passes all constraints as allowed. This point-by-point approach means that no overall best-fit-point is found, nor is the resulting sample of allowed parameter points a faithful representation of the global likelihood distribution. These limitations mean that the results of a parameter scan should never be used to make global statements about the model – such as “the model fits the data well” or “the model cannot explain this observation”. Furthermore, no conclusions should be drawn based on the density of the allowed parameter points in the parameter space of the model. This would require the points to follow a statistically meaningful distribution while, in a parameter scan, their distribution entirely depends on the sampling.

On the other hand, the results of a parameter scan are perfectly suited for phenomenological benchmark scenarios, illustrating interesting signatures, checking the effects of precision calculations, and many other applications that only rely on the existence of allowed parameter points in some region of parameter space. Since the naive combination of the individual constraints leads to an overestimated combined constraint, the region covered by the allowed parameter points is a conservative estimate for the favoured region that would be found in a model fit.Footnote 2 The most important advantage of parameter scans is simplicity. Since no best fit point is found or neededFootnote 3 it is perfectly fine to run small parameter scans that only yield a few allowed parameter points or to focus on some special regions of the parameter space that may not necessarily contain the best fit point of the model. Additionally, the non-reliance on the best fit point means that an existing sample of parameter points can simply be re-checked with ScannerS if some constraints are updated and no new scan is required.

This manual discusses the physics of ScannerS and accompanies the release of ScannerS–2. It is complemented by the technical documentation available online at https://jonaswittbrodt.gitlab.io/ScannerS.

ScannerS–2 is a new code inspired by the old ScannerS–1 [1]. Compared to the old code, we implemented substantial technical upgrades and many physics improvements. In this manual we first discuss the constraints included in ScannerS in Sect. 2. In Sect. 3 we then give short overviews of the implemented BSM models to establish the conventions used in the code. Section 4 contains instructions on how to build and use ScannerS and an explanation on how additional models and constraints can be implemented. We summarize in Sect. 5. In Appendix A we describe the anyHdecay interface library and in Appendix B we discuss the Mathematica package for finding perturbative unitarity constraints that is distributed with ScannerS.

2 Constraints

Experimental constraints in ScannerS are implemented at a confidence level (CL) of \({95}{\%}\) or – almost equivalently – \(2\sigma \) while theoretical constraints are simple exclusions without an associated statistical interpretation. As such, the allowed parameter points returned by ScannerS are valid from a theoretical point of view and not excluded by observations at approximately \({95}{\%}~\text {{CL}}\).Footnote 4 Constraints in ScannerS have one of three different severities governing how their result is handled by the code. The strongest and default severity is apply, meaning that only parameter points fulfilling the constraints will be kept as allowed points. If the weakest severity, skip, is set for a constraint, no calculations associated with it will be performed and parameter points will not be tested against it. For a constraint with the intermediate severity, ignore, all associated calculations will be executed and the results saved to the output. However, parameter points will be treated as allowed whether they fulfill the constraint or not, while an additional output value will be added to indicate if the specific constraint was fulfilled. Practical information on setting severities is given in Sect. 4.

Some of the following constraints are not applicable to all of the models implemented in ScannerS. Detailed technical information regarding the implementation of constraints in ScannerS can be found in the online documentation for the ScannerS::Constraints namespace. The online documentation also lists all output quantities associated to the constraints.

2.1 Theoretical constraints

Theoretical constraints are self-consistency requirements on a parameter point of the model. As such, they do not have a statistical interpretation – they are either fulfilled or the parameter point is invalid and excluded.

2.1.1 Perturbative unitarity

If a theory violates unitarity it is strongly coupled and cannot be treated in the perturbative approach employed in ScannerS. Unitarity constraints, are obtained by requiring the eigenvalues \({\mathcal {M}}^i_{2\rightarrow 2}\) of the \(2\rightarrow 2\) scattering matrix \({\mathcal {M}}_{2\rightarrow 2}\) to fulfill

$$\begin{aligned} \left| {\mathcal {M}}_{2\rightarrow 2}^i\right| \le 8\pi \,. \end{aligned}$$
(1)

The tree-level scattering matrix can be easily constructed in most BSM models with extended Higgs sectors in the high energy limit [7, 8]. It often has a block-diagonal form that can – at least partially – be diagonalized analytically. Whenever possible the corresponding closed form solutions for the eigenvalues are implemented in ScannerS.

Tree-level perturbative unitarity provides only a first approximation to the true unitarity constraint on the model parameters. It may be impacted by loop-corrections [9] or finite-energy effects [10,11,12].

2.1.2 Boundedness from below

Boundedness of the scalar potential from below is a prerequisite to the existence of a stable vacuum. ScannerS implements analytical conditions that ensure boundedness from below at tree level, whenever possible. In general, such conditions can be very challenging to obtain (see e.g. Ref. [13] for a recent overview of different methods and their applications). However, closed form solutions have been found for many BSM models – including all of the models implemented in ScannerS, see Sect. 3.

2.1.3 Vacuum stability

Even if the scalar potential is bounded from below, the EW vacuum is not necessarily the global minimum (absolute stability). In this case the lifetime of the EW vacuum with respect to vacuum decay must be long-lived compared to the age of the universe, otherwise the vacuum is unstable.

In some models or phases of models, absolute stability of the tree-level EW vacuum has been proven, or analytic conditions ensuring stability have been found (see also Sect. 3). For the remaining cases, ScannerS offers a link to the EVADE library [14,15,16] to test the stability of the EW vacuum numerically at tree-level. Since the theoretical uncertainties involved in this computation are large and hard to estimate we are very conservative in the application of this constraint and only consider points unstable and excluded if the survival probability of the EW vacuum is less than \(5\sigma \approx 3 \times 10^{-7}\). See the discussion in Ref. [14] for more details.

2.2 Electroweak precision constraints

Precision measurements of EW observables are sensitive to BSM loop effects present in many extended scalar sectors. As long as the BSM effects are fully captured through self-energy corrections to the gauge-boson propagators – which holds in all models discussed here – and the new physics scale is not too small, these effects can be parametrized through the oblique parameters S, T, and U [17]. ScannerS does not compute any EW precision observables and instead uses a fit result – currently from Ref. [18] – for the values of the oblique parameters as constraint. This result includes a covariance matrix to account for correlations among S, T, and U. In order to calculate model predictions for the oblique parameters ScannerS implements the results of Refs. [19, 20], which are valid for models with any number of scalar \({\mathrm {SU}(2)}_L\) doublets and singlets. Given the model predictions and the fit result, we calculate a \(\chi ^2\) value and treat the constraint as fulfilled if \(\chi ^2 < \chi ^2_\text {crit}(2\sigma )\).

2.3 Flavour constraints

Since all of the models currently implemented in ScannerS are naturally flavor conserving [21], the dominant contributions to most flavor observables originate in charged Higgs exchange. Since the charged Higgs sector of all implemented models is either absent or identical to the 2HDM, we treat flavour constraints similar to the EW precision constraints and use the fit results of Ref. [18] providing \(2\sigma \) constraints in the \(m_{H^\pm }\)\(\tan \beta \) parameter plane of the 2HDM. These generalize to models with additional singlets, such as the next-to 2HDM (N2HDM).Footnote 5

2.4 Higgs searches and Higgs measurements

Searches for additional scalars as well as measurements of 125 GeV Higgs boson (\(h_125\)) are among the most important constraints on extended scalar sectors. ScannerS provides an interface to the tools HiggsBounds [22,23,24,25,26] and HiggsSignals [27, 28] to incorporate these constraints. The HiggsBounds input can either be given in the effective coupling approximation or by providing all branching ratios and hadronic cross sections to the Higgs bosons. For simple models, such as pure singlet extensions, the effective coupling approximation is exact and used by ScannerS.

Otherwise, ScannerS uses the anyHdecay library (see Appendix A) as an interface to the many adaptations of the code HDECAY [29,30,31] for different BSM models to obtain model predictions for Higgs boson branching ratios and total widths including state-of-the-art QCD corrections and off-shell effects. To obtain precise cross section predictions, ScannerS includes a tabulated parametrization of the NNLO QCD gluon fusion and \(b{\bar{b}}\)-associated Higgs production cross sections at hadron colliders obtained with SusHi-1.6.1 [32, 33]. Additionally, ScannerS uses cross section parametrizations included in HiggsBounds (see Ref. [26]), such as the \(W^\pm \)/Z-associated cross sections calculated using VH@NNLO [34, 35], as well as the t-associated charged Higgs production cross section at NLO QCD [36,37,38,39,40,41].

HiggsBounds uses this input to check the model predictions against exclusion bounds from Higgs searches at LEP, TEVATRON and the LHC@. Using the expected limit information, only the most sensitive search for each scalar in the model is applied to obtain an approximate combined \(2\sigma \) constraint on the model parameter space. HiggsBounds uses this treatment since applying all of the hundreds of implemented exclusion limits simultaneously would lead to a considerably stronger exclusion than the desired \({95}{\%}~\text {{CL}}\). See Refs. [24, 26] for details.

HiggsSignals uses the same input as HiggsBounds to calculate a \(\chi ^2\) value that quantifies the agreement of the model prediction with up-to-date measurements of the \(h_125\) properties at the LHC@. In interpreting this \(\chi ^2\), ScannerS uses a profiled likelihood ratio test with the SM as the alternative hypothesis. In the Gaussian approximation the test statistic is

$$\begin{aligned} \Delta \chi ^2 = \chi ^2_\text {Model} - \chi ^2_\text {SM}\,,\end{aligned}$$
(2)

where both \(\chi ^2_\text {Model}\) and \(\chi ^2_\text {SM}\) are obtained from HiggsSignals. As discussed in Sect. 1, we use this test statistic – instead of e.g. constructing a goodness-of-fit test using \(\chi ^2_\text {Model}/\text {d.o.f.}\) – since it allows for a much easier statistical interpretation and does not require knowledge about the best fit point of the model. The resulting \(\Delta \chi ^2\) approximately describes the best-fit region of the parameter space. The upper bound \(\chi ^2_\text {crit}\) to be imposed on \(\Delta \chi ^2\) depends on the desired confidence level and on the number \(\nu \) of degrees of freedom. As stated above, we aim to impose \(2\sigma \) constraints in the Gaussian limit and thus \(\Delta \chi ^2 < \chi ^2_\text {crit}(2\sigma ,\nu )\). When presenting results where all but n model parameters and all nuisance parameters are profiled over, the set of allowed parameter points are those with \(\Delta \chi ^2 < \chi ^2_\text {crit}(2\sigma ,n)\). In ScannerS, we by default use

$$\begin{aligned} \Delta \chi ^2 < 6.18\,,\end{aligned}$$
(3)

which corresponds to a \(2\sigma \) constraint for \(n=2\) under the assumption of Gaussian errors. The choice of a fixed \(n=2\) is an arbitrary but very commonly made approximation. It is fully correct in the common case where results are presented as a function of two parameters of interest, i.e. in benchmark planes or scatter plots. In particular, it avoids the issue of correctly determining the appropriate value of \(\nu \), which is challenging and requires detailed knowledge about the best fit point of the model. See Ref. [28] for an in depth discussion of the different possibilities to interpret the \(\chi ^2\) value.

2.5 Electric dipole moments

In CP-violating models the stringent limits on fermionic electric dipole moments (EDMs) have to be considered. ScannerS includes a constraint to check the model prediction for the electron EDM against the latest limits by the ACME collaboration [42]. Constraints from the neutron or nuclear EDMs could easily be included in ScannerS if theoretical predictions for these quantities are available in the model.

2.6 DM constraints

A global symmetry of an extended scalar sector that remains unbroken after EW symmetry breaking (EWSB) may lead to a dark sector with a stable lightest particle. Such a particle is a dark matter (DM) candidate and constraints from DM searches need to be considered. ScannerS includes an interface to the code MicrOMEGAs [43,44,45,46,47,48,49] to calculate DM observables. The relic density \(\omega _c^\text {model}\) predicted by the model is required not to exceed the observed dark matter density \(\omega _c\) [50],

$$\begin{aligned} \omega ^\text {model}_c \le \omega _c + 2 \Delta \omega _c\,,\end{aligned}$$
(4)

where \(\Delta \omega _c\) is the uncertainty of the measurement. By imposing only an upper bound we allow for additional contributions to DM beyond the one stemming from the model under consideration.

ScannerS also imposes constraints from dark matter searches using direct detection – more specifically the XENON1T results [51]. The required dark-matter–nucleon scattering cross sections are also obtained from MicrOMEGAs. ScannerS currently does not include constraints from indirect detection or collider searches for dark particles, as these are not available as simple, model-independent limits and require additional effort to interpret them correctly. Since MicrOMEGAs can compute and test some of these constraints, they could be included in ScannerS by extending the existing interface. However, in the parameter scan approach it is also valid to apply additional constraints such as these on top of the ScannerS results using dedicated external computations.

2.7 A first order EW phase transition

When studying models that could facilitate EW baryogenesis [52,53,54,55] or in the context of gravitational wave signatures [56,57,58,59,60,61,62,63] (see also Ref. [64]) it is interesting to look at parameter regions where the EW phase transition (EWPT) is (strongly) first order. ScannerS includes an interface to the BSMPT [65, 66] library to calculate the strength of the EWPT in several of the implemented models. When using this constraint, ScannerS requires that the EWPT is of first order and that the EW vacuum at zero temperature is the global minimum of the 1-loop effective potential. This second requirement – which contains the requirement that the 1-loop effective potential is bounded from below – is a prerequisite for the phase transition search and is verified numerically within BSMPT.

This constraint by default only requires the EWPT to be first order without putting any bound on the strength of the phase transition. However, the critical temperature \(T_c\) and critical vacuum expectation value (vev) \(\omega _c\)Footnote 6 are stored in the output, such that more stringent requirements – e.g. \(\omega _c>T_c\) for a strong first order EWPT – can be imposed in post-processing. Note that in general, there is no physical requirement that the EWPT has to be first order. Therefore, you should only enable this constraint if you wish to study physics associated with a first order EWPT.

3 BSM Models in ScannerS

ScannerS includes implementations for a variety of BSM models with extended scalar sectors. In this section, we will give short overviews of the implemented models mainly meant to establish the conventions used in the ScannerS implementation. Additional technical information on all implemented models can be found in the online documentation for the model classes in the ScannerS::Models namespace. The name of the model class and ScannerS executable for each model is indicated in the title of the subsection with the corresponding model or phase description.

3.0.1 Input parameters and mass-ordering

As the very first step for each parameter point, ScannerS calculates all model parameters from a chosen set of input parameters.Footnote 7 The input parameters are chosen to allow for a physically motivated selection of scan ranges. This means that physical masses, mixing angles or couplings, and vevs are used rather than directly using the parameters of the scalar potential.

In most BSM models, scalars of identical charge and CP, \(h_i\), are distinguished based on their mass – typically by imposing some kind of mass ordering, e.g. \(m_{h_i}\le m_{h_j}\) for \(i<j\). In contrast to more complex BSM models – such as supersymmetry or composite Higgs models – the \(m_{h_i}\) can be chosen as input parameters in all of the scalar extensions implemented in ScannerS. This greatly facilitates phenomenological studies, as one of the Higgs masses can be set to match the observed mass of \(h_125\). However, since the other scalars can in general be either lighter or heavier than \(h_125\) it is inconvenient to use mass ordered states as input. Instead, ScannerS uses a basis of input states \(h_{a,b,c,\ldots }\) for which no ordering is required.

As an example, consider a model with three mixing scalars. The three by three mixing matrix is parametrized as

$$\begin{aligned} R = \begin{pmatrix} c_1 c_2 &{}\quad s_1 c_2 &{}\quad s_2 \\ -(c_1 s_2 s_3 + s_1 c_3) &{}\quad c_1 c_3 - s_1 s_2 s_3 &{}\quad c_2 s_3 \\ - c_1 s_2 c_3 + s_1 s_3 &{}\quad -(c_1 s_3 + s_1 s_2 c_3) &{}\quad c_2 c_3 \end{pmatrix}\,, \end{aligned}$$
(5)

where \(c_{1,2,3} = \cos \alpha _{1,2,3}\) and \(s_{1,2,3} = \sin \alpha _{1,2,3}\) for the three mixing angles \(-\pi /2 \le \alpha _{1,2,3} < \pi /2\). This parametrization is sufficiently general for physics purposes, but is not a full parametrization of O(3), in particular – since \(\cos \alpha _i\ge 0\) for the chosen angular ranges – it requires

$$\begin{aligned} \det R&= +1\,,&R_{11}&\ge 0\,,&R_{33}&\ge 0\,. \end{aligned}$$
(6)

The model input is given in the form of three Higgs masses, e.g. 

$$\begin{aligned} m_{h_a}&= {125}{\,\hbox {GeV}}\,,&m_{h_b}&={300}{\,\hbox {GeV}}\,,&m_{h_c}={50}{\,\hbox {GeV}}\,, \end{aligned}$$
(7)

and values for the three input mixing angles \(\alpha ^\text {in}_{1,2,3}\) that parametrize \(R^\text {in}\) in the basis

$$\begin{aligned} \begin{pmatrix}h_a\\ h_b\\ h_c\end{pmatrix} = R^\text {in} \begin{pmatrix}\phi _1\\ \phi _2\\ \phi _3\end{pmatrix}\,,\end{aligned}$$
(8)

where \(\phi _{1,2,3}\) are the mixing fields of the scalar potential. To convert this to the desired basis \({(h_1,h_2,h_3)}^\text {T}\) with \(m_{h_1}<m_{h_2}<m_{h_3}\), a set of row transpositions is applied on the mixing matrix, such that – for the example mass values of Eq. (7)

$$\begin{aligned} \begin{pmatrix}h_1\\ h_2\\ h_3\end{pmatrix} \equiv \begin{pmatrix}h_c\\ h_a\\ h_b\end{pmatrix} = \begin{pmatrix} R^\text {in}_{c1} &{}\quad R^\text {in}_{c2} &{}\quad R^\text {in}_{c3} \\ R^\text {in}_{a1} &{}\quad R^\text {in}_{a2} &{}\quad R^\text {in}_{a3} \\ R^\text {in}_{b1} &{}\quad R^\text {in}_{b2} &{}\quad R^\text {in}_{b3} \end{pmatrix} \begin{pmatrix}\phi _1\\ \phi _2\\ \phi _3\end{pmatrix}\,.\end{aligned}$$
(9)

In general, the resulting mixing matrix no longer fulfills Eq. (6) and is thus no longer parametrized by Eq. (5). The parametrization can be restored by physically irrelevant field redefinitions of the form \(h_i\rightarrow -h_i\) that flip the sign of all elements in a row of the mixing matrix, i.e. \(h_1\rightarrow -h_1\) if \(R_{11}<0\), \(h_3\rightarrow -h_3\) if \(R_{33}<0\), and finally \(h_2\rightarrow -h_2\) if \(\det R = -1\).Footnote 8

This procedure works analogously for other dimensionalities or different parametrizations of R. It can also be used if not all of the masses are input parameters. In this case the remaining masses are first calculated using \(R^\text {in}\) and then the reordering is performed.

The input parametrizations in ScannerS are usually agnostic regarding which of the \(H_a\) is identified with \(h_125\). Any exceptions to this are stated in the description of the parametrizations below.

3.1 The complex-singlet-extension of the SM

Pure extension of the SM by gauge-singlet scalar fields are the simplest possible extended scalar sectors. The complex-singlet-extension of the SM (CxSM) [1, 67, 68] adds a complex singlet field \({\mathbb {S}}\) with a softly broken U(1) symmetry to the SM. The implementation in ScannerS follows Refs. [1, 68] where an additional symmetry under \({\mathbb {S}}\rightarrow {\mathbb {S}}^*\) is imposed that forces all model parameters to be real. The resulting scalar potential is

$$\begin{aligned} V_\text {CxSM}= & {} \frac{m^2}{2} \Phi ^\dagger \Phi + \frac{\lambda }{4} {(\Phi ^\dagger \Phi )}^2 + \frac{\delta _2}{2} \Phi ^\dagger \Phi |{\mathbb {S}}|^2 \nonumber \\&+ \frac{b_2}{2} |{\mathbb {S}}|^2 + \frac{d_2}{4} |{\mathbb {S}}|^4 \nonumber \\&+ \left( \frac{b_1}{4}{\mathbb {S}}^2 + a_1{\mathbb {S}} + \text {h.c.}\right) \end{aligned}$$
(10)

with seven real parameters. The CxSM allows for different phases, where different fields acquire vevs. Implementations for the broken phase and the dark phase are included in ScannerS. The following constraints are included for both phases with very similar implementations:

  • The perturbative unitarity constraint was obtained purely numerically in Refs. [1, 68]. ScannerS instead uses the analytic conditions (see Appendix B)

    $$\begin{aligned}&\frac{|\lambda |}{2}\,,\; \frac{|\delta _2|}{2}\,,\; \frac{|d_2|}{2}< 8\pi \,,\nonumber \\&\frac{\left| 2 d_2 + 3 \lambda \pm \sqrt{8 \delta _2^2 + {(2d_2-3\lambda )}^2}\right| }{4} < 8\pi \,.\end{aligned}$$
    (11)
  • Boundedness from below is ensured using the known analytic conditions [1].

  • The oblique parameters are calculated and tested using the generic method described in Sect. 2.2.

  • The branching ratios of the scalars are calculated using sHDECAY [68] through the anyHdecay interface (see Appendix A).

  • Predictions for gluon-fusion and bb-associated Higgs production at hadron colliders are obtained using tabulated results from SusHi (see Sect. 2.4) and the parametrization included in HiggsBounds is used to obtain cross sections for the VH-associated (sub)channels (see Ref. [26]).

  • Constraints from Higgs searches and Higgs measurements are tested with HiggsBounds and HiggsSignals as described in Sect. 2.4 using the aforementioned predictions for branching ratios and cross sections.

  • Using BSMPT for the calculation, the EWPT can be required to be first order. Since this requirement is not a necessary constraint it is not enabled by default (see Sect. 2.7).

3.1.1 The broken-phase CxSM – CxSMBroken

The CxSM is in the broken phase if both the real and imaginary parts of \({\mathbb {S}}\) acquire non-zero vevs. This leads to a Higgs sector with three mixing CP-even scalar bosons \(h_i\) (\(i\in \lbrace 1,2,3\rbrace \)). ScannerS uses the input parameters [68]

$$\begin{aligned}&m_a\,,&m_b\,,&\alpha ^\text {in}_1\,,&\alpha ^\text {in}_2\,,&\alpha ^\text {in}_3\,,&v_S\,,&v&= v_\text {EW}\,,\end{aligned}$$
(12)

where \(m_{a,b}\) are the masses of two of the \(h_i\), \(\alpha ^\text {in}_{1,2,3}\) are the input mixing angles, \(v_S\) is the real singlet vev, and \(v_\text {EW}\approx {246}{\,\hbox {GeV}}\) is the EW vev. The third scalar input mass \(m_c\) is calculated through

$$\begin{aligned} m_c^2 = - \frac{m_a^2m_b^2 R^\text {in}_{c1}R^\text {in}_{c2}}{m_a^2 R^\text {in}_{b1}R^\text {in}_{b2} + m_b^2 R^\text {in}_{a1}R^\text {in}_{a2}}\,. \end{aligned}$$
(13)

If Eq. (13) predicts a tachyonic \(m_c^2\) the corresponding parameter point is rejected.

3.1.2 The dark-phase CxSM – CxSMDark

If the imaginary part of \({\mathbb {S}}\) acquires no vev during EWSB, the corresponding particle is a dark-matter candidate stabilized by a \({\mathbb {Z}}_2\) symmetry. The real component of the singlet field still has a non-zero vev and mixes with the SM Higgs boson. The additional assumption \(a_1=0\) is made, such that this dark phase of the CxSM only has six real parameters:

$$\begin{aligned}&m_a\,,&m_b\,,&m_X\,,&\alpha ^\text {in}&v_S\,,&v&= v_\text {EW}\,,\end{aligned}$$
(14)

where \(m_{a,b}\) are the masses of the two visible Higgs bosons, \(m_X\) is the mass of the dark scalar, \(\alpha ^\text {in}\) is the input mixing angle, and \(v_S\) is the real singlet vev. The convention for the mixing angle \(\alpha \) matches Eq. (5) with \(\alpha _1\rightarrow \alpha \) and \(\alpha _{2,3}\rightarrow 0\) (and analogously for the \(\alpha ^\text {in}\)). Since the dark phase contains a DM candidate, the corresponding DM constraints have to be considered in addition to the constraints discussed in Sect. 3.1:

  • Dark matter observables are calculated using MicrOMEGAs and tested against the experimental limits as discussed in Sect. 2.6.

3.2 The two-real-singlet-extension of the SM

The two-real-singlet-extension of the SM (TRSM) [69] is a different extension of the SM by two real scalar degrees of freedom. The scalar potential in terms of two real scalar fields S and X is given by

$$\begin{aligned} V_\text {TRSM}= & {} \mu _{\Phi }^2 \Phi ^\dagger \Phi + \lambda _{\Phi } {(\Phi ^\dagger \Phi )}^2 + \mu _{S}^2 S^2 \nonumber \\&+ \lambda _S S^4 + \mu _{X}^2 X^2 + \lambda _X X^4 + \lambda _{\Phi S} \Phi ^\dagger \Phi S^2 \nonumber \\&+ \lambda _{\Phi X} \Phi ^\dagger \Phi X^2 + \lambda _{XS} S^2 X^2\,.\end{aligned}$$
(15)

This scalar potential respects a \({\mathbb {Z}}_2 \otimes {\mathbb {Z}}_2 \) symmetry for S and X and has nine real parameters. Depending on the vacuum structure the TRSM allows for different phases, though only the broken phase is currently implemented.

3.2.1 The broken-phase TRSM – TRSMBroken

In the broken phase both S and X acquire vacuum expectation values \(v_S\) and \(v_X\), respectively. This phase with three mixing CP-even scalars \(h_i\) (\(i\in \lbrace 1,2,3\rbrace \)) was studied in detail in Ref. [69] and we follow the conventions used there. The input parameters are

$$\begin{aligned}&M_a\,,&M_b\,,&M_c\,,&\theta ^\text {in}_{hS}&\theta ^\text {in}_{hX}\,,&\theta ^\text {in}_{SX}\,,&v_S\,,&v_X\,,&v = v_\text {EW}\,, \end{aligned}$$
(16)

where \(M_{a,b,c}\) are the three Higgs masses, \(\theta ^\text {in}_{hS}\), \(\theta ^\text {in}_{hX}\), \(\theta ^\text {in}_{SX}\) are the input mixing angles, and \(v_{S,X}\) are the singlet vevs. The mixing angles \(\theta \) parametrize the mixing matrix R of Eq. (5) as

$$\begin{aligned} \theta _{hS}&\equiv -\alpha _1\,,&\theta _{hX}&\equiv -\alpha _2\,,&\theta _{SX}&\equiv -\alpha _3\,.\end{aligned}$$
(17)

Analogous relations hold for the corresponding input quantities \(\theta ^\text {in}\), \(R^\text {in}\), and \(\alpha ^\text {in}\).

In the broken phase of the TRSM, ScannerS implements the following constraints and calculations:

  • Perturbative unitarity and boundedness from below are ensured using the analytic conditions given in Ref. [69].

  • The oblique parameters are calculated and tested using the generic method of Sect. 2.2.

  • The Higgs-to-Higgs decay widths of the scalars are calculated at tree-level and combined with the appropriately rescaled SM-like branching ratios as tabulated in HiggsBounds using the effective coupling input (see Ref. [26]).

  • HiggsBounds and HiggsSignals are used to test constraints from Higgs data as described in Sect. 2.4.

3.3 The two-Higgs-doublet model

The 2HDM [70] (see e.g. Ref. [71] for a review) is probably the most studied non-supersymmetric scalar extension of the SM. In the conventions of Ref. [71] the scalar potential of the 2HDM with a softly broken \({\mathbb {Z}}_2\) symmetry is given by

$$\begin{aligned} V_\text {2HDM}= & {} m_{11}^2 \Phi _1^\dagger \Phi _1 + m_{22}^2 \Phi _2^\dagger \Phi _2 - (m_{12}^2 \Phi _1^\dagger \Phi _2 + \text {h.c.}) \nonumber \\&+ \frac{\lambda _1}{2} {(\Phi _1^\dagger \Phi _1)}^2 + \frac{\lambda _2}{2} {(\Phi _2^\dagger \Phi _2)}^2 + \lambda _3 (\Phi _1^\dagger \Phi _1)(\Phi _2^\dagger \Phi _2) \nonumber \\&+ \lambda _4 (\Phi _1^\dagger \Phi _2)(\Phi _2^\dagger \Phi _1) + \left( \frac{\lambda _5}{2}{(\Phi _1^\dagger \Phi _2)}^2 + \text {h.c.}\right) \end{aligned}$$
(18)

The softly broken \({\mathbb {Z}}_2\) symmetry is extended to the Yukawa sector to prevent tree-level flavour changing neutral currents leading to the four Yukawa types of the 2HDM.

The parameters \(m_{12}^2\) and \(\lambda _5\) of Eq. (18) can take complex values and lead to a CP-violating scalar sector. ScannerS implements two variants of the 2HDM – the CP-conserving real 2HDM (R2HDM) and the CP-violating complex 2HDM (C2HDM) [72,73,74]. The following constraints have similar implementations in both cases.

  • Perturbative unitarity and boundedness from below are tested using the analytic conditions given in Ref. [71].

  • The oblique parameters are calculated and tested using the generic method of Sect. 2.2.

  • Constraints from b-physics are tested as discussed in Sect. 2.3.

  • Using BSMPT for the calculation, the EWPT can be required to be first order. Since this requirement is not a necessary constraint it is not enabled by default (see Sect. 2.7).

3.3.1 The R2HDM – R2HDM

In the R2HDM, CP-conservation is imposed in the Higgs sector forcing all eight parameters of Eq. (18) to be real. In the R2HDM, the mixing matrix is conventionally defined through

$$\begin{aligned} \begin{pmatrix} H \\ h \end{pmatrix} = \begin{pmatrix} \cos \alpha &{} \quad \sin \alpha \\ -\sin \alpha &{} \quad \cos \alpha \\ \end{pmatrix}\begin{pmatrix}\rho _1\\ \rho _2\end{pmatrix}\quad \text {with }-\pi /2\le \alpha <\pi /2\,, \nonumber \\ \end{aligned}$$
(19)

where \(\rho _{1,2}\) are the real, neutral component fields of the two doublets. One set of input parameters implemented in ScannerS is thus

$$\begin{aligned}&m_{H_a}\,,&m_{H_b}\,,&m_A\,,&m_{H^\pm }\,,&\alpha ^\text {in}\,,&\nonumber \\&\tan \beta \,,&m_{12}^2\,,&v = v_\text {EW}\,,\end{aligned}$$
(20)

where \(m_{H_{a,b}}\) are the neutral, CP-even Higgs masses, \(m_A\) is the mass of the pseudoscalar, \(m_H^\pm \) is the charged Higgs mass, \(\alpha ^\text {in}\) is the CP-even neutral sector input mixing angle, \(\tan \beta =v_2/v_1\) is the ratio of the vevs, and \(m_{12}^2\) is the soft \({\mathbb {Z}}_2\)-breaking parameter. Furthermore, the Yukawa type has to be specified, which can be either

$$\begin{aligned} 1&\equiv \text {type I}\,,&2&\equiv \text {type II}\,,\nonumber \\ 3&\equiv \text {lepton specific}\,,&4&\equiv \text {flipped}\,. \end{aligned}$$
(21)

Instead of using \(\alpha ^\text {in}\) as input parameter, ScannerS also implements an alternative (default) input parametrization in terms of the effective gauge coupling of \(H_b\),

$$\begin{aligned} c(H_b VV) = \sin (\beta - \alpha ^\text {in})\,.\end{aligned}$$
(22)

Restricting \(c(H_b VV)\sim 0\) forces \(H_a\) to be close to the alignment limit. This is the default parametrization of the R2HDM consisting of

$$\begin{aligned}&m_{H_a}\,,&m_{H_b}\,,&m_A\,,&m_{H^\pm }\,,&c(H_b VV)\,,\nonumber \\&\tan \beta \,,&m_{12}^2\,,&v = v_\text {EW}\,,\end{aligned}$$
(23)

together with the Yukawa type.

The following constraints and calculations in the R2HDM are implemented in addition to the ones mentioned in Sect. 3.3:

  • Absolute stability of the EW vacuum is ensured using the discriminant of Ref. [75].

  • The branching ratios of the scalars are calculated using HDECAY [29,30,31] through the anyHdecay interface (see Appendix A).

  • Predictions for gluon-fusion and bb-associated Higgs production at hadron colliders are obtained using tabulated results from SUSHI (see Sect. 2.4). The HiggsBounds parametrizations are used to obtain cross section predictions for the VH-associated (sub)channels and for charged Higgs production in association with a top-quark (see Ref. [26]).

  • HiggsBounds and HiggsSignals are used to test constraints from Higgs data as described in Sect. 2.4.

3.3.2 The C2HDM – C2HDM

If complex values for \(m_{12}^2\) and \(\lambda _5\) are allowed, the 2HDM scalar potential can be CP-violating [73]. The phases of these two parameters are not both independent, such that the C2HDM has nine real free parameters. The C2HDM was discussed in detail in Ref. [76] and we follow the conventions used there. The \(3\times 3\) mixing matrix of the neutral scalars is parametrized as in Eq. (5). The input parametrization in terms of the mixing angles \(\alpha ^\text {in}_{1,2,3}\) is

$$\begin{aligned}&m_{H_a}\,,&m_{H_b}\,,&m_{H^\pm }\,,&\alpha ^\text {in}_1\,,&\alpha ^\text {in}_2\,,&\nonumber \\&\alpha ^\text {in}_3\,,&\tan \beta \,,&\Re (m_{12}^2)\,,&v = v_\text {EW}\,,\end{aligned}$$
(24)

where \(m_{H_{a,b}}\) are two of the neutral Higgs masses, \(m_{H^\pm }\) is the charged Higgs mass, \(\alpha ^\text {in}_{1,2,3}\) are the neutral-sector input mixing angles, \(\tan \beta =v_2/v_1\) is the ratio of the vevs and \(\Re (m_{12}^2)\) is the real part of the soft \({\mathbb {Z}}_2\)-breaking parameter. Furthermore, the Yukawa type needs to be specified. The third neutral scalar mass \(m_{H_c}\) is calculated from the two other ones using [76]

$$\begin{aligned}&m_{H_c}^2 \nonumber \\&= \frac{m_{H_a}^2 R^\text {in}_{a3}(R^\text {in}_{a2}\tan \beta - R^\text {in}_{a1}) + m_{H_b}^2 R^\text {in}_{b3}(R^\text {in}_{b2}\tan \beta -R^\text {in}_{b1})}{R^\text {in}_{c3}(R^\text {in}_{c1}-R^\text {in}_{c2}\tan \beta )}\,.\nonumber \\ \end{aligned}$$
(25)

If this results in a tachyonic \(H_c\) the parameter point is rejected.

ScannerS implements a second C2HDM input parametrization in terms of the couplings and mixing matrix elements of \(H_a\) and \(H_b\). The input parameters are

$$\begin{aligned} \begin{aligned}&m_{H_a}\,,&m_{H_b}\,,&m_{H^\pm }\,,&\\&\tan \beta \,,&\Re (m_{12}^2)\,,&v = v_\text {EW}\,,\\&c^2(H_a VV)\,,&|c(H_a t{\bar{t}})|^2\,,&\mathrm {sign}(R^\text {in}_{a3})\,,&R^\text {in}_{b3}\,,\end{aligned} \end{aligned}$$
(26)

where \(c(H_a VV)\) denotes the effective coupling of \(H_a\) to the massive gauge bosons (\(V\in \lbrace W^\pm ,Z\rbrace \)), \(|c(H_a t{\bar{t}})|^2\) is the squared absolute value of the effective coupling between \(H_a\) and top-quarks, and \(R^\text {in}_{a3}\) and \(R^\text {in}_{b3}\) are the mixing matrix elements between the input states \(H_{a,b}\) and the pseudoscalar gauge eigenstate. Additionally, the Yukawa type has to be specified. The second sign required to compensate for the two squared couplings as input is fixed by assuming

$$\begin{aligned} c(H_a VV)c^e(H_a t{\bar{t}})>0\,.\end{aligned}$$
(27)

This assumption is enforced by the Higgs measurements for \(H_a\equiv h_{125}\) which should be chosen when using this parametrization. The mixing angles are obtained from these couplings using the relations

$$\begin{aligned} c(H_a VV)&= \cos \beta R^\text {in}_{a1} + \sin \beta R^\text {in}_{a2}\,,\end{aligned}$$
(28)
$$\begin{aligned} |c(H_a t{\bar{t}})|^2&= {(c^e(H_a t{\bar{t}}))}^2 + {(c^o(H_a t{\bar{t}}))}^2 \end{aligned}$$
(29)
$$\begin{aligned}&= {\left( \frac{R_{a2}}{\sin \beta }\right) }^2 + {\left( \frac{R_{a3}}{\tan \beta }\right) }^2\,,\end{aligned}$$
(30)

in combination with Eq. (5), where \(c^e\) and \(c^o\) refer to the CP-even and CP-odd components of the effective Higgs-fermion coupling, respectively. If this system of conditions does not yield a valid solution for \(\alpha ^\text {in}_{1,2,3}\) the parameter point is rejected. This parametrization is very useful to ensure that \(H_a\equiv h_{125}\) has SM-like couplings and is used by default.

ScannerS checks the following constraints in addition to the ones mentioned in Sect. 3.3:

  • Absolute stability of the EW vacuum is ensured using the discriminant of Ref. [77].

  • The branching ratios of the scalars are calculated using C2HDM_HDECAY [76] through the anyHdecay interface (see Appendix A).

  • Predictions for gluon-fusion and bb-associated Higgs production at hadron colliders are obtained using tabulated results from SUSHI (see Sect. 2.4). CP-mixing effects are included, but CP-interference effects like the ones discussed in [78] are not included. The HiggsBounds parametrizations are used to obtain cross section predictions for the CP-mixed VH-associated (sub)channels and for charged Higgs production in association with a top-quark (see Ref. [26]).

  • HiggsBounds and HiggsSignals are used to test constraints from Higgs data as described in Sect. 2.4.

  • The model prediction for the electron EDM is calculated following Ref. [79] and checked against the limit by the ACME collaboration [42].

3.4 The next-to 2HDM

The next-to 2HDM (N2HDM) [80,81,82] adds an additional real scalar singlet field \(\Phi _S\) to the R2HDM. In the conventions of Ref. [82] its scalar potential is given by

$$\begin{aligned} V_\text {N2HDM}= & {} m_{11}^2 \Phi _1^\dagger \Phi _1 + m_{22}^2 \Phi _2^\dagger \Phi _2 - m_{12}^2 (\Phi _1^\dagger \Phi _2 + \text {h.c.}) \nonumber \\&+ \frac{\lambda _1}{2} {(\Phi _1^\dagger \Phi _1)}^2 + \frac{\lambda _2}{2} {(\Phi _2^\dagger \Phi _2)}^2 + \lambda _3 (\Phi _1^\dagger \Phi _1)(\Phi _2^\dagger \Phi _2)\nonumber \\&+\lambda _4 (\Phi _1^\dagger \Phi _2)(\Phi _2^\dagger \Phi _1)\nonumber \\&+ \frac{\lambda _5}{2}({(\Phi _1^\dagger \Phi _2)}^2 + \text {h.c.}) + \frac{m_S^2}{2}\Phi _S^2 + \frac{\lambda _6}{8}\Phi _S^4 \nonumber \\&+ \frac{\lambda _7}{2}(\Phi _1^\dagger \Phi _1)\Phi _S^2 + \frac{\lambda _8}{2}(\Phi _2^\dagger \Phi _2)\Phi _S^2\,.\end{aligned}$$
(31)

The N2HDM scalar potential has an exact \({\mathbb {Z}}_2\) symmetry for the singlet field in addition to the softly broken \({\mathbb {Z}}_2\) symmetry of the doublet field inherited from the 2HDM. The doublet \({\mathbb {Z}}_2\) symmetry leads to the same 2HDM types when extended to the Yukawa sector. The N2HDM features different phases, depending on which symmetries remain unbroken after EWSB. Most constraints and calculations are implemented similarly for all phases of the N2HDM:

  • Perturbative unitarity and boundedness from below [83] are ensured using the analytic conditions given in Ref. [82].

  • The oblique parameters are calculated and tested using the generic method of Sect. 2.2.

  • The branching ratios of the scalars are calculated using N2HDECAY [82, 84] through the anyHdecay interface (see Appendix A).

  • Predictions for gluon-fusion and bb-associated Higgs production at hadron colliders are obtained using tabulated results from SUSHI (see Sect. 2.4). The HiggsBounds parametrizations are used to obtain cross section predictions for the VH-associated (sub)channels and for charged Higgs production in association with a top-quark (see Ref. [26]).

  • HiggsBounds and HiggsSignals are used to test constraints from Higgs data as described in Sect. 2.4.

  • Metastability constraints on the stability of the EW vacuum are obtained using the EVADE library. See also Ref. [15] for a detailed study of vacuum stability in the broken-phase N2HDM.

3.4.1 The broken-phase N2HDM – N2HDMBroken

If both doublets and the singlet fields acquire non-zero vevs the EW vacuum of the N2HDM is in the broken phase. In this phase, the three CP-even neutral scalar fields mix with the \(3\times 3\) mixing matrix parametrized as Eq. (5). The input parametrization in terms of the mixing angles \(\alpha ^\text {in}_{1,2,3}\) is

$$\begin{aligned} \begin{aligned}&m_{H_a}\,,&m_{H_b}\,,&m_{H_c}\,,&\\&m_A\,,&m_{H^\pm }\,,&\tan \beta \,,&\alpha ^\text {in}_1\,,&\alpha ^\text {in}_2\,,&\\&\alpha ^\text {in}_3\,,&m_{12}^2\,,&v_S\,,&v = v_\text {EW}\,,\end{aligned} \end{aligned}$$
(32)

where \(m_{H_{a,b,c}}\) are the CP-even scalar Higgs masses, \(m_A\) is the pseudoscalar mass, \(m_{H^\pm }\) is the charged Higgs mass, \(\tan \beta =v_2/v_1\) is the ratio of the doublet vevs, \(\alpha ^\text {in}_{1,2,3}\) are the input mixing angles of the CP-even neutral scalar sector, \(m_{12}^2\) is the soft \({\mathbb {Z}}_2\)-breaking parameter and \(v_S\) is the singlet vev. Additionally, the Yukawa type has to be specified as in Eq. (21). Similar to the C2HDM we provide a reparametrization in terms of effective couplings and mixing matrix elements. In this case the input parameters are

$$\begin{aligned} \begin{aligned}&m_{H_a}\,,&m_{H_b}\,,&m_{H_c}\,,&\\&m_A\,,&m_{H^\pm }\,,&\tan \beta \,,\\&c^2(H_a VV)\,,&c^2(H_a t{\bar{t}})\,,&\text {sign}(R^\text {in}_{a3})\,,&R^\text {in}_{b3}&\\&m_{12}^2\,,&v_S\,,&v = v_\text {EW}\,,\end{aligned} \end{aligned}$$
(33)

where \(c(H_a VV)\) and \(c(H_a t{\bar{t}})\) are the effective couplings of \(H_a\) to massive gauge bosons and top-quarks, respectively, while \(R^\text {in}_{a3}\) and \(R^\text {in}_{b3}\) are the mixing matrix elements between \(H_{a,b}\) and the singlet field. The Yukawa type has to be specified as an additional input parameter. The second sign required to compensate for the squared coupling input is again fixed by the assumption

$$\begin{aligned} c(H_a VV)c(H_a t{\bar{t}})>0\,,\end{aligned}$$
(34)

which is physically motivated for \(H_a\equiv h_{125}\) which should be chosen when using this parametrization. We obtain the mixing angles from the couplings using

$$\begin{aligned} c(H_a VV)&= \cos \beta R^\text {in}_{a1} + \sin \beta R^\text {in}_{a2}\,,\end{aligned}$$
(35)
$$\begin{aligned} c(H_a t{\bar{t}})&= \frac{R^\text {in}_{a2}}{\sin \beta }\,,\end{aligned}$$
(36)

and Eq. (5).

On top of the constraints listed in Sect. 3.4, the broken phase N2HDM implements the following:

  • Using BSMPT for the calculation [85], the EWPT can be required to be first order. Since this requirement is not a necessary constraint it is not enabled by default (see Sect. 2.7).

3.4.2 The dark-singlet-phase N2HDM – N2HDMDarkS

If the singlet vev is zero after EWSB, the singlet field \(\Phi _S\) is a mass eigenstate stabilized by the \({\mathbb {Z}}_2\) symmetry of \(\Phi _S\). In this dark-singlet-phase [81, 84, 86, 87] we follow the conventions of Ref. [87]. The mixing between the two visible CP-even neutral scalars is treated in the convention of the R2HDM in Eq. (19), though – for better analogy to the other phases – this \(2\times 2\) mixing is embedded in a \(3\times 3\) mixing matrix [87]. The input parameters are

$$\begin{aligned} \begin{aligned}&m_{H_a}\,,&m_{H_b}\,,&m_A\,,&m_{H^\pm }\,,&m_{H_D}\,,&\tan \beta \,,\\&\alpha ^\text {in}\,,&m_{12}^2\,,&\lambda _6\,,&\lambda _7\,,&\lambda _8\,,&v = v_\text {EW}\,,\end{aligned} \end{aligned}$$
(37)

together with the Yukawa type, where now \(m_{H_{a,b}}\) are the masses of the visible CP-even scalars, \(m_{H_D}\) is the mass of the dark scalar, and \(\alpha ^\text {in}\) is the remaining visible-sector mixing angle. In addition to the constraints listed in Sect. 3.4, the dark-singlet-phase N2HDM also implements the following:

  • Dark matter observables are calculated using MicrOMEGAs and tested against the experimental limits as discussed in Sect. 2.6. Due to the limitations of the model file format used by MicrOMEGAs, dark matter observables can currently only be calculated for Yukawa sectors of type I.

3.4.3 The dark-doublet-phase N2HDM – N2HDMDarkD

If \(m_{12}^2=0\) it is possible that only one Higgs doublet of the N2HDM acquires a vev. The resulting exact \({\mathbb {Z}}_2\) symmetry leads to an inert Higgs doublet similar to the inert doublet model [88]. As long as the singlet vev is non-zero, there is still mixing between the SM-like doublet Higgs and the singlet. We again follow the conventions of Ref. [87]. The ScannerS input parameters in the dark-doublet-phase N2HDM are

$$\begin{aligned}&m_{H_a}\,,&m_{H_b}\,,&m_{A_D}\,,&m_{H_D^\pm }\,,&m_{H_D}\,,&\alpha ^\text {in}\,,&\nonumber \\&m_{22}^2\,,&\lambda _2\,,&\lambda _8\,,&v_S\,,&v = v_\text {EW}\,,\end{aligned}$$
(38)

where \(m_{A_D}\) and \(m_{H^D}\) denote the masses of the two opposite-CP neutral dark scalars and \(m_{H_D^\pm }\) is the dark charged scalar mass. Since one of the doublets is inert, there are no Yukawa types in this phase. The dark-doublet-phase N2HDM implements the following additional constraints:

  • Dark matter observables are calculated using MicrOMEGAs and tested against the experimental limits as discussed in Sect. 2.6.

3.4.4 The fully-dark-phase N2HDM – N2HDMDarkSD

If the singlet vev additionally vanishes, both \({\mathbb {Z}}_2\) symmetries of the N2HDM remain exact after EWSB. This phase features a visible sector identical to the SM and two distinct dark sectors – one containing the inert doublet and the other composed of just the singlet – that are also stabilized with respect to each other. Since there is no mixing in this phase, the input parametrization is extremely simple. In the conventions of Ref. [87], ScannerS uses the parameters

$$\begin{aligned}&\qquad m_{H_\text {SM}}\,,\quad m_{H^D_D}\,,\quad m_{A_D}\,,\quad m_{H_D^\pm }\,,\quad m_{H^S_D}\,,\quad m_{22}^2\,,\nonumber \\&\qquad m_S^2\quad \lambda _2\,,\quad \lambda _6\,,\quad \lambda _8\,,\quad v = v_\text {EW}\,,\end{aligned}$$
(39)

where \(H^D_D\) is the real, neutral dark Higgs from the inert doublet sector, and \(H^S_D\) is the dark singlet. The fully-dark N2HDM also implements DM constraints:

  • Dark matter observables are calculated using MicrOMEGAs and tested against the experimental limits as discussed in Sect. 2.6. The MicrOMEGAs routines adapted for two-component DM are used.

3.5 Minimal CP-violating dark matter – CPVDM

The minimal model of CP-violating scalar dark matter [89] is a variant of the N2HDM, where the two separate \({\mathbb {Z}}_2\) symmetries for the doublet and singlet fields are merged into one. The resulting scalar potential in the conventions of Ref. [89] is

$$\begin{aligned} V_\text {CPVDM}= & {} m_{11}^2 \Phi _1^\dagger \Phi _1 + m_{22}^2 \Phi _2^\dagger \Phi _2 + \frac{m_S^2}{2}\Phi _S^2\nonumber \\&+ \left( A \Phi _1^\dagger \Phi _2\Phi _S + \text {h.c.}\right) \nonumber \\&+ \frac{\lambda _1}{2} {(\Phi _1^\dagger \Phi _1)}^2 + \frac{\lambda _2}{2} {(\Phi _2^\dagger \Phi _2)}^2 \nonumber \\&+ \lambda _3 (\Phi _1^\dagger \Phi _1)(\Phi _2^\dagger \Phi _2) + \lambda _4 (\Phi _1^\dagger \Phi _2)(\Phi _2^\dagger \Phi _1)\nonumber \\&+ \frac{\lambda _5}{2}\left( {(\Phi _1^\dagger \Phi _2)}^2 + \text {h.c.}\right) \nonumber \\&+ \frac{\lambda _6}{8}\Phi _S^4 + \frac{\lambda _7}{2}(\Phi _1^\dagger \Phi _1)\Phi _S^2 + \frac{\lambda _8}{2}(\Phi _2^\dagger \Phi _2)\Phi _S^2\,,\nonumber \\ \end{aligned}$$
(40)

where the trilinear parameter A can be complex.Footnote 9 Only \(\Phi _1\) acquires a vev such that the visible sector is identical to the SM, but CP-violating mixing between the three neutral fields in the dark sector is induced by the A term. With the mixing matrix parametrized as in Eq. (5) the ScannerS input parameters are

$$\begin{aligned} \begin{aligned}&m_{h}\,,&m_{h_a}\,,&m_{h_b}\,,&m_{H^\pm }\,,&\alpha ^\text {in}_1\,,&\alpha ^\text {in}_2\,,\quad \alpha ^\text {in}_3\,,\\&\lambda _2\,,&\lambda _6\,,&\lambda _8\,,&m_{22}^2\,,&m_S^2\,,&v=v_\text {EW}\,,\end{aligned} \end{aligned}$$
(41)

where h is the SM-like visible Higgs boson and \(h_{a,b}\) are dark neutral scalars. The third dark neutral Higgs mass \(m_{h_c}\) is calculated through the relation

$$\begin{aligned} m_{h_c}^2 = -\frac{m_{h_a}^2 R_{a1} R_{a2} + m_{h_b}^2 R_{b1} R_{b2}}{R_{c1} R_{c2}}\,.\end{aligned}$$
(42)

The parameter point is rejected if this leads to a tachyonic \(h_c\). The CP violation in this model does not enter the fermion sector and, therefore, no CP-sensitive EDM constraints need to be considered for the model. The implemented constrains are:

  • Perturbative unitarity and boundedness from below are ensured using the same analytic conditions as in the N2HDM [82].

  • The oblique parameters are calculated and tested using the generic method of Sect. 2.2.

  • The Higgs-to-Higgs decay widths of the scalars are calculated at tree-level and combined with the appropriately rescaled SM-like branching ratios as tabulated in HiggsBounds using the effective coupling input (see Ref. [26]).

  • HiggsBounds and HiggsSignals are used to test constraints from Higgs data as described in Sect. 2.4.

  • Dark matter observables are calculated using MicrOMEGAs and tested against the experimental limits as discussed in Sect. 2.6.

  • Metastability constraints on the stability of the EW vacuum are obtained using the EVADE library. See also Ref. [15] for a detailed study of vacuum stability in the broken-phase N2HDM.

4 User operating instructions

The ScannerS source code is available at https://gitlab.com/jonaswittbrodt/ScannerS.

ScannerS requires the following tools and libraries to be available on the system:

  • While most of the code is written in C++, some of the dependencies are Fortran codes such that working compilers for C, C++, and Fortran are required. The C++ compiler has to support at least C++-17.

  • ScannerS is compiled using CMake which has to be available on the system.

  • The GSL [90] is used for some numerical operations.

  • The Eigen3 library [91] is used throughout the code.

Detailed information on the required versions is included in the README file.

If these basic requirements are fulfilled, ScannerS can be compiled using

figure a

after which the ScannerS test suite can be run with make test. The physics codes required by ScannerS are automatically downloaded by CMake. These currently include HiggsBounds [22,23,24,25,26], HiggsSignals [27, 28], and anyHdecay (see Appendix A). Additionally, there are several optional dependencies to enable additional constraints.

  • MicrOMEGAs [43,44,45,46,47,48,49] is needed for the calculation of DM observables.

  • EVADE [14,15,16] is needed for metastability constraints.

  • BSMPT [65, 66] is needed to compute the order and strength of the EW phase transition.

Again, see the README file for more technical information on how to link these codes to ScannerS.

Compiling ScannerS generates one executable in the build directory for each implemented model. The executable names for each model are given in the title of the corresponding subsection in Sect. 3. All of the ScannerS executables support two run modes: scan mode and check mode. In scan mode, ScannerS generates and tests random parameter points until the requested number of valid points is found. It can be called as e.g. 

figure b

to generate ten valid parameter points using the scan ranges in the example configuration file in the R2HDM and write them into an output file with the default name R2HDM.tsv (the same name as the executable with the extension .tsv added). All possible options are documented in the command line help which can be accessed e.g. through ./R2HDM –help (these include constraint severities and input parameter ranges). The configuration file simply specifies command line options. Since ScannerS performs a random scan, it is easily parallelizable by launching multiple jobs with the same input and different output files.

The output format used by ScannerS is a simple tab-separated tabular format where each line corresponds to one parameter point. The first column contains an index which identifies the point, while all following columns contain data. The first line contains a header that specifies the contents of each row.Footnote 10 The pandas Python package for example can be used to easily read:

figure c

and write:

figure d

files in this format.

In check mode, the input parameters are read from a file. All of the input parameter points that fulfill the constraints are written to the output. This can e.g. be used to re-check a set of parameter points when the constraints have been updated. For example

figure e

would re-check the parameter points generated in the previous example. Of course, unless the constraints changed between the two runs, R2HDM.tsv and R2HDM_re.tsv would contain the same parameter points. The check mode can also be used to apply the constraints to a manually specified set of parameter points, e.g. a parameter plane of interest. In models with multiple implemented sets of input parameters, check mode always uses the simplest possible input method – usually the input in terms of mixing angles – to minimize the numerical errors induced by repeated re-checks.

4.1 Extending ScannerS

ScannerS can easily be extended given some C++ programming experience. New constraints can be added by extending the minimal example given in the documentation of the ScannerS::Constraints::Constraint class. The existing constraints illustrate a wide variety of possibilities. Some have almost trivial implementations that delegate all calculations to the model – such as the boundedness (ScannerS::Constraints::BFB) and unitarity (ScannerS::Constraints::Unitarity) constraints – some perform calculations themselves – e.g. the constraint ScannerS::Constraints::STU that calculates and checks the oblique parameters – or delegate to external codes – like ScannerS::Constraints::Higgs, the constraint from Higgs observables, that calls HiggsBounds and HiggsSignals.

New models are also straightforward to implement. The main requirement is to implement the relations between the chosen set of input parameters and the remaining model parameters – e.g. the expressions for the \(\lambda _i\) in terms of masses and mixing angles – in the constructor of a ParameterPoint member class. The basic technical requirements on a model class are listed in the documentation of the Scanners::Models namespace.

Constraints are enabled for a model class by implementing their required functions and attributes. In most cases these are static member functions of the model class operating on a ParameterPoint object, the detailed requirements can be found in the documentation of each constraint in the Scanners::Constraints namespace.

5 Summary

We have presented the C++ code ScannerS that performs parameter scans in many BSM models with extended Higgs sectors. The resulting samples of parameter points can be used e.g. for phenomenological studies, as benchmark scenarios for experimental searches, or as numerical examples for precision calculations.

ScannerS implements many different sources of constraints on the models. These include theoretical constraints, constraints from precision measurements in the EW and flavour sector, constraints from LHC Higgs data, DM constraints, and EDM constraints as well as the requirement of a strong-first-order EW phase transition, if applicable. These constraints can be applied in parameter scans of many different implemented BSM models – different singlet extensions of the SM, both the CP-conserving and CP-violating 2HDM, and many different phases and variants of the N2HDM.

ScannerS aims to be easy to install – with automatic dependency management for the physics codes it uses – and easy to use – using a straightforward command line interface and simple tabular data files. We have used ScannerS to generate tens of millions of valid parameter points across the implemented models and the code proved to be reliable and efficient.

Implementing new constraints or models in ScannerS is straightforward and encouraged. The online documentation specifies the technical requirements and most extensions can be easily implemented by modifying and extending existing model or constraint implementations. If you have implemented new models or constraints in ScannerS we encourage you to contact us with regards to merging them back into the main code.