added 10 inputfile support in extracthistos.