33 Task::EInitFlag Reader::Init() {
34 if (fEvent ==
nullptr) {
35 Cout::PrintInfo(
"Lack format in Reader!", EInfo::kError);
36 return Task::EInitFlag::kFATAL;
38 fInterface = fEvent->CreateInterface();
39 fInterface->ConnectToTree(EventInterface::eMode::kRead);
41 manager->
Register(
"HalEvent.",
"HalEvents", fEvent, kFALSE);
42 Cout::PrintInfo(Form(
"Register branch from reader called %s", fEvent->ClassName()), EInfo::kInfo);
43 return Task::EInitFlag::kSUCCESS;