| Line | |
|---|
| 1 | #ifndef MARS_MPrint
|
|---|
| 2 | #define MARS_MPrint
|
|---|
| 3 |
|
|---|
| 4 | #ifndef MARS_MTask
|
|---|
| 5 | #include "MTask.h"
|
|---|
| 6 | #endif
|
|---|
| 7 |
|
|---|
| 8 | class MParList;
|
|---|
| 9 |
|
|---|
| 10 | class MPrint : public MTask
|
|---|
| 11 | {
|
|---|
| 12 | private:
|
|---|
| 13 | const TObject *fObject; // pointer to container which has to be printed
|
|---|
| 14 | TString fObjName; // given name to search for in the parameterlist
|
|---|
| 15 | TString fOption; // Print option
|
|---|
| 16 |
|
|---|
| 17 | void Init(const char *name, const char *title);
|
|---|
| 18 |
|
|---|
| 19 | public:
|
|---|
| 20 | MPrint(const char *obj, const char *option="", const char *name=NULL, const char *title=NULL);
|
|---|
| 21 | MPrint(const TObject *obj, const char *option="", const char *name=NULL, const char *title=NULL);
|
|---|
| 22 |
|
|---|
| 23 | void SetOption(Option_t *option) { fOption = option; }
|
|---|
| 24 |
|
|---|
| 25 | Bool_t PreProcess(MParList *pList);
|
|---|
| 26 | Bool_t Process();
|
|---|
| 27 |
|
|---|
| 28 | ClassDef(MPrint, 0) // Task to call Print() function
|
|---|
| 29 | };
|
|---|
| 30 |
|
|---|
| 31 | #endif
|
|---|
| 32 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.