Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
OTFReader.h
1/*
2 * OTFReader.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_OTFREADER_H_
10#define HAL_EXAMPLES_ONTHEFLY_OTFREADER_H_
11
12#include "Reader.h"
13
14#include "OTFData.h"
15
16#include <vector>
17
18#include <Rtypes.h>
19#include <RtypesCore.h>
20#include <TH2.h>
21
22namespace HalOTF {
23 class McEvent;
24 class RecoEvent;
25 class ComplexEvent;
26} /* namespace HalOTF */
27
31namespace HalOTF {
32 class Reader : public Hal::Reader {
33 protected:
34 enum class ETranslate { kNone, kMc, kReco, kComplex };
35 ETranslate fTranslate = {ETranslate::kNone};
36 OTF::McEvent* fMcEvent;
37 OTF::RecoEvent* fRecoEvent;
38 HalOTF::ComplexEvent* fHalComplexEvent = {nullptr};
39 HalOTF::RecoEvent* fHalRecoEvent = {nullptr};
40 HalOTF::McEvent* fHalMcEvent = {nullptr};
41 Hal::EventInterface* fTranslateInterface = {nullptr};
42
43 public:
44 Reader();
50 void Translate(TString opt);
51 virtual void Exec(Option_t* opt);
52 virtual Hal::Task::EInitFlag Init();
53 virtual ~Reader();
54 ClassDef(Reader, 1)
55 };
56} // namespace HalOTF
57#endif /* HAL_EXAMPLES_ONTHEFLY_OTFREADER_H_ */
virtual Hal::Task::EInitFlag Init()
Definition OTFReader.cxx:33
void Translate(TString opt)