Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
DbgTask.h
1/*
2 * DbgTask.h
3 *
4 * Created on: 20 lut 2024
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#ifndef HAL_EXAMPLES_DEBUGFORMAT_DBGTASK_H_
10#define HAL_EXAMPLES_DEBUGFORMAT_DBGTASK_H_
11
12#include "Task.h"
13
14#include <TStopwatch.h>
15#include <TSystem.h>
16#include <fstream>
17
18
19namespace HalDbg {
20 class Task : public Hal::Task {
21 protected:
22 Int_t fModulo = {1000};
23 Int_t fCounter = {0};
24 Double_t fPrevTime = {0};
25 TString fOutName;
26 std::ofstream fOutLog;
27 Bool_t fUseLog = {kFALSE};
28 ProcInfo_t fProcInfo;
29 TStopwatch fTimer;
30
31 public:
32 Task() {};
33 virtual EInitFlag Init();
34 void SetReportStep(Int_t step) { fModulo = step; }
35 void SetLogFile(TString name);
36 virtual ~Task() {}
37 virtual void Exec(Option_t* option);
38 virtual void FinishTask();
39 ClassDef(Task, 1)
40 };
41
42} // namespace HalDbg
43
44#endif /* HAL_EXAMPLES_DEBUGFORMAT_DBGTASK_H_ */
virtual void FinishTask()
Definition DbgTask.cxx:46
virtual EInitFlag Init()
Definition DbgTask.cxx:18