UTask.h 586 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef UTASK
  2. #define UTASK
  3. // ROOT headers
  4. #include "TTask.h"
  5. //_________________
  6. class UTask : public TTask {
  7. protected:
  8. Int_t fVerbose; // Verbosity level
  9. public:
  10. /// Default constructor
  11. UTask();
  12. /// Constructor with parameters
  13. UTask(const char *name,
  14. Int_t verbose = 1);
  15. /// Destructor
  16. virtual ~UTask();
  17. virtual void Init() = 0;
  18. virtual void Exec(Option_t *option = "") = 0;
  19. virtual void Finish() = 0;
  20. inline void SetVerbose(Int_t verbose) {fVerbose = verbose;}
  21. ClassDef(UTask, 1);
  22. };
  23. #endif