Changeset 18104 for trunk


Ignore:
Timestamp:
02/11/15 14:25:02 (10 years ago)
Author:
Daniela Dorner
Message:
implmented FACT disp parametrization instead of MAGIC one
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mfilter/MFMagicCuts.cc

    r9339 r18104  
    3333//      lgsize       = log10(MHillas.fSize)
    3434//
    35 //      leakage1     = log10(MNewImagePar.fLeakage1+1)
     35//      leakage1     = MNewImagePar.fLeakage1
    3636//
    3737//      alpha        = MHillasSrc.fAlpha
     
    5151//
    5252//    c[0],  c[5], c[6], c[7],  c[8], c[9]:
    53 //          xi          = c[0] + c[8]*slope + c[9]*leak +
    54 //                        (lgsize>c[10])*c[11]*(lgsize-c[10])^2;
     53//          xi          = c[0] + c[8]*slope + c[9]*(1-1/(1+c[10]*leak))
    5554//          p           = xi*(1-width/length);
    5655//          sign1       = m3long-c[5]
     
    316315    fMap[kEArea]    = fMatrix->AddColumn("MHillas.GetArea*MGeomCam.fConvMm2Deg*MGeomCam.fConvMm2Deg");
    317316
    318     fMap[kELeakage] = fMatrix->AddColumn("log10(MNewImagePar.fLeakage1+1)");
     317    //fMap[kELeakage] = fMatrix->AddColumn("log10(MNewImagePar.fLeakage1+1)");
     318    fMap[kELeakage] = fMatrix->AddColumn("NewImagePar.fLeakage1");
    319319
    320320    fMap[kEAlpha]   = fMatrix->AddColumn("MHillasSrc.fAlpha");
     
    381381    // Get some variables
    382382    const Double_t wdivl = fMatrix ? GetVal(kEWdivL)   : fHil->GetWidth()/fHil->GetLength();
    383     const Double_t leak  = fMatrix ? GetVal(kELeakage) : TMath::Log10(fNewImgPar->GetLeakage1()+1);
     383    //const Double_t leak  = fMatrix ? GetVal(kELeakage) : TMath::Log10(fNewImgPar->GetLeakage1()+1);
     384    const Double_t leak  = fMatrix ? GetVal(kELeakage) : fNewImgPar->GetLeakage1();
    384385
    385386    // For simplicity
     
    388389    // As rule for root or MDataPhrase:
    389390    //   ((M[3]>[3])*[4]*(M[3]-[3])^2 + [2]*M[2] + [1]*M[1] + [0])*M[0]
     391    //char *r = "M[0]*([0] + [1]*M[1] + [2]*(1-1/(1+[3]*M[2])))";
    390392    //
    391     Double_t xi = c[0] + c[8]*slope + c[9]*leak;
    392     if (lgsize>c[10])
    393         xi += (lgsize-c[10])*(lgsize-c[10])*c[11];
     393    Double_t xi = c[0] + c[8]*slope + c[9]*(1-1/(1+c[10]*leak));
     394//    if (lgsize>c[10])
     395//        xi += (lgsize-c[10])*(lgsize-c[10])*c[11];
    394396
    395397    const Double_t disp = xi*(1-wdivl);
Note: See TracChangeset for help on using the changeset viewer.