当前位置: 首页>>代码示例>>Python>>正文


Python CombineToolBase.CombineToolBase类代码示例

本文整理汇总了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')
开发者ID:cms-analysis,项目名称:CombineHarvester,代码行数:7,代码来源:Impacts.py

示例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'))
开发者ID:capalmer85,项目名称:CombineHarvester,代码行数:28,代码来源:TaylorExpand.py

示例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.')
开发者ID:AlexandreMertens,项目名称:CombineHarvester,代码行数:8,代码来源:EnhancedCombine.py

示例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')
开发者ID:AlexandreMertens,项目名称:CombineHarvester,代码行数:8,代码来源:Workspace.py

示例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')
开发者ID:rcl11,项目名称:CombineHarvester,代码行数:8,代码来源:EnhancedCombine.py

示例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..')
开发者ID:cms-analysis,项目名称:CombineHarvester,代码行数:9,代码来源:Output.py

示例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)
开发者ID:capalmer85,项目名称:CombineHarvester,代码行数:9,代码来源:FastScan.py

示例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')
开发者ID:cms-analysis,项目名称:CombineHarvester,代码行数:10,代码来源:EnhancedCombine.py

示例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')
开发者ID:AlexandreMertens,项目名称:CombineHarvester,代码行数:11,代码来源:CovMatrix.py

示例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')
开发者ID:truggles,项目名称:CombineHarvester,代码行数:12,代码来源:EnhancedCombine.py

示例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')
开发者ID:AlexandreMertens,项目名称:CombineHarvester,代码行数:14,代码来源:ImpactsFromScans.py

示例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. """)
开发者ID:AlexandreMertens,项目名称:CombineHarvester,代码行数:15,代码来源:T2W.py

示例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')
开发者ID:capalmer85,项目名称:CombineHarvester,代码行数:16,代码来源:EnhancedCombine.py

示例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'))
开发者ID:rcl11,项目名称:CombineHarvester,代码行数:17,代码来源:Impacts.py

示例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""")
开发者ID:fcolombo,项目名称:CombineHarvester,代码行数:18,代码来源:Impacts.py


注:本文中的CombineHarvester.CombineTools.combine.CombineToolBase.CombineToolBase类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。