Exemple #1
0
                ],
                clsType=combine.LHCTypeAsymptotic(opts),
                postfix=pfix)
        else:
            return False
    return True


if __name__ == "__main__":
    parser = commonLimitTools.createOptionParser(lepType, lhcType,
                                                 lhcTypeAsymptotic)
    parser.add_option("--postfix",
                      dest="postfix",
                      default="",
                      help="Postfix to add to output directory name")
    opts = commonLimitTools.parseOptionParser(parser)
    # General settings

    myDirs = opts.dirs[:]
    if len(myDirs) == 0:
        myDirs.append(".")

    for myDir in myDirs:
        print "Considering directory:", myDir
        settings = commonLimitTools.GeneralSettings(myDir, opts.masspoints)
        print "The following masses are considered:", settings.getMassPoints(
            commonLimitTools.LimitProcessType.TAUJETS)
        if not main(opts, settings, myDir):
            print ""
            parser.print_help()
            print ""
        if len(m) > 0:
            m = DatacardReader.getMassPointsForDatacardPattern(myDir, dataCardPattern, massPoints)
            del massPoints[:]
            massPoints.extend(m)
            dataCardList.append(dataCardPattern)
            rootFileList.append(rootFilePattern)

    parser = commonLimitTools.createOptionParser(False, False, True)
    parser.add_option("--scen", dest="scenarios", action="append", default=[], help="MSSM scenarios")
    parser.add_option("-t", "--tanbeta", dest="tanbeta", action="append", default=[], help="tanbeta values (will scan only these)")
    parser.add_option("--tanbetarangemin", dest="tanbetarangemin", action="append", default=[], help="tanbeta values minimum range")
    parser.add_option("--tanbetarangemax", dest="tanbetarangemax", action="append", default=[], help="tanbeta values maximum range")
    parser.add_option("--evalUuncert", dest="evaluateUncertainties", action="store_true", default=False, help="Make plots of theoretical uncertainties")
    parser.add_option("--creategridjobs", dest="creategridjobs", action="store_true", default=False, help="Create crab task dirs for running on grid")
    parser.add_option("--gridmassive", dest="gridRunAllMassesInOneJob", action="store_true", default=False, help="Crab jobs run all masses in one job (default=1 job / mass)")
    opts = commonLimitTools.parseOptionParser(parser)
    if opts.rmin == None:
        opts.rmin = "0"
    if opts.rmax == None:
        opts.rmax = "1" # To facilitate the search for different tan beta values
    
    if opts.creategridjobs:
        print "*** Start creating individual crab job directories for grid submission ... ***"

    # MSSM scenario settings
    myScenarios = ["mhmaxup", "mhmodm", "mhmodp", "lightstau", "lightstop", "tauphobic"]
    if len(opts.scenarios) > 0:
        myScenarios = opts.scenarios[:]
    else:
        opts.scenarios = myScenarios[:]
    
Exemple #3
0
def parseOptionParser(parser):
    commonLimitTools.parseOptionParser(parser)
def parseOptionParser(parser):
    commonLimitTools.parseOptionParser(parser)