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