Changeset 9367 for trunk/MagicSoft/Mars/mhflux
- Timestamp:
- 03/01/09 12:51:04 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/mhflux
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MAlphaFitter.cc
r9302 r9367 115 115 { 116 116 case kGauss: 117 fFunc=new TF1("", MString::Format("gaus(0) + pol%d(3)", fPolynomOrder) );117 fFunc=new TF1("", MString::Format("gaus(0) + pol%d(3)", fPolynomOrder).Data()); 118 118 break; 119 119 case kThetaSq: … … 417 417 /* 418 418 cout << MMath::SignificanceLiMaSigned(hon.Integral(1, bin), fit.GetEventsBackground()/sc, sc) << " "; 419 cout << sc << " " ;419 cout << sc << " " << fit.GetEventsBackground() << " "; 420 420 cout << fit.fChiSqBg << endl; 421 421 */ … … 847 847 return 0; 848 848 return -GetSignificance()*TMath::Log10(GetEventsExcess()); 849 case kSignificanceSqrtExcess: 850 if (GetEventsExcess()<1) 851 return 0; 852 return -GetSignificance()*TMath::Sqrt(GetEventsExcess()); 849 853 case kSignificanceExcess: 850 854 return -GetSignificance()*GetEventsExcess(); -
trunk/MagicSoft/Mars/mhflux/MAlphaFitter.h
r9302 r9367 30 30 kSignificanceChi2, 31 31 kSignificanceLogExcess, 32 kSignificanceSqrtExcess, 32 33 kSignificanceExcess, 33 34 kExcess, -
trunk/MagicSoft/Mars/mhflux/MHFalseSource.cc
r9303 r9367 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHFalseSource.cc,v 1.2 5 2009-02-07 20:47:33 tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHFalseSource.cc,v 1.26 2009-03-01 12:51:03 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 1189 1189 } 1190 1190 1191 TF1 f1("f1", MString::Format("gaus(0) + pol%d(3)", fHistOff ? 0 : polynom) , 0, 90);1192 TF1 f2("f2", MString::Format("gaus(0) + pol%d(3)", fHistOff ? 0 : polynom) , 0, 90);1191 TF1 f1("f1", MString::Format("gaus(0) + pol%d(3)", fHistOff ? 0 : polynom).Data(), 0, 90); 1192 TF1 f2("f2", MString::Format("gaus(0) + pol%d(3)", fHistOff ? 0 : polynom).Data(), 0, 90); 1193 1193 f1.SetParameters(maxpar.GetArray()); 1194 1194 f2.SetParameters(maxpar.GetArray());
Note:
See TracChangeset
for help on using the changeset viewer.