36 TH1D *
h1 =
new TH1D(
"h1",
"fit histo 1",100, -5, 5. );
44 for (
int i = 0; i <
n; ++i) {
49 double p[3] = { 100.0, 0.0, 1.0 } ;
68 int main(
int argc,
char **argv)
virtual void SetParameters(const Double_t *params)
Random number generator class based on M.
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...
virtual void Run(Bool_t retrn=kFALSE)
Main application eventloop. Calls system dependent eventloop via gSystem.
void testUserFunc(std::string type="Minuit2", int n=1000)
virtual void FixParameter(Int_t ipar, Double_t value)
Fix the value of a parameter The specified value will be used in a fit operation. ...
R__EXTERN TRandom * gRandom
tomato 1-D histogram with a double per channel (see TH1 documentation)}
Double_t Gaus(Double_t x, Double_t mean=0, Double_t sigma=1, Bool_t norm=kFALSE)
Calculate a gaussian function with mean and sigma.
double myfunc(double *x, double *p)
THist< 1, double, THistStatContent, THistStatUncertainty > TH1D
This class creates the ROOT Application Environment that interfaces to the windowing system eventloop...
static void SetDefaultMinimizer(const char *type, const char *algo=0)
int main(int argc, char **argv)