All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
make_driftV_df.py
Go to the documentation of this file.
1 import sys
2 from lib.glob import NTupleGlob
3 from lib import branches
4 
5 def main(output, inputs):
6  ntuples = NTupleGlob(inputs, branches.trkbranches)
7  df = ntuples.dataframe(nproc="auto")
8  df.to_hdf(output, key="df", mode="w")
9 
10 if __name__ == "__main__":
11  printhelp = len(sys.argv) < 3 or sys.argv[1] == "-h"
12  if printhelp:
13  print("Usage: python make_driftV_df.py [output.df] [inputs.root,]")
14  else:
15  main(sys.argv[1], sys.argv[2:])
do one_file $F done echo for F in find $TOP name CMakeLists txt print
Definition: glob.py:1