Changeset 953


Ignore:
Timestamp:
09/27/01 15:15:25 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r952 r953  
    99     - added entry field for cleaning levels
    1010     - restructured code a bit
     11
     12   * mhist/MFillH.cc:
     13     - fixed missing initialization of member variables in Init
    1114
    1215   * mhist/MHHillas.[h,cc]:
     
    1417     - Added DrawClone
    1518     - Removed kCanDelete bits from Draw function
    16      
     19
    1720   * mhist/MHStarMap.[h,cc]:
    1821     - Added comments
  • trunk/MagicSoft/Mars/mhist/MFillH.cc

    r889 r953  
    6262    *fName  = name  ? name  : "MFillH";
    6363    *fTitle = title ? title : "Task to fill Mars histograms";
     64
     65    fH            = NULL;
     66    fParContainer = NULL;
    6467}
    6568
     
    160163
    161164    return kTRUE;
    162 } 
     165}
    163166
    164167// --------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/mmain/MAnalysis.cc

    r952 r953  
    165165// ======================================================================
    166166
     167#include "MLog.h"
    167168#include "MParList.h"
    168169#include "MTaskList.h"
     
    178179#include "MEvtLoop.h"
    179180#include "MHillas.h"
    180 
     181#include <iostream.h>
    181182void MAnalysis::CalculateHillas() const
    182183{
     
    212213    plist.AddToList(&tlist);
    213214
     215
    214216    //
    215217    // The geometry container must be created by yourself to make sure
     
    221223    MPedestalCam pedest;
    222224    plist.AddToList(&pedest);
    223 
    224     //
    225     // The Hillas histograms (MHHillas) could be created automatically
    226     // but to make sure, that they are not deleted when the macro is
    227     // finished you must create them yourself and add it to the list
    228     //
    229     MHillas hillas;
    230     plist.AddToList(&hillas);
    231 
    232     MHHillas  hists;
    233     MHStarMap smap;
    234     plist.AddToList(&hists);
    235     plist.AddToList(&smap);
    236225
    237226    //
     
    261250    tlist.AddToList(&hcalc);
    262251
    263     MFillH hfill(&hillas, &hists);
    264     MFillH sfill(&hillas, &smap);
     252    MFillH hfill("MHillas", "MHHillas");
     253    MFillH sfill("MHillas", "MHStarMap");
    265254
    266255    if (displhillas)
     
    286275    //
    287276    if (displhillas)
    288         hists.DrawClone();
     277        plist.FindObject("MHHillas")->DrawClone();
    289278
    290279    if (displstarmap)
    291         smap.DrawClone();
     280        plist.FindObject("MHStarMap")->DrawClone();
    292281
    293282    cout << endl;
Note: See TracChangeset for help on using the changeset viewer.