Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
OTFSource.h
1/*
2 * OTFSource.h
3 *
4 * Created on: 28 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_EXAMPLES_ONTHEFLY_OTFSOURCE_H_
10#define HAL_EXAMPLES_ONTHEFLY_OTFSOURCE_H_
11
12#include <Rtypes.h>
13#include <RtypesCore.h>
14#include <vector>
15
16#include "Source.h"
17
18namespace Hal {
19 class IOManager;
20}
21namespace HalOTF {
22 class EventGenerator;
23 class IOManager;
24} // namespace HalOTF
25namespace OTF {
26 class McEvent;
27 class RecoEvent;
28} // namespace OTF
29
30namespace HalOTF {
31 class Source : public Hal::Source {
32 friend class HalOTF::IOManager;
33 Int_t fEvents = {0};
34 Bool_t fRegister = {kFALSE};
35 std::vector<HalOTF::EventGenerator*> fGenerators;
36 OTF::McEvent* fMcEvent = {nullptr};
37 OTF::RecoEvent* fRecoEvent = {nullptr};
38
39 protected:
45
46 public:
47 Source(Int_t entries = 0);
48 virtual Hal::IOManager* GetIOManager() const;
49 void AddEventGenerator(HalOTF::EventGenerator* evgen) { fGenerators.push_back(evgen); }
50 Bool_t Init();
51 void Register() { fRegister = kTRUE; }
52 void GetEvent();
53 virtual ~Source();
54 ClassDef(Source, 1)
55 };
56} // namespace HalOTF
57#endif /* HAL_EXAMPLES_ONTHEFLY_OTFSOURCE_H_ */
Bool_t Init()
Definition OTFSource.cxx:30
void RegisterOutputs(HalOTF::IOManager *mngr)
Definition OTFSource.cxx:45
virtual Hal::IOManager * GetIOManager() const
Definition OTFSource.cxx:22