source: tags/Mars-V0.9.4/macros/optim/optimenergy.C

Last change on this file was 7170, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 548 bytes
Line 
1void optimenergy()
2{
3 MJOptimizeEnergy opt;
4 opt.SetDebug(2);
5 opt.SetOptimizer(MJOptimize::kMigrad);
6 opt.EnableTestTrain();
7
8 // -------------------- Setup ----------------------------
9 opt.AddParameter("MHillas.fSize");
10
11 opt.FixParameter(0, 0.9, 0, 2); //0.562676
12
13 char *r = "[0]*M[0]";
14
15 // -------------------- Run ----------------------------
16
17 MStatusDisplay *d = new MStatusDisplay;
18 opt.SetDisplay(d);
19
20 //opt.AddPreCut("MNewImagePar.fLeakage1<0.0001");
21 opt.RunEnergy("ganymedmcpart.root", r);
22}
Note: See TracBrowser for help on using the repository browser.