Main call and windows
Top
The main call and the graphic windows
Top
mulab
Top
mufit_gui
Top
Retrieving model indices
Top
[s c p]=mucomp(n)
Invoked by muextractflag - to store flags mufit_gui - to store values, linear relations and flags - muparse - to check syntax of linear relations - muplotpar - to identify the best fit parameter values to be plotted.
n is the index of a parameter according to the Fit Paramater Menu in the graphic window.
s is a string containing the minuit name of the parameter (e.g. MuAmp)
c is the component index in the global variable MU_MODEL, (i.e. MU_MODEL.COMPONENT(c) is a structure containing all the information on that component)
p is the parameter index in the global variable MU_MODEL, (i.e. MU_MODEL.COMPONENT(c).PARAMETER(p) is a structure containing all the information on that parameter)
However component da is an exception for double fits (when MU_MODEL.SINGLE is false).
When n refers to the second da parameter mucomp yields p=2. When this happens it should always be that c=1, n=4. This component has only one parameter, stored in MU_MODEL.COMPONENT(1).PARAMETER(1).VALUE. The second da value must be stored in the additional variable MU_MODEL.COMPONENT(1).PARAMETER(1).VALUEUD.
Top
OK=muextractflag(ans,par)
Invoked by mufit_gui to store flags (~,!,=). For a double fit flags may be attached only to the first two parameters (UD/FB and DePhi), dealt with directly under tag FixedUDFB and FixedDEPHI in mufit_gui, or to odd FB parameters, so this routine does not need to check for the even UD parameter.
ans is the linear relation definition, including the trailing =
par is the TARGET parameter (i.e the destination parameter of the calculation defined by the linear relation)
OK is logical and true for a correct syntax of the linear relation (correct algebra and existing parameters for the operands
Top