Changeset 9525 for trunk/MagicSoft/Mars/mhflux
- Timestamp:
- 12/10/09 10:08:55 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MAlphaFitter.cc
r9367 r9525 598 598 *fLog << " - Signal Events " << fEventsSignal << endl; 599 599 *fLog << " - Background Events " << fEventsBackground << endl; 600 *fLog << " - E/sqrt(B>=Alpha) " << fEventsExcess/TMath::Sqrt(TMath::Max(fEventsBackground,fScaleFactor)) << endl; 600 601 *fLog << " - Chi^2/ndf (Signal) " << fChiSqSignal << endl; 601 602 *fLog << " - Chi^2/ndf (Background) " << fChiSqBg << endl; 602 603 *fLog << " - Signal integrated up to " << fIntegralMax << "°" << endl; 603 *fLog << " - Scale Factor (Off)" << fScaleFactor << endl;604 *fLog << " - Off Scale Alpha (Off) " << fScaleFactor << endl; 604 605 } 605 606 } … … 858 859 return GetGausSigma(); 859 860 case kWeakSource: 860 return GetEventsBackground()<1 ? -GetEventsExcess() : -GetEventsExcess()/TMath::Sqrt(GetEventsBackground()); 861 if (GetEventsExcess()<1) 862 return 0; 863 return -GetEventsExcess()/TMath::Sqrt(TMath::Max(GetEventsBackground(), GetEventsBackground())); 861 864 case kWeakSourceLogExcess: 862 return GetEventsBackground()<1 ? -GetEventsExcess() : -GetEventsExcess()/TMath::Sqrt(GetEventsBackground())*TMath::Log10(GetEventsExcess()); 865 if (GetEventsExcess()<1) 866 return 0; 867 return -GetEventsExcess()/TMath::Sqrt(TMath::Max(GetEventsBackground(), GetEventsBackground()))*TMath::Log10(GetEventsExcess()); 863 868 } 864 869 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.