source: tags/Mars-V0.9.4.2/macros/optim/optimwobble.C

Last change on this file was 7153, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.1 KB
Line 
1void optimwobble()
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::kNone);
26 fit.SetSignalFunction(MAlphaFitter::kThetaSq);
27 fit.SetMinimizationStrategy(MAlphaFitter::kSignificanceLogExcess);
28
29 // ----------------- Cuts -----------------------
30
31 MFMagicCuts cuts;
32 cuts.SetAlphaCut(MFMagicCuts::kWobble);
33
34 // -----------------------------------------------------------
35
36 MStatusDisplay *d = new MStatusDisplay;
37 opt.SetDisplay(d);
38
39 opt.RunOnOff("wobblelza-abs.root", &cuts, &fit);
40}
Note: See TracBrowser for help on using the repository browser.