Changeset 8890
- Timestamp:
- 05/15/08 13:26:40 (17 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8888 r8890 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2008/05/15 Thomas Bretz 22 23 * mfilter/MFMagicCuts.[h,cc]: 24 - fixed a few typos in comments and in the output 25 - added an option kAreaLin with a linear cut in area for special studies 26 27 20 28 21 29 2008/05/14 Thomas Bretz -
trunk/MagicSoft/Mars/NEWS
r8889 r8890 39 39 * the Random Forest Train-classes (MJTRain*) now store the used datasets 40 40 in the output file 41 42 * the MFMagicCuts have a new option to allow a linear area cut (for 43 special studies) 41 44 42 45 ;merpp -
trunk/MagicSoft/Mars/mfilter/MFMagicCuts.cc
r8658 r8890 57 57 // sign2 = (dist-c[7])*c[6]-slope 58 58 // disp = sign1<0 ||sign2<0 ? -disp : disp 59 // thetasq = disp^2 + dist^2 - 2*disp*dist* alpha59 // thetasq = disp^2 + dist^2 - 2*disp*dist*cos(alpha) 60 60 // 61 61 // And the values with respect to the antisource position respectively. … … 195 195 } 196 196 197 // Geometry in SPONDE? 198 197 199 fMm2Deg = cam->GetConvMm2Deg(); 198 200 … … 448 450 fDisp->SetVal(-p*sign); 449 451 452 // FIXME: Allow to use ThetaSq from INPUT! 453 450 454 // Calculate corresponding Theta^2 451 455 const Double_t thetasq = GetThetaSq(p, dist, alpha); … … 461 465 { 462 466 const Double_t area = fMatrix ? GetVal(kEArea) : fHil->GetArea()*fMm2Deg*fMm2Deg; 463 const Double_t A = lgsize>c[3] ? c[2] : c[2]*(1 - c[4]*(lgsize-c[3])*(lgsize-c[3])); 467 const Double_t A = (c[2]*c[4]>0 ? (lgsize>c[3]) : (lgsize<c[3])) ? 468 c[2] : c[2]*(1 - c[4]*(lgsize-c[3])*(lgsize-c[3])); 469 //const Double_t A = lgsize>c[3] ? c[2] : c[2] - c[4]/c[2]*(lgsize-c[3])*(lgsize-c[3])); 470 if (area>=A) 471 return kTRUE; 472 } 473 474 if (fHadronnessCut&kAreaLin) 475 { 476 const Double_t area = fMatrix ? GetVal(kEArea) : fHil->GetArea()*fMm2Deg*fMm2Deg; 477 const Double_t A = c[2] + c[4]*(lgsize-c[3]); 464 478 if (area>=A) 465 479 return kTRUE; … … 556 570 *fLog << "hadronness" << endl; 557 571 break; 572 case kAreaLin: 573 *fLog << "arealin" << endl; 574 break; 558 575 case kAll: 559 576 *fLog << "all" << endl; … … 561 578 } 562 579 if (fCalcDisp) 563 *fLog << "Disp is calculated from c0, c 7, c8." << endl;580 *fLog << "Disp is calculated from c0, c8-c11." << endl; 564 581 else 565 582 *fLog << "Disp.fVal from the parameter list is used as disp." << endl; 566 583 if (fCalcGhostbuster) 567 *fLog << "Ghostbusting is calculated from c5 , c6,c7." << endl;584 *fLog << "Ghostbusting is calculated from c5-c7." << endl; 568 585 else 569 586 *fLog << "Ghostbuster.fVal from the parameter list is used for ghostbusting." << endl; -
trunk/MagicSoft/Mars/mfilter/MFMagicCuts.h
r8658 r8890 35 35 kArea =BIT(1), 36 36 kHadronness=BIT(2), 37 kAreaLin =BIT(3), 37 38 kAll =kArea|kHadronness 38 39 };
Note:
See TracChangeset
for help on using the changeset viewer.