Changeset 6891


Ignore:
Timestamp:
03/29/05 10:08:09 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r6888 r6891  
    2121
    2222                                                 -*-*- END OF LINE -*-*-
     23
     24 2005/03/29 Thomas Bretz
     25
     26   * ganymed.cc:
     27     - implemented cmdline option for wobble and no-wobble to overwrite
     28       dataset
     29     - added cmdline option to print dataset
     30
     31   * mbase/MEvtLoop.[h,cc]:
     32     - added some memory leak analysis to eventloop
     33
     34   * mbase/MStatusDisplay.[h,cc]:
     35     - added third part to status bar which displays the current
     36       memory usage
     37     - added some more sizes to menu bar
     38     - replaced SetStatusLine1/2 by calling a common SetStatusLine
     39     - added a delete to CloseWindow() to be able to close a
     40       static window. REMARK: This gives a hell of warnings in
     41       valgrind but it is currently the only option to get this working
     42       which is really annoying
     43
     44   * mhbase/MH.cc:
     45     - small simplification
     46
     47   * mhbase/MHMatrix.cc:
     48     - replaced IsValid() by a check for the number of Rows, this
     49       was necessary because in root 4.02/00 all matrices seems
     50       to be valid
     51
     52   * mhflux/MHAlpha.cc:
     53     - changed the number of default bins in energy
     54     - make sure that the Alpha plot for off-data is displayed with
     55       a minimum at 0
     56     - fixed TPad::Divide for root 4.02/00
     57
     58   * mhflux/MHEnergyEst.cc:
     59     - use the mean abs of the resolution as fit value
     60     - some fixed to graphics
     61     - fixed the TPad::Divide for root 4.02/00
     62     - for the moment removed the pad added to the list of cleanups
     63       to get rid of the crashes
     64
     65   * mhflux/MHFalseSource.cc:
     66     - fixed for root 4.02/00 which seaqrches in the current pad
     67       for the histogram when calling Project3D
     68     - fixed the TPad::Divide for root 4.02/00
     69
     70   * mhist/MHHadronness.[h,cc]:
     71     - use MParameterD instead of MHadronness
     72
     73   * mimage/ImageLinkDef.h, mimage/Makefile:
     74     - added MHVsSize
     75
     76   * mimage/MHHillas.cc:
     77     - implemented 'same' for Center-histogram
     78
     79   * mhflux/FluxLinkDef.h, mhflux/Makefile:
     80     - added MHEnergyEst
     81
     82   * mhflux/MAlphaFitter.[h,cc]:
     83     - added significancetimes log10(excess) as fit option
     84
     85   * mjobs/MDataSet.[h,cc]:
     86     - added wobble-mode option
     87
     88   * mjobs/MJCut.cc:
     89     - changed default binning for energy
     90     - added MHillasSrcAnti optionally to the output
     91     - added MHVsSize to the tabs which are shown
     92
     93   * mjobs/MJOptimize.h:
     94     - added dummy parameters to FixParameter for compatibility
     95       with SetParemeter
     96
     97
    2398
    2499 2005/03/24 Thomas Bretz
  • trunk/MagicSoft/Mars/NEWS

    r6889 r6891  
    1313
    1414   - a bug in the time fine adjustment of the digital filter has been fixed
     15
     16   - a lot of small fixes to calling TPad::Divide with a margin==0
     17
     18   - MStatusDisplay now shows the memory usage
     19
     20   - added a memory leak statistic after the eventloop
     21
     22   - MHadronness replaced by MParameterD
     23
     24   - wobble mode can now be switched on from the data-set
     25
    1526
    1627
  • trunk/MagicSoft/Mars/mhflux/MAlphaFitter.cc

    r6888 r6891  
    501501    case kSignificanceChi2:
    502502        return -GetSignificance()/GetChiSqSignal();
     503    case kSignificanceLogExcess:
     504        if (GetEventsExcess()<1)
     505            return 0;
     506        return -GetSignificance()*TMath::Log10(GetEventsExcess());
    503507    case kSignificanceExcess:
    504508        return -GetSignificance()*GetEventsExcess();
  • trunk/MagicSoft/Mars/mhflux/MAlphaFitter.h

    r6888 r6891  
    3030    enum Strategy_t {
    3131        kSignificance,
     32        kSignificanceChi2,
     33        kSignificanceLogExcess,
    3234        kSignificanceChi2,
    3335        kSignificanceExcess,
  • trunk/MagicSoft/Mars/mhflux/Makefile

    r6883 r6891  
    2525
    2626SRCFILES = MAlphaFitter.cc \
     27           MHEnergyEst.cc \
    2728           MHAlpha.cc \
    2829           MHEnergyEst.cc \
  • trunk/MagicSoft/Mars/mjobs/MDataSet.cc

    r6874 r6891  
    170170
    171171
    172     fNameSource = env.GetValue("SourceName", "");
    173     fCatalog    = env.GetValue("Catalog",    "~/Software/data/magic_favorites.edb");
     172    fNameSource   = env.GetValue("SourceName", "");
     173    fCatalog      = env.GetValue("Catalog",    "~/Software/data/magic_favorites.edb");
     174    fIsWobbleMode = env.GetValue("WobbleMode", kFALSE);
    174175
    175176    //Print();
     
    214215    gLog << "SourceName: " << fNameSource << endl;
    215216    gLog << "Catalog:    " << fCatalog << endl;
     217
     218    gLog << "WobbleMode: " << (fIsWobbleMode?"On":"Off") << endl;
    216219
    217220    if (!TString(o).Contains("files", TString::kIgnoreCase))
  • trunk/MagicSoft/Mars/mjobs/MDataSet.h

    r6874 r6891  
    1616{
    1717private:
    18     UInt_t fNumAnalysis;      // Analysis number (artificial)
     18    UInt_t  fNumAnalysis;     // Analysis number (artificial)
    1919
    2020    TArrayI fNumSequencesOn;  // number of on-sequences
    2121    TArrayI fNumSequencesOff; // number of off-sequences
    2222
    23     TList fSequencesOn;       // list of names and paths of on-sequences
    24     TList fSequencesOff;      // list of names and paths of off-sequences
     23    TList   fSequencesOn;     // list of names and paths of on-sequences
     24    TList   fSequencesOff;    // list of names and paths of off-sequences
    2525
     26    TString fNameSource;      // Name of source from catalog
     27    TString fCatalog;         // edb catalog (magic_favourites.edb)
    2628
    27     TString  fNameSource;     // Name of source from catalog
    28     TString  fCatalog;        // edb catalog (magic_favourites.edb)
    29 
     29    Bool_t  fIsWobbleMode;    // Wobble Mode for this dataset?
    3030
    3131    void Split(TString &runs, TArrayI &data) const;
     
    5151    Bool_t GetSourcePos(MPointingPos &pos) const;
    5252
     53    Bool_t IsWobbleMode() const { return fIsWobbleMode; }
     54
    5355    // Setter
    5456    static Bool_t AddSequencesToList(const TList &list, MRead &read, char *id="I", Bool_t raw=kFALSE);
  • trunk/MagicSoft/Mars/mjobs/MJCut.cc

    r6874 r6891  
    263263{
    264264    write.SetName(name);
    265     write.AddContainer("MHillas",     "Events");
    266     write.AddContainer("MHillasSrc",  "Events");
    267     write.AddContainer("MHadronness", "Events", kFALSE);
    268     write.AddContainer("MEnergyEst",  "Events", kFALSE);
    269     write.AddContainer("DataType",    "Events");
     265    write.AddContainer("MHillas",        "Events");
     266    write.AddContainer("MHillasSrc",     "Events");
     267    write.AddContainer("MHillasSrcAnti", "Events", kFALSE);
     268    write.AddContainer("MHadronness",    "Events", kFALSE);
     269    write.AddContainer("MEnergyEst",     "Events", kFALSE);
     270    write.AddContainer("DataType",       "Events");
    270271
    271272    // Should not be the default: Either as option, or as
     
    321322
    322323    // Initialize default binnings
    323     MBinning bins1(18, 0,  90,   "BinningAlpha",     "lin");
    324     MBinning bins2(25, 10, 1e6 , "BinningEnergyEst", "log");
    325     MBinning bins3(50, 0,  60,   "BinningTheta",     "cos");
     324    MBinning bins1(18, 0,  90,  "BinningAlpha",     "lin");
     325    MBinning bins2(30, 10, 1e6, "BinningEnergyEst", "log");
     326    MBinning bins3(25, 0,  60,  "BinningTheta",     "cos"); // orig=50bins
    326327    MBinning bins4("BinningFalseSource");
    327328    plist.AddToList(&bins1);
     
    383384    taskenv2.SetDefault(fCalcHadronness);
    384385
    385     MFillH fill1a("MHHillasOffPre  [MHHillas]", "MHillas", "FillHillasPre");
    386     MFillH fill2a("MHHillasOffPost [MHHillas]", "MHillas", "FillHillasPost");
     386    MFillH fill1a("MHHillasOffPre  [MHHillas]", "MHillas",    "FillHillasPre");
     387    MFillH fill2a("MHHillasOffPost [MHHillas]", "MHillas",    "FillHillasPost");
     388    MFillH fill3a("MHVsSizeOffPost [MHVsSize]", "MHillasSrc", "FillVsSizePost");
    387389    fill1a.SetNameTab("PreCut");
    388390    fill2a.SetNameTab("PostCut");
     391    fill3a.SetNameTab("VsSize");
    389392
    390393    MPrint print2("MEffectiveOnTime");
     
    418421    tlist2.AddToList(&cont2);
    419422    if (!fWriteOnly)
     423    {
    420424        tlist2.AddToList(&fill2a);
     425        tlist2.AddToList(&fill3a);
     426    }
    421427    if (!fWriteOnly)
    422428        tlist2.AddToList(&falpha);
     
    467473        scalc.SetWobbleMode(kFALSE); /********************/
    468474
    469     MFillH fill1b("MHHillasOnPre  [MHHillas]", "MHillas", "FillHillasPre");
    470     MFillH fill2b("MHHillasOnPost [MHHillas]", "MHillas", "FillHillasPost");
     475    MFillH fill1b("MHHillasOnPre  [MHHillas]", "MHillas",    "FillHillasPre");
     476    MFillH fill2b("MHHillasOnPost [MHHillas]", "MHillas",    "FillHillasPost");
     477    MFillH fill3b("MHVsSizeOnPost [MHVsSize]", "MHillasSrc", "FillVsSizePost");
    471478    fill1b.SetNameTab("PreCut");
    472479    fill2b.SetNameTab("PostCut");
     480    fill3b.SetNameTab("VsSize");
    473481    fill1b.SetDrawOption(set.HasOffSequences()||fIsWobble?"same":"");
    474482    fill2b.SetDrawOption(set.HasOffSequences()||fIsWobble?"same":"");
     483    fill3b.SetDrawOption(set.HasOffSequences()||fIsWobble?"same":"");
    475484
    476485    MFillH falpha2("MHAlpha", "MHillasSrc", "FillAlpha");
     
    482491        tlist2.Replace(&fill1b);
    483492        tlist2.Replace(&fill2b);
     493        tlist2.Replace(&fill3b);
    484494        tlist2.Replace(&falpha2);
    485495        tlist2.Replace(&ffs2);
Note: See TracChangeset for help on using the changeset viewer.