Changeset 6905 for trunk/MagicSoft


Ignore:
Timestamp:
04/01/05 14:55:54 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r6903 r6905  
    2121
    2222                                                 -*-*- END OF LINE -*-*-
     23
     24 2005/04/01 Thomas Bretz
     25
     26   * mbadpixels/MBadPixelsCalc.cc:
     27     - switched on bad pixel detection for a pedestal level
     28       which is more than 5 times the variance
     29
     30   * mfbase/MF.cc:
     31     - when fixing the "Inverted" bit in ReadEnv don't print a
     32       message on the screen
     33
     34   * mhflux/MHAlpha.cc:
     35     - plot correct errors
     36     - do not plot the point if its significance is not greater 1
     37
     38
    2339
    2440 2005/03/29 Markus Gaug
  • trunk/MagicSoft/Mars/NEWS

    r6903 r6905  
    2525   - wobble mode can now be switched on from the data-set
    2626
     27   - switched on bad pixel detection for a pedestal level
     28     which is more than 5 times the variance
    2729
    2830
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCalc.cc

    r5841 r6905  
    8888//
    8989MBadPixelsCalc::MBadPixelsCalc(const char *name, const char *title)
    90     : fPedestalLevel(3), fPedestalLevelVariance(-1), fNamePedPhotCam("MPedPhotCam")
     90    : fPedestalLevel(3), fPedestalLevelVariance(5), fNamePedPhotCam("MPedPhotCam")
    9191{
    9292    fName  = name  ? name  : gsDefName.Data();
  • trunk/MagicSoft/Mars/mfbase/MF.cc

    r6903 r6905  
    547547    // and double-inversion is no inversion
    548548    if (IsEnvDefined(env, prefix, "Inverted", print))
    549         if (GetEnvValue(env, prefix, "Inverted", print)==kTRUE)
    550             fF->SetInverted(kFALSE);
     549        if (GetEnvValue(env, prefix, "Inverted", kFALSE)==kTRUE)
     550            SetInverted(kFALSE);
    551551
    552552    return kTRUE;
  • trunk/MagicSoft/Mars/mhflux/MHAlpha.cc

    r6890 r6905  
    197197        if (fit.FitEnergy(fHAlpha, fOffData, i))
    198198        {
    199             fHEnergy.SetBinContent(i, fit.GetEventsExcess());
    200             fHEnergy.SetBinError(i, fit.GetEventsExcess()*0.2);
     199            if (fit.GetSignificance()>1)
     200            {
     201                fHEnergy.SetBinContent(i, fit.GetEventsExcess());
     202                fHEnergy.SetBinError(i, fit.GetEventsExcess()/fit.GetSignificance());
     203            }
    201204        }
    202205    }
     
    216219        if (fit.FitTheta(fHAlpha, fOffData, i))
    217220        {
    218             fHTheta.SetBinContent(i, fit.GetEventsExcess());
    219             fHTheta.SetBinError(i, fit.GetEventsExcess()*0.2);
     221            if (fit.GetSignificance()>1)
     222            {
     223                fHTheta.SetBinContent(i, fit.GetEventsExcess());
     224                fHTheta.SetBinError(i, fit.GetEventsExcess()/fit.GetSignificance());
     225            }
    220226        }
    221227    }
     
    425431    //
    426432    fHTime.SetBinContent(n+1, fit.GetEventsExcess());
    427     fHTime.SetBinError(n+1, fit.GetEventsExcess()*0.1);
     433    fHTime.SetBinError(n+1, fit.GetEventsExcess()/fit.GetSignificance());
    428434
    429435    *fLog << all << *fTimeEffOn << ": " << fit.GetEventsExcess() << endl;
Note: See TracChangeset for help on using the changeset viewer.