Changeset 5803 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 01/11/05 16:46:58 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MMatrixLoop.cc
r2421 r5803 54 54 // -------------------------------------------------------------------------- 55 55 // 56 // Return the number of events (rows) in the matrix 57 // 58 UInt_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 // 67 TString MMatrixLoop::GetFileName() const 68 { 69 return fMatrix ? fMatrix->GetName() : "<n/a>"; 70 } 71 72 // -------------------------------------------------------------------------- 73 // 56 74 Int_t MMatrixLoop::PreProcess(MParList *plist) 57 75 { -
trunk/MagicSoft/Mars/manalysis/MMatrixLoop.h
r2419 r5803 2 2 #define MARS_MMatrixLoop 3 3 4 #ifndef MARS_M Task5 #include "M Task.h"4 #ifndef MARS_MRead 5 #include "MRead.h" 6 6 #endif 7 8 7 9 8 class MHMatrix; 10 9 11 class MMatrixLoop : public M Task10 class MMatrixLoop : public MRead 12 11 { 13 12 private: 13 // MMatrixLoop 14 14 static const TString gsDefName; 15 15 static const TString gsDefTitle; 16 16 17 protected:18 17 MHMatrix *fMatrix; 19 18 Int_t fNumRow; //! Number of dimensions of histogram 20 19 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 21 32 public: 22 33 MMatrixLoop(MHMatrix *mat, const char *name=NULL, const char *title=NULL); 23 24 Int_t PreProcess(MParList *plist);25 Int_t Process();26 34 27 35 ClassDef(MMatrixLoop, 0) // Task 'reading' events from a MHMatrix
Note:
See TracChangeset
for help on using the changeset viewer.