EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
FairTask.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file FairTask.h
1
// -------------------------------------------------------------------------
2
// ----- FairTask header file -----
3
// ----- Created 12/01/04 by M. Al-Turany / D. Bertini -----
4
// -------------------------------------------------------------------------
5
6
15
#ifndef FAIRTASK_H
16
#define FAIRTASK_H
17
18
#include "
FairLogger.h
"
19
#include "
FairRootManager.h
"
20
21
#include "TTask.h"
22
23
enum
InitStatus
{
kSUCCESS
,
kERROR
,
kFATAL
};
24
25
class
FairTask
:
public
TTask
26
{
27
28
public
:
29
31
FairTask
();
32
33
38
FairTask
(
const
char
*
name
, Int_t iVerbose = 1);
39
40
42
virtual
~FairTask
();
43
44
47
void
InitTask
();
48
49
51
void
ReInitTask
();
52
53
55
void
SetParTask
();
56
57
59
virtual
void
FinishTask
();
60
62
virtual
void
FinishEvent
();
63
65
void
SetVerbose
(Int_t iVerbose);
66
67
void
SetInputPersistance
(Bool_t val) {
fInputPersistance
= val;}
68
69
void
CheckInputPersistance
(TString branchName) {
70
FairRootManager
* ioman =
FairRootManager::Instance
();
71
fInputPersistance
= ioman->
CheckBranch
(branchName);
72
}
73
74
75
protected
:
76
77
Int_t
fVerbose
;
// Verbosity level
78
Int_t
fInputPersistance
;
79
FairLogger
*
fLogger
;
80
84
virtual
InitStatus
Init
() {
return
kSUCCESS
; };
85
86
90
virtual
InitStatus
ReInit
() {
return
kSUCCESS
; };
91
92
96
virtual
void
SetParContainers
() { };
97
98
100
virtual
void
Finish
() { };
101
102
// /** Action after each event. To be implemented in the derived class **/
103
// virtual void FinishTask() { };
104
105
107
void
InitTasks
();
108
109
111
void
ReInitTasks
();
112
113
115
void
SetParTasks
();
116
118
void
FinishTasks
();
119
121
void
FinishEvents
();
122
123
private
:
124
FairTask
(
const
FairTask
&);
125
FairTask
&
operator=
(
const
FairTask
&);
126
127
ClassDef
(
FairTask
,2);
128
129
};
130
131
132
#endif
EicRoot
blob
master
base
FairTask.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:32
using
1.8.2 with
EIC GitHub integration