_ROOT Version: 6.18/04
_Platform: ArchLinux 64-Bit
I have a question about TTree::Scan() or just Trees/branches in general.
I have a Tree with many entries called “tree”. I would like to save a specific branch to an ascii file. I found the following link to TTreePlayer::Scan() and it recommended I use:
tree->SetScanField(0); tree->Scan("*"); >tree.log
I am able to print out the branch to the console using:
But when using the advice up above I get the following error:
ROOT_prompt_8:1:19: error: use of undeclared identifier 'tree' tree->Scan("*"); >tree.log
I would like to export the contents of the branch to an Ascii file so I can more easily edit the data. Is there another way to export the contents of a branch into an Ascii file?