groups

name language licence
enum - array of labelled values C++ Other
Print a TCut C++ Other
Ternery operator / conditional expression C++ Other
Maximum likelihood, minuit example C++ Other
Commenting code including comments C++ Other
Convert string to integer C++ Other
Distance from a point to a line C++ Other



language: C++
licence: Other

Maximum likelihood, minuit example

options: view full snippetsend to code collector
//  example of a simple max likelihood estimation
//  inspired in the examples from Cowan, chap.6 and in root
//  tutorial Ifit.C
//   - generate fake data according to a given function
//   - get the parameters with the max likelihood method
//   - plot histograms

//                  jtmn setp 2003
//
//  comments from Ifit.C:
//   More details on the various functions or parameters for these functions
//   can be obtained in an interactive ROOT session with:
//    Root > TMinuit *minuit = new TMinuit(10);
//    Root > minuit->mnhelp("*")  to see the list of possible keywords
//    Root > minuit->mnhelp("SET") explains most parameters
	
(Continues...)