10#include "OTFMcEventInterface.h"
12#include "DataManager.h"
14#include <RtypesCore.h>
15#include <TCollection.h>
20 McEventInterface::McEventInterface() : fEvent(nullptr), fCanDelete(kFALSE) {}
22 void McEventInterface::ConnectToTreeInternal(Hal::EventInterface::eMode mode) {
25 case Hal::EventInterface::eMode::kRead: {
26 fEvent = (
OTF::McEvent*) manager->GetObject(
"OTF::McEvent.");
28 case Hal::EventInterface::eMode::kWrite: {
30 manager->
Register(
"OTF::McEvent.",
"OTF", fEvent, kTRUE);
32 case Hal::EventInterface::eMode::kWriteVirtual: {
34 manager->
Register(
"OTF::McEvent.",
"OTF", fEvent, kFALSE);
40 McEventInterface::~McEventInterface() {
41 if (fCanDelete && fEvent)
delete fEvent;
void Register(const char *name, const char *folderName, TNamed *obj, Bool_t toFile)