er  dev
ERTask.h
1 /********************************************************************************
2  * Copyright (C) Joint Institute for Nuclear Research *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence version 3 (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 
9 #ifndef ERTask_H
10 #define ERTask_H
11 
12 #include <vector>
13 
14 #include "TString.h"
15 
16 #include "FairTask.h"
17 #include "FairRun.h"
18 
27 class ERTask : public FairTask {
28 
29 public:
30 
34  ERTask(TString name);
35 
39  ERTask(TString name, Int_t verbose);
40 
42  ~ERTask();
43 
45  virtual InitStatus Init();
46 
48  virtual void Finish();
49 
51  virtual void Reset();
52 
53 protected:
54 
56  InitStatus CheckRunManager();
57 
59  virtual void SetParContainers();
60 
61 protected:
62 
63  FairRun* fRun;
64  std::vector<TString> fAvailibleRunManagers;
65 
66 private:
67 
68  ClassDef(ERTask,1)
69 };
70 
71 #endif // ERTask_H
InitStatus CheckRunManager()
Check is instance of run manager availible for this task.
Definition: ERTask.cxx:43
virtual InitStatus Init()
Definition: ERTask.cxx:31
virtual void Reset()
Definition: ERTask.cxx:80
virtual void Finish()
Definition: ERTask.cxx:73
virtual void SetParContainers()
Initializes runtime database for getting parameters from .par file.
Definition: ERTask.cxx:61
~ERTask()
Definition: ERTask.cxx:87
FairRun * fRun
Pointer to run manager object.
Definition: ERTask.h:63
std::vector< TString > fAvailibleRunManagers
Run managers that are availible for this task.
Definition: ERTask.h:64
Base abstract class for all tasks in er.
Definition: ERTask.h:27
ERTask(TString name)
Definition: ERTask.cxx:15