Fork me on GitHub

source: git/external/ExRootAnalysis/ExRootTask.h@ 9189af2

Last change on this file since 9189af2 was 341014c, checked in by Pavel Demin <pavel-demin@…>, 6 years ago

apply .clang-format to all .h, .cc and .cpp files

  • Property mode set to 100644
File size: 1.7 KB
Line 
1#ifndef ExRootTask_h
2#define ExRootTask_h
3
4/** \class ExRootTask
5 *
6 * Class handling output ROOT tree
7 *
8 * \author P. Demin - UCL, Louvain-la-Neuve
9 *
10 */
11
12#include "TTask.h"
13
14#include "ExRootAnalysis/ExRootConfReader.h"
15
16class TClass;
17class TFolder;
18
19class ExRootTask: public TTask
20{
21public:
22 ExRootTask();
23 virtual ~ExRootTask();
24
25 virtual void Init();
26 virtual void Process();
27 virtual void Finish();
28
29 virtual void InitTask();
30 virtual void ProcessTask();
31 virtual void FinishTask();
32
33 virtual void InitSubTasks();
34 virtual void ProcessSubTasks();
35 virtual void FinishSubTasks();
36
37 void Add(TTask *task);
38
39 ExRootTask *NewTask(TClass *cl, const char *name);
40 ExRootTask *NewTask(const char *className, const char *taskName);
41
42 void Exec(Option_t *option);
43
44 int GetInt(const char *name, int defaultValue, int index = -1);
45 long GetLong(const char *name, long defaultValue, int index = -1);
46 double GetDouble(const char *name, double defaultValue, int index = -1);
47 bool GetBool(const char *name, bool defaultValue, int index = -1);
48 const char *GetString(const char *name, const char *defaultValue, int index = -1);
49 ExRootConfParam GetParam(const char *name);
50 const ExRootConfReader::ExRootTaskMap *GetModules();
51
52 void SetFolder(TFolder *folder) { fFolder = folder; }
53 void SetConfReader(ExRootConfReader *conf) { fConfReader = conf; }
54
55protected:
56 TFolder *GetFolder() const { return fFolder; }
57 ExRootConfReader *GetConfReader() const { return fConfReader; }
58
59 TFolder *NewFolder(const char *name);
60 TObject *GetObject(const char *name, TClass *cl);
61
62private:
63 TFolder *fFolder; //!
64 ExRootConfReader *fConfReader; //!
65
66 ClassDef(ExRootTask, 1)
67};
68
69#endif /* ExRootTask */
Note: See TracBrowser for help on using the repository browser.