Changeset 8112 for trunk/MagicSoft


Ignore:
Timestamp:
10/17/06 20:13:53 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/macros/optim/optimonoff.C

    r7362 r8112  
    1111
    1212    // --------------- Theta Sq ---------------------
    13     opt.SetParameter(1, 0.2087);
     13    opt.SetParameter(1, 0.204);
    1414
    1515    // ----------------- Area -----------------------
    16     opt.SetParameter(2, 0.2292);
    17     opt.SetParameter(3, 5.2652);
    18     opt.SetParameter(4, 0.09893);
     16    opt.SetParameter(2, 0.215);
     17    opt.SetParameter(3, 5.486);
     18    opt.SetParameter(4, 0.0897);
    1919
    2020    // ----------------- M3L ------------------------
    21     opt.SetParameter(5, -0.08295);
     21    opt.FixParameter(5, -0.07);
    2222
    2323    // ----------------- Fit ------------------------
     
    2525    MAlphaFitter fit;
    2626    fit.SetScaleMode(MAlphaFitter::kBackground);
    27     fit.SetBackgroundFitMin(0.12);
    28     fit.SetBackgroundFitMax(0.5);
     27    fit.SetBackgroundFitMin(0.137);
     28    fit.SetBackgroundFitMax(0.640);
    2929    fit.SetPolynomOrder(1);
    3030    fit.SetSignalFunction(MAlphaFitter::kThetaSq);
     
    3636    cuts.SetThetaCut(MFMagicCuts::kNone);
    3737
    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    // ----------------------------------------------
    3948
    4049    MStatusDisplay *d = new MStatusDisplay;
    4150    opt.SetDisplay(d);
    4251
    43     opt.RunOnOff("1218phd/ganymed00001220-summary.root", &cuts, &fit);
     52    opt.RunOnOff("ganymed00000001-summary.root", &cuts, &fit);
    4453}
Note: See TracChangeset for help on using the changeset viewer.