Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F19251395
DecayVertex.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
DecayVertex.cc
View Options
// -*- C++ -*-
//
// DecayVertex.cc is a part of Herwig++ - A multi-purpose Monte Carlo event generator
// Copyright (C) 2002-2007 The Herwig Collaboration
//
// Herwig++ is licenced under version 2 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 DecayVertex class.
//
// Author: Peter Richardson
//
#include
"DecayVertex.h"
#include
"ThePEG/Interface/ClassDocumentation.h"
#include
"ThePEG/Helicity/SpinInfo.h"
#ifdef ThePEG_TEMPLATES_IN_CC_FILE
// #include "DecayVertex.tcc"
#endif
namespace
Herwig
{
using
ThePEG
::
Helicity
::
SpinInfo
;
using
ThePEG
::
Helicity
::
tcSpinfoPtr
;
using
namespace
ThePEG
;
NoPIOClassDescription
<
DecayVertex
>
DecayVertex
::
initDecayVertex
;
// Definition of the static class description member.
void
DecayVertex
::
Init
()
{
static
ClassDocumentation
<
DecayVertex
>
documentation
(
"The DecayVertex class is the implementation of a "
"vertex for a decay for the Herwig++ spin correlation algorithm"
);
}
// method to get the rho matrix for a given outgoing particle
RhoDMatrix
DecayVertex
::
getRhoMatrix
(
int
i
)
{
// get the rho matrices for the outgoing particles
vector
<
RhoDMatrix
>
rhoout
;
for
(
unsigned
int
ix
=
0
,
N
=
outgoing
().
size
();
ix
<
N
;
++
ix
)
{
if
(
int
(
ix
)
!=
i
)
{
rhoout
.
push_back
(
dynamic_ptr_cast
<
tcSpinfoPtr
>
(
outgoing
()[
ix
])
->
DMatrix
());}
}
// calculate the spin density matrix
RhoDMatrix
input
=
dynamic_ptr_cast
<
tcSpinfoPtr
>
(
incoming
()[
0
])
->
rhoMatrix
();
RhoDMatrix
temp
=
_matrixelement
.
calculateRhoMatrix
(
i
,
input
,
rhoout
);
return
temp
;
}
// method to get the D matrix for an incoming particle
RhoDMatrix
DecayVertex
::
getDMatrix
(
int
)
{
// get the decay matrices for the outgoing particles
vector
<
RhoDMatrix
>
Dout
;
for
(
unsigned
int
ix
=
0
,
N
=
outgoing
().
size
();
ix
<
N
;
++
ix
)
{
Dout
.
push_back
(
dynamic_ptr_cast
<
tcSpinfoPtr
>
(
outgoing
()[
ix
])
->
DMatrix
());
}
// calculate the spin density matrix and return the answer
RhoDMatrix
temp
=
_matrixelement
.
calculateDMatrix
(
Dout
);
return
temp
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Tue, Sep 30, 5:51 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6458781
Default Alt Text
DecayVertex.cc (2 KB)
Attached To
Mode
rHERWIGHG herwighg
Attached
Detach File
Event Timeline
Log In to Comment