source: trunk/MagicSoft/Mars/macros/optim/optimonoff.C@ 8672

Last change on this file since 8672 was 8671, checked in by tbretz, 17 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.204);
14
15 // ----------------- Area -----------------------
16 opt.SetParameter(2, 0.215);
17 opt.SetParameter(3, 5.486);
18 opt.SetParameter(4, 0.0897);
19
20 // ----------------- M3L ------------------------
21 opt.FixParameter(5, -0.07);
22
23 // ----------------- Fit ------------------------
24
25 MAlphaFitter fit;
26 fit.SetScaleMode(MAlphaFitter::kBackground);
27 fit.SetBackgroundFitMin(0.137);
28 fit.SetBackgroundFitMax(0.640);
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.SetPathOut("optimonoff.root");
44 opt.RunOnOff("ganymed00000001-summary.root", &cuts, &fit);
45}
Note: See TracBrowser for help on using the repository browser.