a Code for the Combination of Indirect and Direct Constraints on High Energy Physics Models Logo
Minimal.cpp
Go to the documentation of this file.
1// Include the necessary header file.
2#include <HEPfit.h>
3
4// Define a map for the observables.
5std::map<std::string, double> DObs;
6
7// Define a map for the mandatory model parameters used during initializing a model.
8std::map<std::string, double> DPars_IN;
9
10// Define a map for the parameters to be varied.
11std::map<std::string, double> DPars;
12
13// Define a map for the model flags.
14std::map<std::string, std::string> DFlags;
15
16// Define the name of the model to be used.
17std::string ModelName = "NPZbbbar";
18
19// Create and object of the class InputParameters.
21
22// Read a map for the mandatory model parameters. (Default values in InputParameters.h)
24
25// Change the default values of the mandatory model parameters if necessary.
26// This can also be done with Dpars after creating an object of ComputeObservables
27DPars_IN["mcharm"] = 1.3;
28DPars_IN["mub"] = 4.2;
29
30// Initialize the observables to be returned.
31DObs["Mw"] = 0;
32DObs["GammaZ"] = 0.;
33DObs["AFBbottom"] = 0.;
34
35// Initialize the model flags to be set.
36DFlags["NPZbbbarLR"] = "TRUE";
37
38// Create and object of the class ComputeObservables.
40
41// Set the flags for the model being used, if necessary.
43
44// Vary the parameters that need to be varied in the analysis.
45DPars["mtop"] = 170.0;
46DPars["mHl"] = 126.0;
47
48// Get the map of observables with the parameter values defined above.
InputParameters IP
Definition: Minimal.cpp:20
std::map< std::string, double > DPars
Definition: Minimal.cpp:11
std::map< std::string, std::string > DFlags
Definition: Minimal.cpp:14
ComputeObservables CO(ModelName, DPars_IN, DObs)
std::map< std::string, double > DPars_IN
Definition: Minimal.cpp:8
std::string ModelName
Definition: Minimal.cpp:17
std::map< std::string, double > DObs
Definition: Minimal.cpp:5
A class for providing access to the computation of observables without a Monte Carlo run.
void setFlags(std::map< std::string, std::string > DFlags_i)
This method sets the necessary flag for the requested model.
std::map< std::string, double > compute(std::map< std::string, double > DP)
The method used to compute observables.
A class for defining the default values of the mandatory parameters of the model being used on the li...
std::map< std::string, double > getInputParameters(std::string &ModelName)
A method that returns the map of the mandatory model parameters given the model name.