Commit 598e8016 authored by Silvan Kuttimalai's avatar Silvan Kuttimalai

Merge UFO changes from qcd_d6 branch into trunk: svn merge -r28957:28974 ^/branches/qcd_d6 .

parent 7d0733ef
......@@ -255,8 +255,7 @@ operator()(const SFC_Filler_Key &key) const
vit=vlit->second.begin();vit!=vlit->second.end();++vit) {
Single_Vertex *v(*vit);
if (v->NLegs()>3) continue;
if (v->Color.front().Type()!=cf::T &&
v->Color.front().Type()!=cf::F) continue;
if (!v->PureQCD()) continue;
msg_Debugging()<<"Add "<<v->in[0].Bar()<<" -> "<<v->in[1]<<" "<<v->in[2]<<" {\n";
std::string atag("{"+v->in[0].Bar().IDName()+"}");
std::string btag("{"+v->in[1].IDName()+"}");
......
......@@ -21,6 +21,13 @@ Single_Vertex::~Single_Vertex()
{
}
bool Single_Vertex::PureQCD() const
{
for (size_t i(1); i<order.size(); i++)
if(order[i]) return false;
return true;
}
int Single_Vertex::Compare(const Single_Vertex *v) const
{
if (NLegs()!=v->NLegs()) return 1;
......
......@@ -28,6 +28,8 @@ namespace MODEL {
int Compare(const Single_Vertex *v) const;
bool PureQCD() const;
inline size_t NLegs() const { return in.size(); }
inline void AddParticle(const ATOOLS::Flavour &fl,const int n=-1)
{ in.push_back(fl); id.push_back(n>=0?n:in.size()-1); }
......
......@@ -5,7 +5,6 @@ from s_vertex import s_vertex, split_by_orders, vertex_collection
from s_lorentz import s_lorentz
from s_color import s_color
from ufo_exception import ufo_exception
from colour_converter import colour_translate
from write_model import write_model
from write_run_card import write_run_card
from lorentz_structures import *
......
......@@ -63,7 +63,7 @@ class s_color(object):
# omitted as all values are assigned to zero initially
if (abs(value.real)<1.0e-12) and (abs(value.imag)<1.0e-12):
return ''
value = 'std::complex<double>({0},{1})'.format(value.real, value.imag)
value = 'std::complex<double>({0:1.20e},{1:1.20e})'.format(value.real, value.imag)
return tag + '=' + value + ';\n'
# Dereference toplevel and continue recursively
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment