def main( argv=None ) : files = fd.histo_files() for mcf in files : print mcf.FileName # FIXME: nicer info spaces = plots.get_plots(mcf) # contrib_vars = plots.get_contribs(mcf) # predict_vars = plots.get_predicts(mcf) # entry_hists = histogram_processing.get_entry_hists(mcf, spaces ) dchi_hists = histogram_processing.get_dchi_hists(mcf, spaces ) histogram_processing.plot_and_save_smooth_spline(dchi_hists,mcf,spaces)
def main(argv=None): mcfile_list = files.histo_files() for mcf in mcfile_list: spaces = plots.get_plots(mcf) # bit of output print_spaces(spaces, "Plots to make") chain = MCAnalysisChain(mcf) complete_histos = histogram_processing.calculate_entry_histograms(spaces, chain) histogram_processing.save_hlist_to_root_file(complete_histos, mcf.FileName, mcf.EntryDirectory)
def main( argv=None ) : files = fd.histo_files() for mcf in files : plot_vars = plots.get_plots(mcf) contrib_vars = plots.get_contribs(mcf) predict_vars = plots.get_predicts(mcf) plot_hists = histogram_processing.get_entry_hist_list(mcf, plot_vars) plot_modes = [ "pval", "chi2", "dchi" ] histogram_processing.fill_and_save_data_hists( mcf, plot_modes, plot_hists, contrib_vars, predict_vars)
def main( argv=None ) : files = fd.histo_files() for mcf in files : print mcf.FileName # FIXME: nicer info # plot_vars = plots.get_plots(mcf) spaces = plots.get_plots(mcf) contrib_vars = plots.get_contribs(mcf) predict_vars = plots.get_predicts(mcf) #plot_hist_KOhack_s = histogram_processing.get_entry_hist_KOhack_list(mcf, plot_vars) entry_hists = histogram_processing.get_entry_hists(mcf, spaces ) plot_modes = [ "pval", "chi2", "dchi" ] # histogram_processing.fill_and_save_data_hists( mcf, plot_modes, # plot_hist_KOhack_s, # contrib_vars, predict_vars) histogram_processing.fill_and_save_data_hists( mcf, spaces,entry_hists, plot_modes,contrib_vars, predict_vars)