| name | language | licence |
|---|---|---|
| MCEvents tree simple analysis | C++ | Other |
| Figures | Latex | Other |
| Find command | Shell | Other |
| Find out linux installation version from command line | Shell | Other |
| Find out processor info from command line | Shell | Other |
| Find out user groups from the command line | Shell | Other |
| Fitting to functions | C++ | Other |
| For the start of a PERL file | Perl | Other |
< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 >
language: C++
licence: Other
Fitting to functions
options: view full snippet • send to code collector
TF1 *myfit = new TF1("myfit","[0]*sin(x) + [1]*exp(-[2]*x)", 0, 2);
myfit->SetParName(0,"c0");
myfit->SetParName(1,"c1");
myfit->SetParName(2,"slope");
myfit->SetParameter(0, 1);
myfit->SetParameter(1, 0.05);
myfit->SetParameter(2, 0.2);
histo->Fit("fexp");
cout << myfit->GetChisquare() / myfit->GetNDF() << endl;



library
latex (12)