PandaRoot
PndMasterTask.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
26 #ifndef PNDMASTERTASK_H
27 #define PNDMASTERTASK_H
28 
29 #include "PndPersistencyTask.h"
30 
31 class TClonesArray;
32 
34  public:
38  PndMasterTask();
39 
43  PndMasterTask(const char *name);
44 
48  virtual ~PndMasterTask();
49 
53  void PrintTaskList();
54 
62  virtual void SetPersistency(Bool_t pers = kTRUE);
63 
68  void SetVerbose(Int_t iVerbose = 1);
69 
77  void SetVerbose(Int_t nTask, Int_t iVerbose);
78 
86  FairTask *GetTask(Int_t nTask);
87 
88  protected:
89  std::vector<PndPersistencyTask *> fBranchTasks;
90  std::vector<FairTask *> fStandardTasks;
91  std::map<PndPersistencyTask *, bool> fFixedPersistency;
92 
93  private:
95  ClassDef(PndMasterTask, 2);
96 
97 };
98 
99 #endif /* PNDMASTERTASK_H */
FairTask * GetTask(Int_t nTask)
Return the pointer to a single task.
void PrintTaskList()
It prints the list of tasks.
void SetVerbose(Int_t iVerbose=1)
Set the Verbosity to all the tasks.
std::map< PndPersistencyTask *, bool > fFixedPersistency
Definition: PndMasterTask.h:91
std::vector< FairTask * > fStandardTasks
Definition: PndMasterTask.h:90
std::vector< PndPersistencyTask * > fBranchTasks
Definition: PndMasterTask.h:89
virtual ~PndMasterTask()
Destructor.
Abstract class for all the master task list classes.
Definition: PndMasterTask.h:33
virtual void SetPersistency(Bool_t pers=kTRUE)
Set the persistency of all the tasks This function has to be implemented for each master task...
PndMasterTask()
Default constructor.