first commit of ME analysis code to run on ntuples