Fork me on GitHub

source: git/external/ExRootAnalysis/ExRootTask.h@ 16747bf

ImprovedOutputFile Timing dual_readout llp
Last change on this file since 16747bf was d7d2da3, checked in by pavel <pavel@…>, 12 years ago

move branches/ModularDelphes to trunk

  • 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 * $Date: 2008-06-04 13:57:26 $
9 * $Revision: 1.1 $
10 *
11 *
12 * \author P. Demin - UCL, Louvain-la-Neuve
13 *
14 */
15
16#include "TTask.h"
17
18#include "ExRootAnalysis/ExRootConfReader.h"
19
20class TClass;
21class TFolder;
22
23class ExRootTask : public TTask
24{
25public:
26
27 ExRootTask();
28 virtual ~ExRootTask();
29
30 virtual void Init();
31 virtual void Process();
32 virtual void Finish();
33
34 virtual void InitTask();
35 virtual void ProcessTask();
36 virtual void FinishTask();
37
38 virtual void InitSubTasks();
39 virtual void ProcessSubTasks();
40 virtual void FinishSubTasks();
41
42 void Add(TTask *task);
43
44 ExRootTask *NewTask(TClass *cl, const char *name);
45 ExRootTask *NewTask(const char *className, const char *taskName);
46
47 void Exec(Option_t* option);
48
49 int GetInt(const char *name, int defaultValue, int index = -1);
50 long GetLong(const char *name, long defaultValue, int index = -1);
51 double GetDouble(const char *name, double defaultValue, int index = -1);
52 bool GetBool(const char *name, bool defaultValue, int index = -1);
53 const char *GetString(const char *name, const char *defaultValue, int index = -1);
54 ExRootConfParam GetParam(const char *name);
55 const ExRootConfReader::ExRootTaskMap *GetModules();
56
57 void SetFolder(TFolder *folder) { fFolder = folder; }
58 void SetConfReader(ExRootConfReader *conf) { fConfReader = conf; }
59
60protected:
61
62 TFolder *GetFolder() const { return fFolder; }
63 ExRootConfReader *GetConfReader() const { return fConfReader; }
64
65 TFolder *NewFolder(const char *name);
66 TObject *GetObject(const char *name, TClass *cl);
67
68private:
69
70 TFolder *fFolder; //!
71 ExRootConfReader *fConfReader; //!
72
73 ClassDef(ExRootTask, 1)
74};
75
76#endif /* ExRootTask */
77
Note: See TracBrowser for help on using the repository browser.