Ignore:
Timestamp:
01/11/05 16:46:58 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/manalysis
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MMatrixLoop.cc

    r2421 r5803  
    5454// --------------------------------------------------------------------------
    5555//
     56// Return the number of events (rows) in the matrix
     57//
     58UInt_t MMatrixLoop::GetEntries()
     59{
     60    return fMatrix ? fMatrix->GetNumRows() : 0;
     61}
     62
     63// --------------------------------------------------------------------------
     64//
     65// Return name of MHMatrix, <n/a> if not available
     66//
     67TString MMatrixLoop::GetFileName() const
     68{
     69    return fMatrix ? fMatrix->GetName() : "<n/a>";
     70}
     71
     72// --------------------------------------------------------------------------
     73//
    5674Int_t MMatrixLoop::PreProcess(MParList *plist)
    5775{
  • trunk/MagicSoft/Mars/manalysis/MMatrixLoop.h

    r2419 r5803  
    22#define MARS_MMatrixLoop
    33
    4 #ifndef MARS_MTask
    5 #include "MTask.h"
     4#ifndef MARS_MRead
     5#include "MRead.h"
    66#endif
    7 
    87
    98class MHMatrix;
    109
    11 class MMatrixLoop : public MTask
     10class MMatrixLoop : public MRead
    1211{
    1312private:
     13    // MMatrixLoop
    1414    static const TString gsDefName;
    1515    static const TString gsDefTitle;
    1616
    17 protected:
    1817    MHMatrix *fMatrix;
    1918    Int_t     fNumRow;    //! Number of dimensions of histogram
    2019
     20    // MRead
     21    UInt_t  GetEntries();
     22    TString GetFileName() const;
     23    Bool_t  Rewind() { fNumRow=0; return kTRUE; }
     24
     25    virtual Int_t AddFile(const char *fname, Int_t entries=-1) { return 0; }
     26    Int_t AddFiles(MDirIter &dir) { return 0; }
     27
     28    // MTask
     29    Int_t PreProcess(MParList *plist);
     30    Int_t Process();
     31
    2132public:
    2233    MMatrixLoop(MHMatrix *mat, const char *name=NULL, const char *title=NULL);
    23 
    24     Int_t PreProcess(MParList *plist);
    25     Int_t Process();
    2634
    2735    ClassDef(MMatrixLoop, 0) // Task 'reading' events from a MHMatrix
Note: See TracChangeset for help on using the changeset viewer.