本文整理汇总了Python中CombineHarvester.CombineTools.combine.CombineToolBase.CombineToolBase类的典型用法代码示例。如果您正苦于以下问题:Python CombineToolBase类的具体用法?Python CombineToolBase怎么用?Python CombineToolBase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CombineToolBase类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: attach_intercept_args
def attach_intercept_args(self, group):
CombineToolBase.attach_intercept_args(self, group)
group.add_argument('-m', '--mass', required=True)
group.add_argument('-d', '--datacard', required=True)
group.add_argument('--redefineSignalPOIs')
group.add_argument('--setPhysicsModelParameters')
group.add_argument('--name', '-n', default='Test')
示例2: attach_args
def attach_args(self, group):
CombineToolBase.attach_args(self, group)
group.add_argument('--config',
help=('json configuration file'))
group.add_argument('--order', type=int, default=2,
help=('Taylor expand up to and including this order'))
group.add_argument('--cross-order', type=int, default=2,
help=('Taylor expand up to and including this order for the cross-order terms'))
group.add_argument('--choose-POIs', default=None,
help=('Explict list POIs to expand in'))
group.add_argument('--do-fits', action='store_true',
help=('Actually do the fits'))
group.add_argument('--test-mode', type=int, default=0,
help=('Test on the workspace'))
group.add_argument('--save', default=None,
help=('Save results to a json file'))
group.add_argument('--load', default=None,
help=('Load results from a json file'))
group.add_argument('--stencil-add', type=int, default=0,
help=('Add additional points to each stencil'))
group.add_argument('--stencil-min', type=int, default=3,
help=('Minimum number of points in stencil'))
group.add_argument('--drop-threshold', type=float, default=0.,
help=('Drop contributions below this threshold'))
group.add_argument('--multiple', type=int, default=1,
help=('Run multiple fixed points in one combine job'))
group.add_argument('--workspace-bestfit', action='store_true',
help=('Update the best-fit using the workspace snapshot'))
示例3: attach_args
def attach_args(self, group):
CombineToolBase.attach_args(self, group)
group.add_argument(
'--opts', nargs='+', default=[], help='Add preset combine option groups')
group.add_argument(
'--there', action='store_true', help='Run combine in the same directory as the workspace')
group.add_argument('--split-points', type=int, default=0,
help='When used in conjunction with --points will create multiple combine calls that each run at most the number of points specified here.')
示例4: attach_args
def attach_args(self, group):
CombineToolBase.attach_args(self, group)
group.add_argument(
'input', help='The input specified as FILE:WORKSPACE:DATASET or FILE:WORKSPACE')
group.add_argument(
'output', help='The output specified as FILE:WORKSPACE:DATASET or FILE:WORKSPACE')
group.add_argument(
'-d', '--data', help='Source data from other file, either FILE:WORKSPACE:DATA or FILE:DATA')
示例5: attach_intercept_args
def attach_intercept_args(self, group):
CombineToolBase.attach_intercept_args(self, group)
group.add_argument(
'-m', '--mass', help='Supports range strings for multiple masses, e.g. "120:130:5,140 will produce three combine calls with mass values of 120, 125, 130 and 140"')
group.add_argument(
'--points', help='For use with "-M MultiDimFit --algo grid" to split scan points into separate jobs')
group.add_argument('--name', '-n', default='.Test',
help='Name used to label the combine output file, can be modified by other options')
示例6: attach_args
def attach_args(self, group):
CombineToolBase.attach_args(self, group)
group.add_argument('input', help='The input file')
group.add_argument(
'--algo', help='The algo used in MultiDimFit', default='none')
group.add_argument(
'-P', '--POIs', help='The params that were scanned (in scan order)')
group.add_argument(
'--json', help='Write json output (format file.json:key1:key2..')
示例7: attach_args
def attach_args(self, group):
CombineToolBase.attach_args(self, group)
group.add_argument('-w', '--workspace', required=True)
group.add_argument('-d', '--data')
group.add_argument('-f', '--fitres')
group.add_argument('--match')
group.add_argument('--no-match')
group.add_argument('-o', '--output', default='nll')
group.add_argument('-p', '--points', default=200, type=int)
示例8: attach_args
def attach_args(self, group):
CombineToolBase.attach_args(self, group)
group.add_argument(
'--opts', nargs='+', default=[], help='Add preset combine option groups')
group.add_argument(
'--there', action='store_true', help='Run combine in the same directory as the workspace')
group.add_argument('--split-points', type=int, default=0,
help='When used in conjunction with --points will create multiple combine calls that each run at most the number of points specified here.')
group.add_argument(
'--boundlist', help='Name of json-file which contains the ranges of physical parameters depending on the given mass and given physics model')
示例9: attach_args
def attach_args(self, group):
CombineToolBase.attach_args(self, group)
group.add_argument('-i', '--input', nargs='+', default=[],
help='The input file containing the MultiDimFit singles mode output')
group.add_argument(
'-o', '--output', help='The output name in the format file:prefix')
group.add_argument(
'-P', '--POIs', help='The params that were scanned (in scan order)')
group.add_argument(
'--POIs-from-set', help='Extract from file:workspace:set instead')
group.add_argument('--compare', help='Compare to RooFitResult')
示例10: attach_intercept_args
def attach_intercept_args(self, group):
CombineToolBase.attach_intercept_args(self, group)
group.add_argument(
'-m', '--mass', help='Supports range strings for multiple masses, e.g. "120:130:5,140 will produce three combine calls with mass values of 120, 125, 130 and 140"')
group.add_argument(
'--points', help='For use with "-M MultiDimFit --algo grid" to split scan points into separate jobs')
group.add_argument(
'--singlePoint', help='Supports range strings for multiple points to test, uses the same format as the --mass argument')
group.add_argument(
'--boundlist', help='Name of json-file which contains the ranges of physical parameters depending on the given mass and given physics model')
group.add_argument('--name', '-n', default='.Test',
help='Name used to label the combine output file, can be modified by other options')
示例11: attach_args
def attach_args(self, group):
CombineToolBase.attach_args(self, group)
# group.add_argument('--offset', default=0, type=int,
# help='Start the loop over parameters with this offset (default: %(default)s)')
# group.add_argument('--advance', default=1, type=int,
# help='Advance this many parameters each step in the loop (default: %(default)s')
group.add_argument('--input-json',
help=('json file and dictionary containing the fit values, of form file:key1:key2..'))
group.add_argument('--do-fits', action='store_true',
help=('Actually do the fits'))
group.add_argument('--cov-method', choices=['full', 'asymm'], default='full')
group.add_argument('--cor-method', choices=['full', 'asymm', 'average'], default='full')
group.add_argument('--asymm-vals', default='')
group.add_argument('--do-generic', action='store_true')
示例12: attach_args
def attach_args(self, group):
CombineToolBase.attach_args(self, group)
group.add_argument('-i', '--input', nargs='+', help=""" A list of
input datacards and directories. For the latter, all .txt files
within the directory will be combined. If the -m option has not
been specified and the enclosing directory is a number, this will
be taken as the mass value to set. """)
group.add_argument('--cc', nargs='?', const=self.default_card,
default=None, help=""" Create a combined datacard
with a specified name from the individual cards given by the -i
option. Note that if this option is used without an argument a
default card name will be used. For directory arguments in -i, the
cards will be combined regardless of whether --cc is specified,
but can still be used to set the name of the combined card that is
created. """)
示例13: attach_intercept_args
def attach_intercept_args(self, group):
CombineToolBase.attach_intercept_args(self, group)
group.add_argument(
'-m', '--mass', help='Supports range strings for multiple masses, e.g. "120:130:5,140 will produce three combine calls with mass values of 120, 125, 130 and 140"')
group.add_argument(
'--points', help='For use with "-M MultiDimFit --algo grid" to split scan points into separate jobs')
group.add_argument(
'--singlePoint', help='Supports range strings for multiple points to test, uses the same format as the --mass argument')
group.add_argument(
'-s', '--seed', help='Supports range strings for multiple RNG seeds, uses the same format as the --mass argument')
group.add_argument(
'-d', '--datacard', nargs='*', default=[], help='Operate on multiple datacards')
group.add_argument('--name', '-n', default='.Test',
help='Name used to label the combine output file, can be modified by other options')
group.add_argument(
'--setPhysicsModelParameterRanges', help='Some other options will modify or add to the list of parameter ranges')
示例14: attach_args
def attach_args(self, group):
CombineToolBase.attach_args(self, group)
# group.add_argument('--offset', default=0, type=int,
# help='Start the loop over parameters with this offset (default: %(default)s)')
# group.add_argument('--advance', default=1, type=int,
# help='Advance this many parameters each step in the loop (default: %(default)s')
group.add_argument('--named', metavar='PARAM1,PARAM2,...',
help=('By default the list of nuisance parameters will be loaded from the input workspace. '
'Use this option to specify a different list'))
group.add_argument('--doInitialFit', action='store_true',
help=('Find the crossings of all the POIs. Must have the output from this before running with --doFits'))
group.add_argument('--splitInitial', action='store_true',
help=('In the initial fits generate separate jobs for each POI'))
group.add_argument('--doFits', action='store_true',
help=('Actually run the fits for the nuisance parameter impacts, otherwise just looks for the results'))
group.add_argument('--output', '-o',
help=('write output json to a file'))
示例15: attach_args
def attach_args(self, group):
CombineToolBase.attach_args(self, group)
group.add_argument('--named', metavar='PARAM1,PARAM2,...', help=""" By
default the list of nuisance parameters will be loaded from the
input workspace. Use this option to specify a different list""")
group.add_argument('--doInitialFit', action='store_true', help="""Find
the crossings of all the POIs. Must have the output from this
before running with --doFits""")
group.add_argument('--splitInitial', action='store_true', help="""In
the initial fits generate separate jobs for each POI""")
group.add_argument('--doFits', action='store_true', help="""Actually
run the fits for the nuisance parameter impacts, otherwise just
looks for the results""")
group.add_argument('--allPars', action='store_true', help="""Run the
impacts for all free parameters of the model, not just those
listed as nuisance parameters""")
group.add_argument('--output', '-o', help="""write output json to a
file""")