source: branches/Mars_use_drstimefiles/manalysis/MMatrixLoop.h@ 18160

Last change on this file since 18160 was 6924, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.0 KB
Line 
1#ifndef MARS_MMatrixLoop
2#define MARS_MMatrixLoop
3
4#ifndef MARS_MRead
5#include "MRead.h"
6#endif
7
8class MHMatrix;
9
10class MMatrixLoop : public MRead
11{
12public:
13 enum OperationMode_t {
14 kDefault,
15 kEven,
16 kOdd
17 };
18private:
19 // MMatrixLoop
20 static const TString gsDefName;
21 static const TString gsDefTitle;
22
23 MHMatrix *fMatrix;
24 Int_t fNumRow; //! Number of dimensions of histogram
25
26 Byte_t fOperationMode;
27
28 // MRead
29 UInt_t GetEntries();
30 TString GetFullFileName() const;
31 Bool_t Rewind() { fNumRow=0; return kTRUE; }
32
33 virtual Int_t AddFile(const char *fname, Int_t entries=-1) { return 0; }
34 Int_t AddFiles(MDirIter &dir) { return 0; }
35
36 // MTask
37 Int_t PreProcess(MParList *plist);
38 Int_t Process();
39
40public:
41 MMatrixLoop(MHMatrix *mat, const char *name=NULL, const char *title=NULL);
42
43 void SetOperationMode(OperationMode_t mode) { fOperationMode = mode; }
44
45 ClassDef(MMatrixLoop, 0) // Task 'reading' events from a MHMatrix
46};
47
48#endif
Note: See TracBrowser for help on using the repository browser.