Download GLoBES GLoBES
Transcript
3
Chapter 1
A GLoBES tour
In this first chapter, we show a GLoBES tour illustrating the main features of GLoBES. The
complete example can be found as example-tour.c in the example subdirectory of your
GLoBES distribution. The output is written to stream, which can be either stdout, or a
file. Details about how to use GLoBES with C can found in Chapter 2 and the following
chapters. You can also find a summary of the most important GLoBES χ2 -functions in
Table 1.1. Note that this chapter can be skipped without loss of relevant information.
Initialize the GLoBES library:
glbInit(argv[0]);
Define my standard oscillation parameters:
double
double
double
double
double
double
theta12 = asin(sqrt(0.8))/2;
theta13 = asin(sqrt(0.001))/2;
theta23 = M_PI/4;
deltacp = M_PI/2;
sdm = 7e-5;
ldm = 2e-3;
Load one neutrino factory experiment:
glbInitExperiment("NuFact.glb",&glb_experiment_list[0],
&glb_num_of_exps);
Initialize a number of parameter vectors we are going to use later:
glb_params
glb_params
glb_params
glb_params
glb_params
true_values = glbAllocParams();
fit_values = glbAllocParams();
starting_values = glbAllocParams();
input_errors = glbAllocParams();
minimum = glbAllocParams();