Ignore:
Timestamp:
12/10/09 10:08:55 (15 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhflux/MAlphaFitter.cc

    r9367 r9525  
    598598        *fLog << " - Signal Events           " << fEventsSignal << endl;
    599599        *fLog << " - Background Events       " << fEventsBackground << endl;
     600        *fLog << " - E/sqrt(B>=Alpha)        " << fEventsExcess/TMath::Sqrt(TMath::Max(fEventsBackground,fScaleFactor)) << endl;
    600601        *fLog << " - Chi^2/ndf (Signal)      " << fChiSqSignal << endl;
    601602        *fLog << " - Chi^2/ndf (Background)  " << fChiSqBg << endl;
    602603        *fLog << " - Signal integrated up to " << fIntegralMax << "°" << endl;
    603         *fLog << " - Scale Factor (Off)      " << fScaleFactor << endl;
     604        *fLog << " - Off Scale Alpha (Off)   " << fScaleFactor << endl;
    604605    }
    605606}
     
    858859        return GetGausSigma();
    859860    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()));
    861864    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());
    863868    }
    864869    return 0;
Note: See TracChangeset for help on using the changeset viewer.