3from ..powheg_V2
import PowhegV2
4from textwrap
import dedent
9 Powheg configuration for direct photon production, defined as having the leading-order processes
14 Publication (please cite if using this process): https://arxiv.org/abs/1610.02275
16 For a study using this process, see https://arxiv.org/abs/1709.04154
18 The enhancement of photon radiation is described on page 137ff of this PhD thesis:
19 https://www.uni-muenster.de/imperia/md/content/physik_tp/theses/klasen/koenig_phd.pdf
21 @author Stefan Richter <stefan.richter@cern.ch>
25 """! Constructor: all process options are set here.
27 @param base_directory: path to PowhegBox code.
28 @param kwargs dictionary of arguments from Generate_tf.
30 super(yj, self).
__init__(base_directory,
"directphoton", **kwargs)
138 self.
add_keyword(
"rwl_file",
'reweighting_needed_for_enhancedradfac.xml')
160 """Writes reweighting XML file needed for initial event generation.
162 Caution: it seems that the weight has to be called "default". Otherwise
163 Powheg will give an error.
165 with open(
'reweighting_needed_for_enhancedradfac.xml',
'w')
as xmlfile:
166 contents = dedent(
'''\
168 <weightgroup name='nominal' combine='None'>
169 <weight id='0'>default</weight>
173 xmlfile.write(contents)
add_keyword(self, keyword, value=None, name=None, frozen=None, hidden=None, description=None, **kwargs)
Register configurable parameter that is exposed to the user.
write_enhancedradfac_reweighting_file(self)
__init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Base class for PowhegBox V2 processes.
list validation_functions
List of validation functions to run before preparing runcard.
default_scales(self)
Default scale variations for this process.