Ignore:
Timestamp:
06/17/05 13:33:56 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhflux
Files:
2 edited

Legend:

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

    r7152 r7169  
    624624        rc = kTRUE;
    625625    }
    626 
     626    if (IsEnvDefined(env, prefix, "Scale", print))
     627    {
     628        fScaleUser = GetEnvValue(env, prefix, "Scale", fScaleUser);
     629        rc = kTRUE;
     630    }
    627631    if (IsEnvDefined(env, prefix, "ScaleMode", print))
    628632    {
     
    644648        if (txt==(TString)"userscale")
    645649            fScaleMode = kUserScale;
    646         rc = kTRUE;
    647     }
    648     if (IsEnvDefined(env, prefix, "Signalfunction", print))
     650        if (txt==(TString)"fixed")
     651        {
     652            fScaleMode = kUserScale;
     653            fScaleUser = fScaleFactor;
     654            cout << "---------> " << fScaleFactor << " <----------" << endl;
     655        }
     656        rc = kTRUE;
     657    }
     658    if (IsEnvDefined(env, prefix, "SignalFunction", print))
    649659    {
    650660        TString txt = GetEnvValue(env, prefix, "SignalFunction", "");
     
    657667        rc = kTRUE;
    658668    }
    659     if (IsEnvDefined(env, prefix, "Scale", print))
    660     {
    661         fScaleUser = GetEnvValue(env, prefix, "Scale", fScaleUser);
    662         rc = kTRUE;
    663     }
    664 
    665     return rc;
    666 }
     669
     670    return rc;
     671}
  • trunk/MagicSoft/Mars/mhflux/MAlphaFitter.h

    r7151 r7169  
    5151    Int_t   fPolynomOrder;      // order of polyom to be fitted to the background
    5252    Bool_t  fFitBackground;     // Backround fit: yes/no
    53     SignalFunc_t fSignalFunc;  // Type of signal function
     53    SignalFunc_t fSignalFunc;   // Type of signal function
    5454    // Result
    5555    Double_t fSignificance;     // significance of signal
     
    6161    Double_t fChiSqBg;          // Reduced (chi^2/NDF) chisq of bg fit
    6262    Double_t fIntegralMax;      // Calculated bin border to which it was integrated
    63     Double_t fScaleFactor;      // Scale factor for off-data
     63    Double_t fScaleFactor;      // Scale factor determined for off-data
    6464
    6565    TArrayD fCoefficients;      // Fit result
Note: See TracChangeset for help on using the changeset viewer.