Changeset 8112 for trunk/MagicSoft/Mars/macros/optim
- Timestamp:
- 10/17/06 20:13:53 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/optim/optimonoff.C
r7362 r8112 11 11 12 12 // --------------- Theta Sq --------------------- 13 opt.SetParameter(1, 0.20 87);13 opt.SetParameter(1, 0.204); 14 14 15 15 // ----------------- Area ----------------------- 16 opt.SetParameter(2, 0.2 292);17 opt.SetParameter(3, 5. 2652);18 opt.SetParameter(4, 0.0 9893);16 opt.SetParameter(2, 0.215); 17 opt.SetParameter(3, 5.486); 18 opt.SetParameter(4, 0.0897); 19 19 20 20 // ----------------- M3L ------------------------ 21 opt. SetParameter(5, -0.08295);21 opt.FixParameter(5, -0.07); 22 22 23 23 // ----------------- Fit ------------------------ … … 25 25 MAlphaFitter fit; 26 26 fit.SetScaleMode(MAlphaFitter::kBackground); 27 fit.SetBackgroundFitMin(0.1 2);28 fit.SetBackgroundFitMax(0. 5);27 fit.SetBackgroundFitMin(0.137); 28 fit.SetBackgroundFitMax(0.640); 29 29 fit.SetPolynomOrder(1); 30 30 fit.SetSignalFunction(MAlphaFitter::kThetaSq); … … 36 36 cuts.SetThetaCut(MFMagicCuts::kNone); 37 37 38 // ----------------------------------------------------------- 38 // ---------------- Quality-Cuts ---------------- 39 40 opt.AddPreCut("MNewImagePar.fNumUsedPixels>5"); 41 opt.AddPreCut("(MNewImagePar.fLeakage1 < 0.3)"); 42 opt.AddPreCut("(MImagePar.fNumSatPixelsLG<2)"); 43 opt.AddPreCut("(MImagePar.fNumIslands<3)"); 44 opt.AddPreCut("(log10(MNewImagePar.fConc1) < (-0.371)*log10(MHillas.fSize) + 0.596)"); 45 opt.AddPreCut("(MImagePar.fNumSatPixelsHG < 1) || (MHillas.GetArea*(MGeomCam.fConvMm2Deg^2) > (0.003*MImagePar.fNumSatPixelsHG) + 0.0325)"); 46 47 // ---------------------------------------------- 39 48 40 49 MStatusDisplay *d = new MStatusDisplay; 41 50 opt.SetDisplay(d); 42 51 43 opt.RunOnOff(" 1218phd/ganymed00001220-summary.root", &cuts, &fit);52 opt.RunOnOff("ganymed00000001-summary.root", &cuts, &fit); 44 53 }
Note:
See TracChangeset
for help on using the changeset viewer.