Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Source.h
1/*
2 * Source.h
3 *
4 * Created on: 5 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_STEER_HALSOURCE_H_
10#define HAL_ANALYSIS_BASE_STEER_HALSOURCE_H_
11
12#include <TObject.h>
13#include <TString.h>
14
22namespace Hal {
23 class IOManager;
24 class RootIOManager;
25 class Source : public TObject {
26 protected:
27 IOManager* fManager = {nullptr};
28 Source(IOManager* manager) : fManager(manager) {};
29
30 public:
35 Source(TString name = "") {};
40 virtual void AddFile(TString file = "");
45 virtual void AddFriend(TString friendName, Int_t level);
50 TString GetSourceName() const;
55 virtual IOManager* GetIOManager() const;
60 virtual Bool_t Init() = 0;
61 virtual ~Source();
62 ClassDef(Source, 1)
63 };
67 class RootSource : public Source {
68 protected:
69 public:
70 RootSource(TString name = "");
71 virtual Bool_t Init();
72 virtual ~RootSource() {};
73 ClassDef(RootSource, 1)
74 };
75} // namespace Hal
76
77#endif /* HAL_ANALYSIS_BASE_STEER_HALSOURCE_H_ */
virtual Bool_t Init()
Definition Source.cxx:33
virtual Bool_t Init()=0
virtual IOManager * GetIOManager() const
Definition Source.cxx:29
virtual void AddFriend(TString friendName, Int_t level)
Definition Source.cxx:25
Source(TString name="")
Definition Source.h:35
virtual void AddFile(TString file="")
Definition Source.cxx:23
TString GetSourceName() const
Definition Source.cxx:27