|
ATLAS Offline Software
|
Go to the documentation of this file.
3 from AthenaCommon
import Logging
4 from ..powheg_V2
import PowhegV2
5 from ..external
import ExternalMadSpin
9 logger = Logging.logging.getLogger(
"PowhegControl")
17 _decay_mode_lookup = {
18 "t t~ > all [MadSpin]" :
"00000",
19 "t t~ > all":
"22222",
20 "t t~ > b j j b~ j j":
"00022",
21 "t t~ > b l+ vl b~ l- vl~":
"22200",
22 "t t~ > b emu+ vemu b~ emu- vemu~":
"22000",
23 "t t~ > semileptonic":
"11111",
24 "t t~ > undecayed" :
"00000",
29 """! Default Powheg configuration for top pair production plus one jet with MiNNLO.
31 Create a configurable object with all applicable Powheg options.
33 @author Timothee Theveneaux-Pelzer <tpelzer@cern.ch>
37 """! Constructor: all process options are set here.
39 @param base_directory: path to PowhegBox code.
40 @param kwargs dictionary of arguments from Generate_tf.
48 super(ttj_MiNNLO, self).
__init__(base_directory,
"ttJ_MiNNLO", powheg_executable=
"pwhg_main-gnu", warning_output=warnings, info_output=infos, error_output=errors, **kwargs)
52 os.environ[
'ttjMiNNLOPATH'] = os.path.dirname(self.
executable)
53 logger.info(
"ttjMiNNLOPATH defined as = {0}".
format(os.getenv(
'ttjMiNNLOPATH')))
56 logger.warning(
"Applying manual, hard-coded fixes for Virtuals library paths")
57 OLPath = os.path.dirname(self.
executable) +
"/OpenLoops2"
58 os.environ[
'OpenLoopsPath'] = OLPath
59 logger.info(
"OpenLoopsPath defined as = {0}".
format(os.getenv(
'OpenLoopsPath')))
61 logger.debug(
"LD_LIBRARY_PATH (before) = {0}".
format(os.getenv(
'LD_LIBRARY_PATH')))
62 VirtualsPath = os.path.dirname(self.
executable) +
"/Virtuals/obj-gnu"
63 ChaplinPath = os.path.dirname(self.
executable) +
"/../../External/chaplin-1.2/lib"
64 ChaplinPath2 = os.path.dirname(self.
executable) +
"/../../External/INSTALL/chaplin-1.2/lib"
65 logger.info(
"VirtualsPath="+VirtualsPath)
66 logger.info(
"ChaplinPath="+ChaplinPath)
67 ldpath = os.getenv(
'LD_LIBRARY_PATH')
68 ldpath_new = VirtualsPath +
":" + ChaplinPath +
":" + ChaplinPath2 +
":" + ldpath
69 os.environ[
'LD_LIBRARY_PATH'] = ldpath_new
70 logger.debug(
"LD_LIBRARY_PATH (after) = {0}".
format(os.getenv(
'LD_LIBRARY_PATH')))
210 """! Validate semileptonic and topdecaymode keywords."""
214 logger.warning(error_message)
215 raise ValueError(error_message)
def expose(self)
Add all names to the interface of this object.
def add_algorithm(self, alg_or_process)
Add an algorithm or external process to the sequence.
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
allowed_decay_modes
List of allowed decay modes (The sorting of the list is just to increase readability when it's printe...
def default_scales(self)
Default scale variations for this process.
def add_keyword(self, keyword, value=None, name=None, frozen=None, hidden=None, description=None, **kwargs)
Register configurable parameter that is exposed to the user.
Class for running external MadSpin process.
def openloops_error(self)
def parameters_by_keyword(self, keyword)
Retrieve all parameters that use a given keyword.
validation_functions
List of validation functions to run before preparing runcard.
def validate_decays(self)
Validate semileptonic and topdecaymode keywords.
std::vector< typename T::value_type > sorted(T begin, T end)
Helper function to create a sorted vector from an unsorted one.
std::string join(const std::vector< std::string > &v, const char c=',')
externals
List of external processes to schedule.
def default_PDFs(self)
Default PDFs for this process.
Base class for PowhegBox V2 processes.
executable
Powheg executable that will be used.
Default Powheg configuration for top pair production plus one jet with MiNNLO.