source: tags/Mars-V0.8.1/mbase/MPrint.h

Last change on this file was 2206, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 918 bytes
Line 
1#ifndef MARS_MPrint
2#define MARS_MPrint
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8class MParList;
9
10class MPrint : public MTask
11{
12private:
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 enum { kSkip = BIT(14) };
18
19 void Init(const char *name, const char *title);
20
21public:
22 MPrint(const char *obj, const char *option="", const char *name=NULL, const char *title=NULL);
23 MPrint(const TObject *obj, const char *option="", const char *name=NULL, const char *title=NULL);
24
25 void SetOption(Option_t *option) { fOption = option; }
26 void EnableSkip(Bool_t skip=kTRUE) { skip ? SetBit(kSkip) : ResetBit(kSkip); }
27
28 Int_t PreProcess(MParList *pList);
29 Int_t Process();
30
31 ClassDef(MPrint, 0) // Task to call Print() function
32};
33
34#endif
35
Note: See TracBrowser for help on using the repository browser.