- Timestamp:
- 02/11/15 14:25:02 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mfilter/MFMagicCuts.cc
r9339 r18104 33 33 // lgsize = log10(MHillas.fSize) 34 34 // 35 // leakage1 = log10(MNewImagePar.fLeakage1+1)35 // leakage1 = MNewImagePar.fLeakage1 36 36 // 37 37 // alpha = MHillasSrc.fAlpha … … 51 51 // 52 52 // 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)) 55 54 // p = xi*(1-width/length); 56 55 // sign1 = m3long-c[5] … … 316 315 fMap[kEArea] = fMatrix->AddColumn("MHillas.GetArea*MGeomCam.fConvMm2Deg*MGeomCam.fConvMm2Deg"); 317 316 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"); 319 319 320 320 fMap[kEAlpha] = fMatrix->AddColumn("MHillasSrc.fAlpha"); … … 381 381 // Get some variables 382 382 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(); 384 385 385 386 // For simplicity … … 388 389 // As rule for root or MDataPhrase: 389 390 // ((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])))"; 390 392 // 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]; 394 396 395 397 const Double_t disp = xi*(1-wdivl);
Note:
See TracChangeset
for help on using the changeset viewer.