#ifndef MPRINT_H #define MPRINT_H #ifndef MAGIC_H #include "MAGIC.h" #endif #ifndef MTASK_H #include "MTask.h" #endif class MParList; class MPrint : public MTask { private: const TObject *fObject; // pointer to container which has to be printed TString fObjName; // given name to search for in the parameterlist TString fOption; // Print option void Init(const char *name, const char *title); public: MPrint(const char *obj, const char *option="", const char *name=NULL, const char *title=NULL); MPrint(const TObject *obj, const char *option="", const char *name=NULL, const char *title=NULL); void SetOption(Option_t *option) { fOption = option; } Bool_t PreProcess(MParList *pList); Bool_t Process(); ClassDef(MPrint, 0) // Task to call Print() function }; #endif