12#include <Hal/RootIOManager.h>
24 auto inchain = GetInChain();
32 for (
auto chain : inchain) {
36 AddBranch(
"CbmAnaTreeSourceContainer.",
fRecoContainer, Hal::BranchInfo::EFlag::kInActive);
39 AddBranch(
"CbmAnaTreeMcSourceContainer.",
fSimContainer, Hal::BranchInfo::EFlag::kInActive);
43 TObjArray* list_branch = chain->GetListOfBranches();
44 for (
int i = 0; i < list_branch->GetEntries(); i++) {
45 TBranch* branch = (TBranch*) list_branch->At(i);
46 TString name = branch->GetName();
47 TObject** obj =
new TObject*();
49 chain->SetBranchAddress(name, obj);
50 AddBranch(branch->GetName(), obj[0], Hal::BranchInfo::EFlag::kInActive);
Bool_t ConnectToTree(TChain *tree)
void LoadFields(TString inFile)
Bool_t ConnectToTree(TChain *tree)
void LoadFields(TString file)
CbmAnaTreeRecoSourceContainer * fRecoContainer
virtual void FillBranches()
virtual ~HalCbmATIOManager()
CbmAnaTreeMcSourceContainer * fSimContainer
HalCbmSource(TString filename="")
HalCbmATIOManager * fManager
virtual void AddFriend(TString friendName="", Int_t level=0)
virtual void AddFile(TString fileName="")