Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
EventInterface.h
1/*
2 * EventInterface.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_DATAFORMAT_HALEVENTINTERFACE_H_
10#define HAL_DATAFORMAT_HALEVENTINTERFACE_H_
11
12#include <TLorentzVector.h>
13#include <TObject.h>
14
15namespace Hal {
16 class EventInterface : public TObject {
17 public:
18 enum class eMode { kRead, kWrite, kWriteVirtual };
19
20 private:
21 Bool_t fConnected;
22
23 protected:
24 virtual void ConnectToTreeInternal(eMode mode) = 0;
25
26 public:
28 virtual void ConnectToTree(eMode mode);
29 virtual ~EventInterface();
30 ClassDef(EventInterface, 1)
31 };
32} // namespace Hal
33#endif /* HAL_DATAFORMAT_HALEVENTINTERFACE_H_ */