Пример #1
0
        #  Counter-Term  #
        ##################
        # Construct the full NLO amplitude

        # Delete the Temp folder again
        # delPath = "Temp"
        # rmtree(delPath)

        ##############################################################
        #  Add real corrections, polarization rules and Counterterm  #
        ##############################################################
        # Prompt the user to add the real corrections, counterterm and polarization rules by hand to the process folder and ask if the program should continue
        # WARNING: without the polarization sum, the real corrections and the counterterm, the compilation of the next step in the program will fail
        pathToFiles = "BuildingBlocks" + os.sep + "Processes" + os.sep + processId + os.sep
        if not (os.path.isfile(pathToFiles + "Counterterm.F90")):
            CommonFunctions.createCountertermFile(
                pathToFiles + "Counterterm.F90", processId)
        if not (os.path.isfile(pathToFiles + "RealCorrections.F90")):
            CommonFunctions.createRealCorrections(
                pathToFiles + "RealCorrections.F90", processId, massesIn[0],
                massesOut[0], massesOut[1])
        # Ask the user if they want to continue
        if silentModeCalcProceed:
            calcWantProceed = defCalcProceed
        else:
            calcWantProceed = CommonFunctions.queryBoolean(
                ">>> Please add the real corrections, counterterm and polarization rules by hand to the process folder. Do you want to proceed?"
            )
        if not calcWantProceed:
            print(
                "Program stopped by user. 2HDMCalc will be terminated now.\n")
            sys.exit()