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

Last change on this file was 7362, checked in by tbretz, 19 years ago
*** empty log message ***
File size: 1.3 KB
Line 
1void optimonoff()
2{
3 MJOptimizeCuts opt("MHThetaSq");
4 opt.SetDebug(2);
5 opt.SetOptimizer(MJOptimize::kSimplex);
6
7 // ------------------- Xi -----------------------
8 opt.FixParameter(0, 1.3245);
9 opt.FixParameter(6, 8.2957);
10 opt.FixParameter(7, 0.8677);
11
12 // --------------- Theta Sq ---------------------
13 opt.SetParameter(1, 0.2087);
14
15 // ----------------- Area -----------------------
16 opt.SetParameter(2, 0.2292);
17 opt.SetParameter(3, 5.2652);
18 opt.SetParameter(4, 0.09893);
19
20 // ----------------- M3L ------------------------
21 opt.SetParameter(5, -0.08295);
22
23 // ----------------- Fit ------------------------
24
25 MAlphaFitter fit;
26 fit.SetScaleMode(MAlphaFitter::kBackground);
27 fit.SetBackgroundFitMin(0.12);
28 fit.SetBackgroundFitMax(0.5);
29 fit.SetPolynomOrder(1);
30 fit.SetSignalFunction(MAlphaFitter::kThetaSq);
31 fit.SetMinimizationStrategy(MAlphaFitter::kSignificanceLogExcess);
32
33 // ----------------- Cuts -----------------------
34
35 MFMagicCuts cuts;
36 cuts.SetThetaCut(MFMagicCuts::kNone);
37
38 // -----------------------------------------------------------
39
40 MStatusDisplay *d = new MStatusDisplay;
41 opt.SetDisplay(d);
42
43 opt.RunOnOff("1218phd/ganymed00001220-summary.root", &cuts, &fit);
44}
Note: See TracBrowser for help on using the repository browser.