cmd  takedata writes data file, tdscan for X-ray threshold method, scanvb for bias voltage scan with iseg
new o2r.cc : takedata .out to .root