source: tags/Mars-V1.2/macros/optim/optimwobble.C

Last change on this file was 7533, checked in by tbretz, 19 years ago
*** empty log message ***
File size: 1.4 KB
Line 
1void optimwobble()
2{
3 MJOptimizeCuts opt("MHThetaSq");
4 opt.SetDebug(2);
5 opt.SetOptimizer(MJOptimize::kSimplex);
6
7 // ------------------- Xi -----------------------
8 opt.FixParameter(0, 1.221);
9 opt.FixParameter(6, 13.425);
10 opt.FixParameter(7, 1.04343);
11
12 // --------------- Theta Sq ---------------------
13 opt.SetParameter(1, 0.23);
14
15 // ----------------- Area -----------------------
16 opt.SetParameter(2, 0.25);
17 opt.SetParameter(3, 5.21);
18 opt.SetParameter(4, 0.11);
19
20 // ----------------- M3L ------------------------
21 opt.SetParameter(5, -0.089);
22
23 // ----------------- Fit ------------------------
24
25 MAlphaFitter fit;
26 fit.SetScaleMode(MAlphaFitter::kNone);
27 fit.SetSignalFunction(MAlphaFitter::kThetaSq);
28 fit.SetMinimizationStrategy(MAlphaFitter::kSignificanceLogExcess);
29
30 // ----------------- Cuts -----------------------
31
32 MFMagicCuts cuts;
33 cuts.SetThetaCut(MFMagicCuts::kWobble);
34
35 /* You can also try (switch on scaling):
36
37 fit.SetScaleMode(MAlphaFitter::kBackground);
38 fit.SetBackgroundFitMin(0.12);
39 fit.SetBackgroundFitMax(0.5);
40
41 cuts.SetThetaCut(MFMagicCuts::kOff);
42 */
43
44 // -----------------------------------------------------------
45
46 MStatusDisplay *d = new MStatusDisplay;
47 opt.SetDisplay(d);
48
49 opt.RunOnOff("wobblelza-abs.root", &cuts, &fit);
50}
Note: See TracBrowser for help on using the repository browser.