Changeset 8703


Ignore:
Timestamp:
08/23/07 17:37:34 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8699 r8703  
    4949     - replaced fFreqSampling by fSamplingFrequency for compatibility
    5050     - increased ClassVersion to 9
     51
     52   * mraw/MRawEvtData.cc:
     53     - initialize fNumBytesPerSample to 1 to make it compatible with reading
     54       old MC files.
     55
     56   * mjobs/MJSpectrum.cc:
     57     - added control plot for the residual of Energy
     58     - fixed the "Overflow-Bug". It was a loop from o to <n, while histogram
     59       bins are from 1 to ==n
    5160
    5261
  • trunk/MagicSoft/Mars/NEWS

    r8698 r8703  
    263263     the information is lost.
    264264
     265   - sponde: added a new tab "Energy". It shows the residual of the
     266     energy (lg(estimated energy)-lg(monte carlo energy)) versus
     267     several parameters and it is meant to judge the quality of the
     268     energy estimator. In the ideal case the residual is zero
     269     and doesn't depend in the variable. In reality even a good estimator
     270     can show residuals versus Monte Carlo energy.
     271
    265272   - sponde: added a new tab "EventDist" showing the unweighted real
    266273     absolute number of events of your sample after cuts. This tells
     
    275282   - sponde: The OriginalMC tree with the events produced by corsika
    276283     is now processed only once
     284
     285   - sponde: Finally fixed most annoying bug, which has effected the
     286     last bin of the collection area. It was the problem that binnings
     287     of root histograms are from 1 to n (included) but there was a C-like
     288     loop in sponde from 0 to n (excluded). Now the loop also includes
     289     correctly under- and overflow-bins. The worse thing with this is,
     290     that for the events in the highest bin not only the bin-content
     291     was wrong, but also the weights applied to these events, which could
     292     in pricipal effect also other parts of the distribution (eg. due
     293     to energy estimation). Fortunately it effected only a few events
     294     in most cases.
    277295
    278296
  • trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc

    r8702 r8703  
    14961496    MBinning binsC(50,  0, 0.3,    "BinningLeakage",        "lin");
    14971497    MBinning binsB(51, -1, 1,      "BinningEnergyResidual", "lin");
    1498     MBinning binsD(51, -3, 1,      "BinningResidualDist",   "lin");
     1498    MBinning binsD(51, -1, 1,      "BinningResidualDist",   "lin");
    14991499
    15001500    plist.AddToList(&binsA);
     
    15061506    SetupHistEnergyEst(heest);
    15071507
    1508     MHn hdisp("Disp", "Dist residual (Disp-Dist)");
    1509     SetupHistDisp(hdisp);
     1508    //MHn hdisp("Disp", "Dist residual (Disp-Dist)");
     1509    //SetupHistDisp(hdisp);
    15101510
    15111511    MHn henergy("EvtDist");
     
    15151515    fill4b.SetWeight();
    15161516
    1517     MFillH fill4c(&hdisp, "", "FillDispResidual");
    1518     fill4c.SetWeight();
     1517    //MFillH fill4c(&hdisp, "", "FillDispResidual");
     1518    //fill4c.SetWeight();
    15191519
    15201520    // ---------------------------------------------------------
     
    15821582    tlist2.AddToList(fCut0);
    15831583    tlist2.AddToList(&taskenv0);
     1584    tlist2.AddToList(fCut1);
    15841585    tlist2.AddToList(fCutS);
    1585     tlist2.AddToList(fCut1);
    15861586    tlist2.AddToList(fCut2);
    15871587    tlist2.AddToList(fCut3);
     
    15901590    tlist2.AddToList(&fill4);
    15911591    tlist2.AddToList(&fill4b);
    1592     tlist2.AddToList(&fill4c);
    15931592    tlist2.AddToList(&fill5);
    15941593    tlist2.AddToList(&fill0a);
Note: See TracChangeset for help on using the changeset viewer.