how to get data from one branch of a tree and output txt?
the way:
.>dump.txt
.>dump.cxx
.>
doesn’t work
Please read tips for efficient and successful posting and posting code
ROOT Version: 6.14
_Platform:linux
Compiler: Not Provided
how to get data from one branch of a tree and output txt?
the way:
.>dump.txt
.>dump.cxx
.>
doesn’t work
Please read tips for efficient and successful posting and posting code
ROOT Version: 6.14
_Platform:linux
Compiler: Not Provided
The middle line: .x dump.cxx
oh,sorry, i write wrong. it also doesn’t work
like this
There’s no error reported. The “dump.txt” file should contain the output from the “dump.cxx” macro.
dump.zip (783 Bytes)
i think it should be right. However, its result is the dump.txt of dump.zip. you can see it, maybe the cxx is wrong. thanks.
The “dump.cxx” macro writes its output to the “outputname” = “dump.txt” (and also to “dump.xml”) so, you should not use “.>” at all.
thanks a lot ! you are right. and i find that my branch is “Singles”, not “singles”. it is the main reason.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.