Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
AnalysisManager.h
1/*
2 * RunAna.h
3 *
4 * Created on: 4 maj 2022
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#ifndef HAL_ANALYSIS_BASE_HALRUNANA_H_
10#define HAL_ANALYSIS_BASE_HALRUNANA_H_
11
12#include <TObject.h>
13#include <TString.h>
14
18namespace Hal {
19 class IOManager;
20 class Source;
21 class Task;
22 class MagField;
23 class Reader;
24 class TriggerTask;
25 class Package;
26 class AnalysisManager : public TObject {
27 UInt_t fProcessedEvents = {0};
28 Bool_t fTriggersEnabled = {kFALSE};
29 Bool_t fProgressBar = {kFALSE};
30 MagField* fField = {nullptr};
31 Source* fSource = {nullptr};
32 TString fOutputFile;
33 TString fOutTreeName = {"HalTree"};
34 IOManager* fManager = {nullptr};
35 std::vector<TriggerTask*> fTriggers;
36 std::vector<TriggerTask*> fActiveTriggers;
37 std::vector<TriggerTask*> fPassiveTriggers;
38 std::vector<Task*> fTasks;
39 std::vector<Task*> fActiveTasks;
40 std::vector<Task*> fPassiveTasks;
41 void Finish();
42 void DoStep(Int_t entry);
43
44 public:
49 void EnableProgressBar() { fProgressBar = kTRUE; }
54 void AddReader(Reader* reader);
59 void AddTrigger(TriggerTask* trigger);
64 void AddTask(Task* ana) { fTasks.push_back(ana); };
68 virtual Bool_t Init();
73 void SetOutTreeName(TString name) { fOutTreeName = name; }
80 void Run(Int_t start = -1, Int_t end = -1);
85 void SetSource(Source* source) { fSource = source; };
90 void SetOutput(TString name) { fOutputFile = name; };
95 MagField* GetField() const { return fField; }
100 void SetField(MagField* field) { fField = field; }
101 virtual ~AnalysisManager();
102 ClassDef(AnalysisManager, 1)
103 };
104} // namespace Hal
105
106#endif /* HAL_ANALYSIS_BASE_HALRUNANA_H_ */
void AddTrigger(TriggerTask *trigger)
void SetField(MagField *field)
void SetOutput(TString name)
void AddReader(Reader *reader)
void AddTask(Task *ana)
void SetOutTreeName(TString name)
MagField * GetField() const
virtual Bool_t Init()
void SetSource(Source *source)
void Run(Int_t start=-1, Int_t end=-1)