| 193 | | |
| 194 | | |
| 195 | | |
| | 195 | === Base class which can be use to create a new exporter from scratch: |
| | 196 | |
| | 197 | {{{ |
| | 198 | class MyV4EmptyOutput(object): |
| | 199 | |
| | 200 | grouped_mode=True |
| | 201 | |
| | 202 | def __init__(self, mgme_dir = "", dir_path = "", opt=None): |
| | 203 | return |
| | 204 | |
| | 205 | def copy_v4template(self, modelname): |
| | 206 | return |
| | 207 | |
| | 208 | def generate_subprocess_directory(self, subproc_group, helicity_model, me=None): |
| | 209 | # generate_subprocess_directory(self, matrix_element, helicity_model, me_number) [for ungrouped] |
| | 210 | return 0 # return an integer stating the number of call to helicity routine |
| | 211 | def convert_model(self, model, wanted_lorentz=[], wanted_coupling=[]): |
| | 212 | return |
| | 213 | def finalize(self,matrix_element, cmdhistory, MG5options, outputflag): |
| | 214 | return |
| | 215 | def modify_grouping(self, matrix_element): |
| | 216 | return False, matrix_element |
| | 217 | def export_model_files(self, model_v4_path): |
| | 218 | return |
| | 219 | def export_helas(self, HELAS_PATH): |
| | 220 | return |
| | 221 | |
| | 222 | |
| | 223 | class MyCPPEmptyOutput(object): |
| | 224 | |
| | 225 | grouped_mode=True |
| | 226 | |
| | 227 | def __init__(self, mgme_dir = "", dir_path = "", opt=None): |
| | 228 | return |
| | 229 | |
| | 230 | def setup_cpp_standalone_dir(self, model) |
| | 231 | return |
| | 232 | |
| | 233 | def generate_subprocess_directory(self, subproc_group, helicity_model, me=None): |
| | 234 | # generate_subprocess_directory(self, matrix_element, helicity_model, me_number) [for ungrouped] |
| | 235 | return 0 # return an integer stating the number of call to helicity routine |
| | 236 | def convert_model(self, model, wanted_lorentz=[], wanted_coupling=[]): |
| | 237 | return |
| | 238 | |
| | 239 | def finalize(self,matrix_element, cmdhistory, MG5options, outputflag): |
| | 240 | return |
| | 241 | |
| | 242 | def modify_grouping(self, matrix_element): |
| | 243 | return False, matrix_element |
| | 244 | |
| | 245 | def make_model_cpp(self, model): |
| | 246 | return |
| | 247 | |
| | 248 | }}} |
| | 249 | |
| | 250 | |