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')
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('--exclude', metavar='PARAM1,PARAM2,...', help=""" Skip these nuisances""") 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""")
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' ) group.add_argument('--generate', nargs='*', default=[], help='Generate sets of options')
def attach_args(self, group): CombineToolBase.attach_args(self, group) group.add_argument('input', nargs='+', default=[], help='The input files') group.add_argument('-o', '--output', nargs='?', const='limits.json', default='limits.json', help="""The name of the output json file. When the --use-dirs option is set the enclosing directory name will be appended to the filename given here.""") group.add_argument( '--use-dirs', action='store_true', help="""Use the directory structure to create multiple limit outputs and to set the output file names""") group.add_argument('--toys', action='store_true', help="""Collect toy values""") group.add_argument( '--limit-err', action='store_true', help="""Also store the uncertainties on the limit""")
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'))
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'))
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.')
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')
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')
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)
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..')
def attach_args(self, group): CombineToolBase.attach_args(self, group) group.add_argument('config', help='json config file') group.add_argument('--cycles', default=0, type=int, help='Number of job cycles to create per point') group.add_argument('--output', action='store_true', help='Write CLs grids into an output file')
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')
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')
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..')
def attach_args(self, group): CombineToolBase.attach_args(self, group) group.add_argument('--input', nargs='+', default=[], help='The input files') group.add_argument( '-o', '--output', nargs='?', const='gof.json', default='gof.json', help="""The name of the output json file. When the --use-dirs option is set the enclosing directory name will be appended to the filename given here.""") group.add_argument( '--use-dirs', action='store_true', help="""Use the directory structure to create multiple limit outputs and to set the output file names""")
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')
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'))
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')
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. """)
def attach_args(self, group): CombineToolBase.attach_args(self, group) group.add_argument('config', help='json config file') group.add_argument('--cycles', default=0, type=int, help='Number of job cycles to create per point') group.add_argument('--output', action='store_true', help='Write CLs grids into an output file') group.add_argument( '--from-asymptotic', default=None, help= 'JSON file which will be used to create a limit grid automatically' )
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')
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'))
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.' )
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')
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""")
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('--exclude', metavar='PARAM1,PARAM2,...', help=""" Skip these nuisances. Also accepts regexp with syntax 'rgx{<my regexp>}'""") 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""") group.add_argument('--approx', default=None, choices=['hesse', 'robust'], help="""Calculate impacts using the covariance matrix instead""") group.add_argument('--noInitialFit', action='store_true', default=False, help="""Do not look for results from the initial Fit""")
def attach_args(self, group): CombineToolBase.attach_args(self, group) group.add_argument('config', help='json config file')
def attach_intercept_args(self, group): CombineToolBase.attach_intercept_args(self, group) group.add_argument('--setPhysicsModelParameters', default=None) group.add_argument('--freezeNuisances', default=None)
def attach_intercept_args(self, group): CombineToolBase.attach_intercept_args(self, group) group.add_argument('--name', '-n', default='Test') group.add_argument('-m', '--mass', required=True)
def set_args(self, known, unknown): CombineToolBase.set_args(self, known, unknown)
def attach_args(self, group): CombineToolBase.attach_args(self, group) group.add_argument( '-i', '--input', nargs='+', default=[], help='The input files') group.add_argument( '-o', '--output', help='The name of the output json file')
def set_args(self, known, unknown): CombineToolBase.set_args(self, known, unknown) if hasattr(self.args, 'opts'): for opt in self.args.opts: self.passthru.append(OPTS[opt])
def attach_args(self, group): CombineToolBase.attach_args(self, group) group.add_argument( 'input', help='The input specified as FILE:WORKSPACE')
def attach_intercept_args(self, group): CombineToolBase.attach_intercept_args(self, group) group.add_argument('--name', '-n', default='Test') group.add_argument('-m', '--mass', required=True) group.add_argument('-d', '--datacard', required=True)
def __init__(self): CombineToolBase.__init__(self) self.nll = None
def attach_intercept_args(self, group): CombineToolBase.attach_intercept_args(self, group)
def attach_intercept_args(self, group): CombineToolBase.attach_intercept_args(self, group) group.add_argument( '-m', '--mass', help=""" The mass value to set in the text2workspace.py call""")
def attach_args(self, group): CombineToolBase.attach_args(self, group) group.add_argument('input', help='The input file') group.add_argument( '-P', '--POIs', help='The params that were scanned (in scan order)')
def attach_args(self, group): CombineToolBase.attach_args(self, group) group.add_argument('config', help='json config file') group.add_argument('--cycles', default=0, type=int, help='Number of job cycles to create per point') group.add_argument('--output', action='store_true', help='Write CLs grids into an output file') group.add_argument('--from-asymptotic', default=None, help='JSON file which will be used to create a limit grid automatically')
def __init__(self): CombineToolBase.__init__(self)
def attach_intercept_args(self, group): CombineToolBase.attach_intercept_args(self, group) group.add_argument('--setParameters', default=None) group.add_argument('--freezeParameters', default=None)