source: trunk/MagicSoft/Mars/macros/optim/optimwobble.C@ 7409

Last change on this file since 7409 was 7402, checked in by tbretz, 19 years ago
*** empty log message ***
File size: 1.3 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 /* You can also try (switch on scaling):
35
36 fit.SetScaleMode(MAlphaFitter::kBackground);
37 fit.SetBackgroundFitMin(0.12);
38 fit.SetBackgroundFitMax(0.5);
39
40 cuts.SetThetaCut(MFMagicCuts::kOff);
41 */
42
43 // -----------------------------------------------------------
44
45 MStatusDisplay *d = new MStatusDisplay;
46 opt.SetDisplay(d);
47
48 opt.RunOnOff("wobblelza-abs.root", &cuts, &fit);
49}
Note: See TracBrowser for help on using the repository browser.