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

Last change on this file was 7153, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.2 KB
Line 
1void optimonoff()
2{
3 MJOptimizeCuts opt("MHThetaSq");
4 opt.SetDebug(2);
5 opt.SetOptimizer(MJOptimize::kSimplex);
6
7 // ------------------- Xi -----------------------
8 opt.SetParameter(0, 0.6);
9 opt.FixParameter(6, 0.137);
10
11 // --------------- Theta Sq ---------------------
12 opt.SetParameter(1, 0.23);
13
14 // ----------------- Area -----------------------
15 opt.SetParameter(2, 0.25);
16 opt.SetParameter(3, 5.21);
17 opt.SetParameter(4, 0.11);
18
19 // ----------------- M3L ------------------------
20 opt.SetParameter(5, -0.089);
21
22 // ----------------- Fit ------------------------
23
24 MAlphaFitter fit;
25 fit.SetScaleMode(MAlphaFitter::kBackground);
26 fit.SetBackgroundMin(0.4);
27 fit.SetBackgroundMax(0.6);
28 fit.SetPolynomOrder(1);
29 fit.SetSignalFunction(MAlphaFitter::kThetaSq);
30 fit.SetMinimizationStrategy(MAlphaFitter::kSignificanceLogExcess);
31
32 // ----------------- Cuts -----------------------
33
34 MFMagicCuts cuts;
35 cuts.SetAlphaCut(MFMagicCuts::kNoCuts);
36
37 // -----------------------------------------------------------
38
39 MStatusDisplay *d = new MStatusDisplay;
40 opt.SetDisplay(d);
41
42 opt.RunOnOff("onofflza-abs.root", &cuts, &fit);
43}
Note: See TracBrowser for help on using the repository browser.