Error in filling TTree branch

No this is strange, because i am creating a file first then the tree. As in my script
new_macro.cc (10.5 KB)