Changeset 1388 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
07/08/02 14:20:52 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r1387 r1388  
    3434   * macros/MagicHillas.C:
    3535     - added read.DisableAutoScheme()
     36
     37   * mhist/MH.[h,cc]:
     38     - changed Fill to be non abstract anymore
    3639
    3740
  • trunk/MagicSoft/Mars/mhist/MH.cc

    r1330 r1388  
    5454#include <TCanvas.h>
    5555
     56#include "MLog.h"
     57
    5658#include "MBinning.h"
    5759
     
    7072    fName  = name  ? name  : "MH";
    7173    fTitle = title ? title : "Base class for Mars histograms";
     74}
     75
     76// --------------------------------------------------------------------------
     77//
     78// If you want to use the automatic filling of your derived class you
     79// must overload this function. If it is not overloaded you cannot use
     80// FillH with this class. The argument is a pointer to a container
     81// in your paremeter list which is specified in the MFillH constructor
     82//
     83Bool_t MH::Fill(const MParContainer *par)
     84{
     85    *fLog << GetDescriptor() << ": Fill not overloaded! Can't be used!" << endl;
     86    return kFALSE;
    7287}
    7388
  • trunk/MagicSoft/Mars/mhist/MH.h

    r1353 r1388  
    2222
    2323    virtual Bool_t SetupFill(const MParList *pList) { return kTRUE; }
    24     virtual Bool_t Fill(const MParContainer *par) = 0;
     24    virtual Bool_t Fill(const MParContainer *par);
    2525    virtual Bool_t Finalize() { return kTRUE; }
    2626
Note: See TracChangeset for help on using the changeset viewer.