Ignore:
Timestamp:
07/24/07 14:36:39 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mtools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtools/MTFillMatrix.cc

    r8091 r8644  
    154154}
    155155
     156void MTFillMatrix::Init(const char *name, const char *title)
     157{
     158    fName  = name  ? name  : "MFillMatrix";
     159    fTitle = title ? title : "Tool to fill MHMatrix from file";
     160}
     161
     162MTFillMatrix::MTFillMatrix(const char *name, const char *title)
     163: fReference(0), fReader(0), fDestMatrix1(0), fDestMatrix2(0),
     164  fNumDestEvents1(0), fNumDestEvents2(0), fWriteFile1(0), fWriteFile2(0)
     165{
     166    Init(name, title);
     167}
     168
    156169// --------------------------------------------------------------------------
    157170//
     
    164177// the predefined size, but it is much faster.
    165178//
    166 MTFillMatrix::MTFillMatrix(const MH3 *ref)
     179MTFillMatrix::MTFillMatrix(const MH3 *ref, const char *name, const char *title)
    167180: fReference(0), fReader(0), fDestMatrix1(0), fDestMatrix2(0),
    168181  fNumDestEvents1(0), fNumDestEvents2(0), fWriteFile1(0), fWriteFile2(0)
    169182{
    170     fName  = "MFillMatrix";
    171     fTitle = "Tool to fill MHMatrix from file";
    172 
     183    Init(name, title);
    173184    if (ref)
    174185        fReference = (MH3*)ref->Clone();
  • trunk/MagicSoft/Mars/mtools/MTFillMatrix.h

    r7714 r8644  
    3434    TList     fPostTasks;
    3535
     36    void Init(const char *name, const char *title);
     37
    3638    void Add(const TList &src, const TClass *cls, TList &dest);
    3739
     
    4244
    4345public:
    44     MTFillMatrix(const MH3 *ref=NULL);
     46    MTFillMatrix(const char *name=0, const char *title=0);
     47    MTFillMatrix(const MH3 *ref, const char *name=0, const char *title=0);
    4548    ~MTFillMatrix();
    4649
Note: See TracChangeset for help on using the changeset viewer.