Fork me on GitHub

source: git/external/ExRootAnalysis/ExRootTask.h@ b315535

ImprovedOutputFile Timing dual_readout llp
Last change on this file since b315535 was cab38f6, checked in by Pavel Demin <pavel.demin@…>, 10 years ago

remove svn tags and fix formatting

  • Property mode set to 100644
File size: 1.7 KB
RevLine 
[d7d2da3]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
23 ExRootTask();
24 virtual ~ExRootTask();
25
26 virtual void Init();
27 virtual void Process();
28 virtual void Finish();
29
30 virtual void InitTask();
31 virtual void ProcessTask();
32 virtual void FinishTask();
33
34 virtual void InitSubTasks();
35 virtual void ProcessSubTasks();
36 virtual void FinishSubTasks();
37
38 void Add(TTask *task);
39
40 ExRootTask *NewTask(TClass *cl, const char *name);
41 ExRootTask *NewTask(const char *className, const char *taskName);
42
43 void Exec(Option_t* option);
44
45 int GetInt(const char *name, int defaultValue, int index = -1);
46 long GetLong(const char *name, long defaultValue, int index = -1);
47 double GetDouble(const char *name, double defaultValue, int index = -1);
48 bool GetBool(const char *name, bool defaultValue, int index = -1);
49 const char *GetString(const char *name, const char *defaultValue, int index = -1);
50 ExRootConfParam GetParam(const char *name);
51 const ExRootConfReader::ExRootTaskMap *GetModules();
52
53 void SetFolder(TFolder *folder) { fFolder = folder; }
54 void SetConfReader(ExRootConfReader *conf) { fConfReader = conf; }
55
56protected:
57
58 TFolder *GetFolder() const { return fFolder; }
59 ExRootConfReader *GetConfReader() const { return fConfReader; }
60
61 TFolder *NewFolder(const char *name);
62 TObject *GetObject(const char *name, TClass *cl);
63
64private:
65
66 TFolder *fFolder; //!
67 ExRootConfReader *fConfReader; //!
68
69 ClassDef(ExRootTask, 1)
70};
71
72#endif /* ExRootTask */
73
Note: See TracBrowser for help on using the repository browser.