2 from argparse
import ArgumentParser
as ap
3 from array
import array
7 parser.add_argument(
"-i", type=str, help=
'Input file', default =
"")
8 parser.add_argument(
"-o", type=str, help=
'Output file', default =
"covariance.root")
9 args = parser.parse_args()
11 input_file =
open(args.i,
"r") 13 output_file = RT.TFile(args.o, "RECREATE")
15 lines = input_file.readlines()
29 cov_vals.append(
float(s))
31 cov_matrix = RT.TMatrixD(n, n,
array(
"d", cov_vals))
int open(const char *, int)
Opens a file descriptor.
auto array(Array const &a)
Returns a manipulator which will print the specified array.