BLHA interfaceOpenLoops offers an interface in the Binoth-Les-Houches-Accord in both versions BLHA1 and BLHA2.
For example within a C/C++ program a BLHA contract file is read by OpenLoops via OLP_Start(char* CONTRACT_FILE_NAME, int* ERROR) The answer file is either written to the very same file or in a file spefified in the contract file via Extra AnswerFile OLE_ANSWER_FILE Parameters are either set via the contract file or directly via the procedure OLP_SetParameter(char* NAME, double* REAL_VALUE, double* IMAG_VALUE, int* ERROR) Furthermore a list of the actual parameter settings is written to a file via OLP_PrintParameter(char* FILE_NAME) At runtime the tree and loop amplitudes for a phase-space point of N external particles with momenta P_EX(5^N), as specified in the BLHA1/BLHA2 standards, are obtained via OLP_EvalSubProcess(int* ID, double* P_EX(5^N), double* MU, double* ALPHA_S, double* RESULT(4)) Here, ID is the id of the corresponding subprocess (specified in the answer file), MU the renormalization scale and ALPHA_S the strong coupling constant. The result is written into the array RESULT, where RESULT(4) gives the tree amplitude and RESULT(3) the finite part, RESULT(2) the single pole and RESULT(1) the double pole of the one-loop amplitude. A corresponding routine of the BLHA2 standard is also implemented: OLP_EvalSubProcess2(int* ID, double* P_EX(5^N), double* MU, double* RESULT(4), double* ACC ) Here, additionally an accuracy measure of the corresponding amplitude is returned as ACC.For further details see the specification of the BLHA1 and BLHA2 standard. Explicit exampleAs an example let us calculate the one-loop amplitude for the process dd ➞ e+e-uu (the library pplljj has to be loaded before) for a random phase-space point. To do this we use the following order file:
###################################################### together with the following example:
This example can also be found as ./examples/OL_blha.cpp inside the OpenLoops installation together with the order file shown above. It can be compiled via
cd ./examples or with our SCons build system via
cd ./examples |