Is there any way to automate the file processing?
Yes, there is. The user can write macros that performs a complex set of operations and execute the macro at ScanRoot command line.Here is an example of a macro that process 2 .FIL files and save the histograms to files:
void macro() { hac("histograms.cxx"); // loads the histogramming program openInput("file1.fil"); // opens the 1st .FIL file go(); // process all the events in this file saveHist("file1.root"); // saves the fistograms to file1.root closeInput(); zero(); //zero all histograms. The file1.root WILL NOT be zeroed. Just the memory openInput("file2.fil"); // opens the 2nd .FIL file go(); // process all the events in this file saveHist("file2.root"); // saves the fistograms to file1.root closeInput(); }