10#include "DataManager.h"
15#include <RtypesCore.h>
19 DataManager::DataManager(IOManager* mngr) : fManager(mngr) {}
21 DataManager* DataManager::Instance() {
23 thread_local DataManager mngr;
27 DataManager::~DataManager() {}
29 Int_t DataManager::GetEntries()
const {
return fManager->GetEntries(); }
31 Int_t DataManager::GetEntry(Int_t i, Int_t flag) {
return fManager->GetEntry(i, flag); }
33 Bool_t DataManager::Init() {
return fManager->Init(); }
35 void DataManager::Register(
const char* name,
const char* folderName, TNamed* obj, Bool_t toFile) {
36 fManager->Register(name, folderName, obj, toFile);
39 void DataManager::Register(
const char* name,
const char* Foldername, TCollection* obj, Bool_t toFile) {
40 fManager->Register(name, Foldername, obj, toFile);
43 void DataManager::SetInChain(TChain* tempChain, Int_t ident) { fManager->SetInChain(tempChain, ident); }
45 void DataManager::UpdateBranches() { fManager->UpdateBranches(); }
47 Bool_t DataManager::CheckBranch(
const char* BrName) {
48 if (fManager->GetBranchStatus(BrName) != BranchInfo::EFlag::kNull)
return kTRUE;
52 TObject* DataManager::GetObject(
const char* BrName) {
return fManager->GetObject(BrName); }
54 const std::vector<TString> DataManager::GetBranchNameList() {
return fManager->GetBranchNameList(); }
56 MagField* DataManager::GetField()
const {
return fManager->GetField(); }
58 TString DataManager::GetSourceName()
const {
return fManager->GetSourceName(); }
60 void DataManager::GetIOManagerInfo() { fManager->PrintInfo(); }