Package aloha :: Module aloha_writers :: Class ALOHAWriterForCPP
[hide private]
[frames] | no frames]

Class ALOHAWriterForCPP

source code

WriteALOHA --+
             |
            ALOHAWriterForCPP

Routines for writing out helicity amplitudes as C++ .h and .cc files.

Instance Methods [hide private]
 
define_header(self, name=None)
Define the headers for the C++ .h and .cc files.
source code
 
define_momenta(self)
Write the expressions for the momentum of the outgoing particle.
source code
 
change_var_format(self, name)
Format the variable name to C++ format
source code
 
change_number_format(self, number)
Format numbers into C++ format
source code
 
define_expression(self)
Write the helicity amplitude in C++ format
source code
 
define_symmetry(self, new_nb)
Write the call for symmetric routines
source code
 
define_foot(self)
Return the end of the function definition
source code
 
write_h(self, header, compiler_cmd=True)
Return the full contents of the .h file
source code
 
write_combined_h(self, lor_names, offshell=None, compiler_cmd=True)
Return the content of the .h file linked to multiple lorentz call.
source code
 
write_cc(self, header, compiler_cmd=True)
Return the full contents of the .cc file
source code
 
write_combined_cc(self, lor_names, offshell=None, compiler_cmd=True, sym=True)
Return the content of the .cc file linked to multiple lorentz call.
source code
 
write(self, mode='self', **opt)
Write the .h and .cc files
source code
 
write_combined(self, lor_names, mode='self', offshell=None, **opt)
Write the .h and .cc files associated to the combined file
source code

Inherited from WriteALOHA: __init__, collect_variables, define_content, make_all_lists, make_call_list, make_declaration_list, make_momentum_conservation, pass_to_HELAS, write_indices_part, write_obj, write_obj_Add, write_obj_Mult, write_obj_Var

Class Variables [hide private]
  declare_dict = {'F': 'double complex F%d[6]', 'S': 'double com...
  remove_double = re.compile(r'complex<double> (?P<name>\w+)\[\]')

Inherited from WriteALOHA: extension, power_symbol, type_to_size, type_to_variable

Method Details [hide private]

define_header(self, name=None)

source code 

Define the headers for the C++ .h and .cc files. This include

  • function tag
  • definition of variable
  • momentum conservation
Overrides: WriteALOHA.define_header

change_var_format(self, name)

source code 

Format the variable name to C++ format

Overrides: change_var_format

change_number_format(self, number)

source code 

Format numbers into C++ format

Overrides: change_number_format

define_foot(self)

source code 

Return the end of the function definition

Overrides: WriteALOHA.define_foot

Class Variable Details [hide private]

declare_dict

Value:
{'F': 'double complex F%d[6]',
 'S': 'double complex S%d[3]',
 'T': 'double complex T%s[18]',
 'V': 'double complex V%d[6]'}