_ROOT Version:_6.29.01
Hi all,
I try to use TTree::ReadFile with Bool branch,
how can I write the data file,
I’ve try to use 0, 1. T,F
but it always return true.
#include <TTree.h>
void p1_data()
{
TTree * t1 = new TTree("t1", "t1");
t1->ReadFile("p1.dat");
t1->Scan();
}
p1.dat like this
ff/O
1
1
0
0
return
cx[000]:>
Processing p1_data.cpp...
************************
* Row * ff.ff *
************************
* 0 * 1 *
* 1 * 1 *
* 2 * 1 * // should be 0
* 3 * 1 * // should be 0
************************
cx[001]:> .q