CMinuitWrap.C
//-----------------------------------------------------------------------------
// $Header: /tmp_mnt/asis/offline/ceres/cool/project/RCS/CMinuitWrap.C,v 2.1 1996/10/04 08:46:01 voigt Exp $
//
// COOL Program Library
// Copyright (C) CERES collaboration, 1996
//
// Implementation of MINUIT wrapper functions needed for fitting.
//
//-----------------------------------------------------------------------------
#include <string.h>
#include "CMinuitWrap.h"
void mninit(int a, int b, int c)
{
mninit_ (&a, &b, &c);
}
void mnexcm (void (* fun)(int*, double*, double*, double*, int*, void*),
char* command, double *argList, int nArg, int *errFlag, void* helperFunction)
{
mnexcm_((void*) fun, command, argList, &nArg, errFlag, helperFunction, strlen(command));
}
void mnparm (int num, char* name, double startingValue, double step,
double lowerBound, double upperBound, int *errFlag)
{
mnparm_(&num, name, &startingValue, &step, &lowerBound, &upperBound, errFlag, strlen(name));
}
void mnstat (double *a, double *b, double *c, int *d, int *e, int *f)
{
mnstat_(a, b, c, d, e, f);
}
void mnpout(int a, char* b, double *c, double d, double e, double f, int g)
{
mnpout_(&a, b, c, &d, &e, &f, &g, strlen(b));
}