Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
hist2workspace-argparse.py
Go to the documentation of this file.
1 import argparse
2 
3 def get_argparse():
4  DESCRIPTION = """hist2workspace is a utility to create RooFit/RooStats workspace from histograms
5 """
6  parser = argparse.ArgumentParser(prog='hist2workspace',
7  description = DESCRIPTION)
8  parser.add_argument("-standard_form", help="""default model, which creates an extended PDF that interpolates between RooHistFuncs
9 This is much faster for models with many bins and uses significantly less memory""")
10  parser.add_argument("-number_counting_form", help="""This was the original model in 5.28 (without patches). It uses a Poisson for each
11 bin of the histogram. This can become slow and memory intensive when there are many bins.
12 """)
13  return parser