10#include "DbgMcEventInterface.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 = (
Dbg::McEvent*) manager->GetObject(
"Dbg::McEvent.");
28 case Hal::EventInterface::eMode::kWrite: {
30 manager->
Register(
"Dbg::McEvent.",
"Dbg", fEvent, kTRUE);
32 case Hal::EventInterface::eMode::kWriteVirtual: {
34 manager->
Register(
"Dbg::McEvent.",
"Dbg", fEvent, kFALSE);
40 McEventInterface::~McEventInterface() {
41 if (fCanDelete && fEvent)
delete fEvent;
void Register(const char *name, const char *folderName, TNamed *obj, Bool_t toFile)