3from AthenaCommon
import Logging
4from ..powheg_V2
import PowhegV2
5from ..external
import ExternalMadSpin
10logger = Logging.logging.getLogger(
"PowhegControl")
19 "t t~ > all [MadSpin]" :
"00000",
20 "t t~ > all":
"22222",
21 "t t~ > b j j b~ j j":
"00022",
22 "t t~ > b l+ vl b~ l- vl~":
"22200",
23 "t t~ > b emu+ vemu b~ emu- vemu~":
"22000",
24 "t t~ > semileptonic":
"11111",
25 "t t~ > undecayed" :
"00000",
30 """! Default Powheg configuration for top pair production plus one jet with MiNNLO.
32 Create a configurable object with all applicable Powheg options.
34 @author Timothee Theveneaux-Pelzer <tpelzer@cern.ch>
38 """! Constructor: all process options are set here.
40 @param base_directory: path to PowhegBox code.
41 @param kwargs dictionary of arguments from Generate_tf.
49 super(ttj_MiNNLO, self).
__init__(base_directory,
"ttJ_MiNNLO", warning_output=warnings, info_output=infos, error_output=errors, **kwargs)
53 os.environ[
'ttjMiNNLOPATH'] = os.path.dirname(os.path.dirname(self.
executable))
54 logger.info(
"ttjMiNNLOPATH defined as = {0}".format(os.getenv(
'ttjMiNNLOPATH')))
195 """! Validate semileptonic and topdecaymode keywords."""
198 error_message =
"Decay mode '{given}' not recognised, valid choices are: '{choices}'!".format(given=self.
decay_mode, choices=
"', '".join(self.
allowed_decay_modes))
199 logger.warning(error_message)
200 raise ValueError(error_message)
215 """! Specialised version for this process, which has different grids file patterns than other V2 processes."""
217 required_files = [
"pwg*xg*.dat"]
219 required_files = [
"pwg-????-stat.dat",
"pwg-st2-????-stat.dat",
"pwggrid*.dat"]
221 required_files = [
"pwg-st3-????-stat.dat",
"pwgubound*.dat"]
226 for required_file
in required_files:
227 if not glob.glob(required_file):
add_keyword(self, keyword, value=None, name=None, frozen=None, hidden=None, description=None, **kwargs)
Register configurable parameter that is exposed to the user.
expose(self)
Add all names to the interface of this object.
parameters_by_keyword(self, keyword)
Retrieve all parameters that use a given keyword.
Class for running external MadSpin process.
Default Powheg configuration for top pair production plus one jet with MiNNLO.
stage_is_completed(self, stage)
Specialised version for this process, which has different grids file patterns than other V2 processes...
allowed_decay_modes
List of allowed decay modes (The sorting of the list is just to increase readability when it's printe...
validate_decays(self)
Validate semileptonic and topdecaymode keywords.
__init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Base class for PowhegBox V2 processes.
executable
Powheg executable that will be used.
dict externals
List of external processes to schedule.
list validation_functions
List of validation functions to run before preparing runcard.
add_algorithm(self, alg_or_process)
Add an algorithm or external process to the sequence.
default_scales(self)
Default scale variations for this process.