source: branches/Mars_MC/macros/optim/optimonoff.C@ 17063

Last change on this file since 17063 was 8706, checked in by tbretz, 17 years ago
*** empty log message ***
File size: 1.5 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.15136);
9 opt.FixParameter( 8, 0.0681437);
10 opt.FixParameter( 9, 2.62932);
11 opt.FixParameter(10, 1.51279);
12 opt.FixParameter(11, 0.0507821);
13
14 // --------------- Theta Sq ---------------------
15 opt.FixParameter( 1, 0.215);
16
17 // ----------------- Area -----------------------
18 opt.SetParameter( 2, 0.21);
19 opt.SetParameter( 3, 5.6);
20 opt.SetParameter( 4, 0.083);
21
22 // ----------------- M3L ------------------------
23 opt.FixParameter( 5, -0.07);
24
25 // ---------------- Slope -----------------------
26 opt.FixParameter( 6, 7.2);
27 opt.FixParameter( 7, 0.5);
28
29 // ----------------- Fit ------------------------
30
31 MAlphaFitter fit;
32 fit.SetScaleMode(MAlphaFitter::kBackground);
33 fit.SetBackgroundFitMin(0.137);
34 fit.SetBackgroundFitMax(0.640);
35 fit.SetPolynomOrder(1);
36 fit.SetSignalFunction(MAlphaFitter::kThetaSq);
37 fit.SetMinimizationStrategy(MAlphaFitter::kSignificanceLogExcess);
38
39 // ----------------- Cuts -----------------------
40
41 MFMagicCuts cuts;
42 cuts.SetThetaCut(MFMagicCuts::kNone);
43
44 // ----------------------------------------------
45
46 MStatusDisplay *d = new MStatusDisplay;
47 opt.SetDisplay(d);
48
49 // opt.SetPathOut("optimonoff.root");
50 opt.RunOnOff("ganymed00000001-summary.root", &cuts, &fit);
51}
Note: See TracBrowser for help on using the repository browser.