source: tags/Mars-V0.9.4.1/macros/optim/optimdisp.C

Last change on this file was 7153, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.0 KB
Line 
1void optimdisp()
2{
3 MJOptimizeDisp opt;
4 opt.SetDebug(2);
5 opt.SetOptimizer(MJOptimize::kSimplex);
6 opt.EnableTestTrain();
7
8 // -------------------- Setup ----------------------------
9 //opt.AddParameter("1-(MHillas.fWidth/MHillas.fLength)");
10 opt.AddParameter("atan(1./(1-(MHillas.fWidth/MHillas.fLength)))");
11 //opt.AddParameter("log10(MNewImagePar.fLeakage1+1)");
12
13 opt.FixParameter(0, 0.743871, 0, 2); //0.562676
14 opt.FixParameter(1, 0.329471, 0, 2); //0.317315
15 opt.FixParameter(2, 1.500002, 0, 10); //1.55754
16
17 // Leakage==0: RMS = 0.030
18 // Leakage>0: RMS = 0.010
19
20 // all: 0.029 (0.605991, 0.332266, 1.50825)
21
22 //char *r = "([0]+(pow(M[1],[1])*[2]))/M[0]";
23 //char *r = "([0]+(pow(M[1],[1])*[2]))*M[0]";
24 //char *r = "[0]*M[0]";
25 char *r = "[0]/M[0]";
26
27 // -------------------- Run ----------------------------
28
29 MStatusDisplay *d = new MStatusDisplay;
30 opt.SetDisplay(d);
31
32 opt.AddPreCut("MNewImagePar.fLeakage1<0.0001");
33 opt.RunDisp("ganymedmcpart.root", r);
34}
Note: See TracBrowser for help on using the repository browser.