def productioncard(self):
        if self.year in (2017, 2018):
            yearfolder = "2017"
            pdf = "NNPDF31"
            filename_ = yearfolder + "/13TeV"
            filename__ = self.productionmode + "_" + pdf + "_13TeV"
            #if self.decaymode == "2l2q":
            ##  filename__ = self.productionmode+"_"+pdf+"_13TeV_"+self.decaymode
        elif self.year == 2016:
            yearfolder = "pre2017"
            pdf = "NNPDF30"
            filename_ = yearfolder
            filename__ = self.productionmode + "_" + pdf + "_13TeV"
        folder = os.path.join(genproductions, "bin", "JHUGen", "cards",
                              filename_, filename__)
        ##folder = os.path.join(genproductions, "bin", "JHUGen", "cards", filename_, self.productionmode+"_"+pdf+"_13TeV")
        ##folder = os.path.join(genproductions, "bin", "JHUGen", "cards", yearfolder, "13TeV", self.productionmode+"_"+pdf+"_13TeV")
        if os.path.exists(os.path.join(folder, "makecards.py")):
            makecards(folder)

        cardbase = self.productionmode
        card = os.path.join(
            folder,
            cardbase + "_" + pdf + "_13TeV_M{:d}.input".format(self.mass))
        ##if self.decaymode == "2l2q":
        ##  card = os.path.join(folder, cardbase+"_"+pdf+"_13TeV_M{0:d}_{1}.input".format(self.mass,self.decaymode))

        if not os.path.exists(card):
            raise IOError(card + " does not exist")
        return card
Beispiel #2
0
    def productioncard(self):
        if self.year in (2016, 2017, 2018):
            folder = os.path.join(genproductions, "bin", "JHUGen", "cards",
                                  "2017", "13TeV", "anomalouscouplings",
                                  self.productionmode + "_NNPDF31_13TeV")
        #if self.year in (2017, 2018):
        #  folder = os.path.join(genproductions, "bin", "JHUGen", "cards", "2017", "13TeV", "anomalouscouplings", self.productionmode+"_NNPDF31_13TeV")
        #elif self.year == 2016:
        #  folder = os.path.join(genproductions, "bin", "JHUGen", "cards", "pre2017", "anomalouscouplings", self.productionmode+"_NNPDF30_13TeV")

        if os.path.exists(os.path.join(folder, "makecards.py")):
            makecards(folder)
#    print folder
        cardbase = self.productionmode
        #card = os.path.join(folder, cardbase+"_NNPDF31_13TeV_M{:d}.input".format(self.mass))
        card = os.path.join(folder, self.coupling + ".input")
        if self.year in (2016, 2017, 2018
                         ) and cardbase == "ggZH" and self.coupling == "SM":
            card = os.path.join(
                folder, "../..", cardbase + "_NNPDF31_13TeV",
                cardbase + "_NNPDF31_13TeV_M{:d}.input".format(self.mass))
        #if self.year in (2017, 2018) and cardbase == "ggZH" and self.coupling == "SM":
        #  card = os.path.join(folder, "../..", cardbase+"_NNPDF31_13TeV", cardbase+"_NNPDF31_13TeV_M{:d}.input".format(self.mass))
        #elif self.year ==2016 and cardbase == "ggZH" and self.coupling == "SM":
        #  card = os.path.join(folder, "../..", cardbase+"_NNPDF30_13TeV", cardbase+"_NNPDF30_13TeV_M{:d}.input".format(self.mass))
        if not os.path.exists(card):
            raise IOError(card + " does not exist")
        return card
Beispiel #3
0
    def productioncard(self):
        folder = os.path.join(genproductions, "bin", "JHUGen", "cards", "2017",
                              "13TeV", self.productionmode + "_NNPDF31_13TeV")
        if os.path.exists(os.path.join(folder, "makecards.py")):
            makecards(folder)

        cardbase = self.productionmode
        card = os.path.join(
            folder, cardbase + "_NNPDF31_13TeV_M{:d}.input".format(self.mass))

        if not os.path.exists(card):
            raise IOError(card + " does not exist")
        return card
Beispiel #4
0
    def powhegcard(self):
        folder = os.path.join(genproductions, "bin", "Powheg", "production",
                              "2017", "13TeV", "Higgs",
                              self.powhegprocess + "_ZZ_NNPDF31_13TeV")
        folder = folder.replace("quark-mass-effects_ZZ",
                                "ZZ_quark-mass-effects")
        makecards(folder)

        cardbase = self.powhegprocess + "_ZZ"
        cardbase = cardbase.replace("quark-mass-effects_ZZ",
                                    "ZZ_quark-mass-effects")
        if self.productionmode == "ZH": cardbase = "HZJ_HanythingJ_ZZ"
        if self.productionmode == "WplusH": cardbase = "HWplusJ_HanythingJ_ZZ"
        if self.productionmode == "WminusH":
            cardbase = "HWminusJ_HanythingJ_ZZ"
        if self.productionmode == "ttH": cardbase = "ttH_inclusive_ZZ"
        card = os.path.join(
            folder, cardbase + "_NNPDF31_13TeV_M{:d}.input".format(self.mass))

        if not os.path.exists(card):
            raise IOError(card + " does not exist")
        return card
    def powhegcard(self):
        if self.year in (2017, 2018):
            folder = os.path.join(genproductions, "bin", "Powheg",
                                  "production", "2017", "13TeV", "Higgs",
                                  self.powhegprocess + "_ZZ_NNPDF31_13TeV")
            folder = folder.replace("quark-mass-effects_ZZ",
                                    "ZZ_quark-mass-effects")
            makecards(folder)

            cardbase = self.powhegprocess + "_ZZ"
            cardbase = cardbase.replace("quark-mass-effects_ZZ",
                                        "ZZ_quark-mass-effects")
            if self.productionmode == "ZH": cardbase = "HZJ_HanythingJ_ZZ"
            if self.productionmode == "WplusH":
                cardbase = "HWplusJ_HanythingJ_ZZ"
            if self.productionmode == "WminusH":
                cardbase = "HWminusJ_HanythingJ_ZZ"
            if self.productionmode == "ttH": cardbase = "ttH_inclusive_ZZ"
            card = os.path.join(
                folder,
                cardbase + "_NNPDF31_13TeV_M{:d}.input".format(self.mass))

            if not os.path.exists(card):
                raise IOError(card + " does not exist")
            return card

        if self.year == 2016:
            if self.productionmode == "VBF":
                return os.path.join(
                    genproductions,
                    "bin/Powheg/production/V2/13TeV/Higgs/VBF_H_JHUGen_HZZ4L_NNPDF30_13TeV/VBF_H_M{:d}_NNPDF30_13TeV.input"
                    .format(self.mass))
            if self.productionmode == "ttH":
                return os.path.join(
                    genproductions,
                    "bin/Powheg/production/V2/13TeV/Higgs/ttH_inclusive_JHUGen_HZZ2LX_NNPDF30_13TeV/ttH_inclusive_NNPDF30_13TeV_M{:d}.input"
                    .format(self.mass))
        assert False, self