Hello when the macro reads root file from header it gives me such error
Error in TBasket::ReadBasketBuffers: fNbytes = 951061, fKeylen = 74, fObjlen = 1172456, noutot = 0, nout=0, nin=950987, nbuf=1172456
Can someone help me with this? I shared related part of the code
#ifdef flow_cxx
flow::flow(TTree *tree) : fChain(0)
{
// if parameter tree is not specified (or zero), connect the file
// used to generate this class and read the Tree.
if (tree == 0) {
#ifdef SINGLE_TREE
// The following code should be used if you want this class to access
// a single tree instead of a chain
TFile f = (TFile)gROOT->GetListOfFiles()->FindObject(“Memory Directory”);
if (!f || !f->IsOpen()) {
f = new TFile(“Memory Directory”);
}
f->GetObject(“events”,tree);
#else // SINGLE_TREE
// The following code should be used if you want this class to access a chain
// of trees.
TChain * chain = new TChain("events");
chain->Add("/Users/akbarov/root/play/data/295585.root");
chain->Add("/Users/akbarov/root/play/data/295586.root");
chain->Add("/Users/akbarov/root/play/data/295588.root");
chain->Add("/Users/akbarov/root/play/data/295589.root");
chain->Add("/Users/akbarov/root/play/data/295610.root");
chain->Add("/Users/akbarov/root/play/data/295611.root");
chain->Add("/Users/akbarov/root/play/data/295612.root");
chain->Add("/Users/akbarov/root/play/data/295615.root");
chain->Add("/Users/akbarov/root/play/data/295666.root");
chain->Add("/Users/akbarov/root/play/data/295721.root");
chain->Add("/Users/akbarov/root/play/data/295723.root");
chain->Add("/Users/akbarov/root/play/data/295725.root");
chain->Add("/Users/akbarov/root/play/data/295754.root");
chain->Add("/Users/akbarov/root/play/data/295755.root");
chain->Add("/Users/akbarov/root/play/data/295758.root");
chain->Add("/Users/akbarov/root/play/data/295759.root");
chain->Add("/Users/akbarov/root/play/data/295762.root");
chain->Add("/Users/akbarov/root/play/data/295763.root");
chain->Add("/Users/akbarov/root/play/data/295831.root");
chain->Add("/Users/akbarov/root/play/data/295853.root");
tree = chain;
#endif // SINGLE_TREE
}
Init(tree);
}