16 #include <TCollection.h>
25 , fInputPersistance(-1)
27 , fStreamProcessing(kFALSE)
28 , fOutputPersistance()
32 : TTask(name,
"FairTask")
34 , fInputPersistance(-1)
36 , fOutputPersistance()
49 LOG(fatal) <<
"Initialization of Task " << fName.Data() <<
" failed fatally";
65 LOG(fatal) <<
"Reinitialization of Task " << fName.Data() <<
" failed fatally";
102 TIter next(GetListOfTasks());
104 while ((task = dynamic_cast<FairTask*>(next()))) {
111 TIter next(GetListOfTasks());
113 while ((task = dynamic_cast<FairTask*>(next()))) {
129 Error(
"ExecuteTask",
"Cannot execute task:%s, already running task: %s", GetName(), fgBeginTask->GetName());
142 LOG(info) <<
"Execute task:" << GetName() <<
" : " << GetTitle();
148 fHasExecuted = kTRUE;
155 fgBeginTask->CleanTasks();
166 while ((task = static_cast<FairTask*>(next()))) {
169 if (!task->IsActive())
171 if (task->fHasExecuted) {
175 if (task->fBreakin == 1) {
176 printf(
"Break at entry of task: %s\n", task->GetName());
183 LOG(info) <<
"Execute task:" << task->GetName() <<
" : " << task->GetTitle();
189 task->fHasExecuted = kTRUE;
191 if (task->fBreakout == 1) {
192 printf(
"Break at exit of task: %s\n", task->GetName());
202 TIter next(GetListOfTasks());
204 while ((task = dynamic_cast<FairTask*>(next()))) {
211 TIter next(GetListOfTasks());
213 while ((task = dynamic_cast<FairTask*>(next()))) {
220 TIter next(GetListOfTasks());
222 while ((task = dynamic_cast<FairTask*>(next()))) {
229 TIter next(GetListOfTasks());
231 while ((task = dynamic_cast<FairTask*>(next()))) {
238 fOutputPersistance.insert(std::pair<TString, Bool_t>(branchName, persistence));
243 std::map<TString, Bool_t>::iterator it = fOutputPersistance.find(branchName);
244 if (it != fOutputPersistance.end()) {
virtual void ExecuteTask(Option_t *option="0")
void SetCurrentTask(TTask *tTask)
Bool_t IsOutputBranchPersistent(TString)
static FairMonitor * GetMonitor()
virtual InitStatus ReInit()
virtual void SetParContainers()
ClassImp(FairEventBuilder)
virtual void ExecuteTasks(Option_t *option)
void SetOutputBranchPersistent(TString, Bool_t)
virtual void FinishTask()
void SetVerbose(Int_t iVerbose)
void StopMonitoring(const TTask *tTask, const char *identStr)
virtual InitStatus Init()
void StartMonitoring(const TTask *tTask, const char *identStr)
virtual void FinishEvent()