3from AthenaCommon
import Logging
4from ..powheg_V1
import PowhegV1
7logger = Logging.logging.getLogger(
"PowhegControl")
11 """! Default Powheg configuration for single W-boson production.
13 Create a configurable object with all applicable Powheg options.
15 @author James Robinson <james.robinson@cern.ch>
19 """! Constructor: all process options are set here.
21 @param base_directory: path to PowhegBox code.
22 @param kwargs dictionary of arguments from Generate_tf.
24 super(W, self).
__init__(base_directory,
"W", **kwargs)
31 self.
allowed_decay_modes = [
"w- > e- ve~",
"w- > mu- vm~",
"w- > tau- vt~",
"w+ > e+ ve",
"w+ > mu+ vm",
"w+ > tau+ vt"]
116 """! Validate idvecbos and vdecaymode keywords."""
121 __decay_mode_lookup = {
"e- ve~": 1,
"mu- vm~": 2,
"tau- vt~": 3,
"e+ ve": 1,
"mu+ vm": 2,
"tau+ vt": 3}
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_name(self, name)
Retrieve all parameters that use a given name.
parameters_by_keyword(self, keyword)
Retrieve all parameters that use a given keyword.
Default Powheg configuration for single W-boson production.
list allowed_decay_modes
List of allowed decay modes.
validate_decays(self)
Validate idvecbos and vdecaymode keywords.
__init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Base class for PowhegBox V1 processes.
list validation_functions
List of validation functions to run before preparing runcard.
check_decay_mode(self, decay_mode, allowed_decay_modes=None)
Check whether a decay mode is allowed an raise an exception if it is not.
default_scales(self)
Default scale variations for this process.
std::vector< std::string > split(const std::string &s, const std::string &t=":")