10#include "OTFRecoEventInterface.h"
12#include "DataManager.h"
14#include <RtypesCore.h>
17 RecoEventInterface::RecoEventInterface() : fEvent(nullptr), fCanDelete(kFALSE) {}
19 void RecoEventInterface::ConnectToTreeInternal(eMode mode) {
22 case Hal::EventInterface::eMode::kRead: {
25 case Hal::EventInterface::eMode::kWrite: {
27 manager->
Register(
"OTF::RecoEvent.",
"OTF", fEvent, kTRUE);
29 case Hal::EventInterface::eMode::kWriteVirtual: {
31 manager->
Register(
"OTF::RecoEvent.",
"OTF", fEvent, kFALSE);
37 RecoEventInterface::~RecoEventInterface() {
38 if (fCanDelete && fEvent)
delete fEvent;
void Register(const char *name, const char *folderName, TNamed *obj, Bool_t toFile)