Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F19250924
SMFFPVertex.cc
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
SMFFPVertex.cc
View Options
// -*- C++ -*-
//
// SMFFPVertex.cc is a part of Herwig - A multi-purpose Monte Carlo event generator
// Copyright (C) 2002-2019 The Herwig Collaboration
//
// Herwig is licenced under version 3 of the GPL, see COPYING for details.
// Please respect the MCnet academic guidelines, see GUIDELINES for details.
//
//
// This is the implementation of the non-inlined, non-templated member
// functions of the StandardModelFFPVertex class.
//
#include
"SMFFPVertex.h"
#include
"ThePEG/Utilities/DescribeClass.h"
#include
"ThePEG/Interface/ClassDocumentation.h"
#include
"ThePEG/Persistency/PersistentOStream.h"
#include
"ThePEG/Persistency/PersistentIStream.h"
using
namespace
Herwig
;
using
namespace
ThePEG
;
SMFFPVertex
::
SMFFPVertex
()
:
_charge
(
17
,
0.0
),
_couplast
(
0.
),
_q2last
(
0.
*
GeV2
)
{
orderInGem
(
1
);
orderInGs
(
0
);
colourStructure
(
ColourStructure
::
DELTA
);
}
void
SMFFPVertex
::
doinit
()
{
// PDG codes for the particles
// the quarks
for
(
int
ix
=
1
;
ix
<
7
;
++
ix
)
{
addToList
(
-
ix
,
ix
,
22
);
}
// the leptons
for
(
int
ix
=
11
;
ix
<
17
;
ix
+=
2
)
{
addToList
(
-
ix
,
ix
,
22
);
}
for
(
int
ix
=
1
;
ix
<
4
;
++
ix
)
{
_charge
[
2
*
ix
-
1
]
=
generator
()
->
standardModel
()
->
ed
();
_charge
[
2
*
ix
]
=
generator
()
->
standardModel
()
->
eu
();
_charge
[
2
*
ix
+
9
]
=
generator
()
->
standardModel
()
->
ee
();
_charge
[
2
*
ix
+
10
]
=
generator
()
->
standardModel
()
->
enu
();
}
FFVVertex
::
doinit
();
}
void
SMFFPVertex
::
persistentOutput
(
PersistentOStream
&
os
)
const
{
os
<<
_charge
;
}
void
SMFFPVertex
::
persistentInput
(
PersistentIStream
&
is
,
int
)
{
is
>>
_charge
;
}
// Static variable needed for the type description system in ThePEG.
DescribeClass
<
SMFFPVertex
,
FFVVertex
>
describeHerwigSMFFPVertex
(
"Herwig::SMFFPVertex"
,
"Herwig.so"
);
void
SMFFPVertex
::
Init
()
{
static
ClassDocumentation
<
SMFFPVertex
>
documentation
(
"The SMFFPVertex class is the implementation of"
"the coupling of the photon to the Standard Model fermions"
);
}
// coupling for FFP vertex
#ifndef NDEBUG
void
SMFFPVertex
::
setCoupling
(
Energy2
q2
,
tcPDPtr
aa
,
tcPDPtr
bb
,
tcPDPtr
)
{
#else
void
SMFFPVertex
::
setCoupling
(
Energy2
q2
,
tcPDPtr
aa
,
tcPDPtr
,
tcPDPtr
)
{
#endif
// first the overall normalisation
if
(
q2
!=
_q2last
||
_couplast
==
0.
)
{
_couplast
=
-
electroMagneticCoupling
(
q2
);
_q2last
=
q2
;
}
norm
(
_couplast
);
// the left and right couplings
int
iferm
=
abs
(
aa
->
id
());
assert
((
iferm
>=
1
&&
iferm
<=
6
)
||
(
iferm
>=
11
&&
iferm
<=
16
));
assert
(
aa
->
id
()
==-
bb
->
id
());
if
(
aa
->
id
()
<
0
)
{
left
(
_charge
[
iferm
]);
right
(
_charge
[
iferm
]);
}
else
{
left
(
-
_charge
[
iferm
]);
right
(
-
_charge
[
iferm
]);
}
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Tue, Sep 30, 5:45 AM (8 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6492055
Default Alt Text
SMFFPVertex.cc (2 KB)
Attached To
Mode
rHERWIGHG herwighg
Attached
Detach File
Event Timeline
Log In to Comment