Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
EventInterfaceAdvanced.cxx
1/*
2 * AdvancedEventInterface.cxx
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#include "EventInterfaceAdvanced.h"
10
11#include "TrackInterface.h"
12#include <iostream>
13namespace Hal {
14 EventInterfaceAdvanced::EventInterfaceAdvanced() : fCanDeleteEvent(kFALSE), fTrInterface(nullptr) {}
15
16 EventInterfaceAdvanced::EventInterfaceAdvanced(TrackInterface* tr) : fCanDeleteEvent(kFALSE), fTrInterface(tr) {}
17
18 EventInterfaceAdvanced::~EventInterfaceAdvanced() {
19 if (fTrInterface) delete fTrInterface;
20 }
21
22 void EventInterfaceAdvanced::Boost(Double_t /*vx*/, Double_t /*vy*/, Double_t /*vz*/) {
23 std::cout << "BOOST not supported for this format" << std::endl;
24 }
25
26 void EventInterfaceAdvanced::ConnectToTreeInternal(EventInterface::eMode mode) {
27 if (EventInterface::eMode::kWriteVirtual == mode) { fCanDeleteEvent = kTRUE; }
28 }
29} // namespace Hal