Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Pawian
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PWA
Pawian
Commits
c0d91926
Commit
c0d91926
authored
12 years ago
by
Bertram Kopf
Browse files
Options
Downloads
Patches
Plain Diff
added calculation of spin density matrix for helicity amplitudes
parent
c18c3e63
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PwaUtils/HeliDecAmps.cc
+30
-42
30 additions, 42 deletions
PwaUtils/HeliDecAmps.cc
with
30 additions
and
42 deletions
PwaUtils/HeliDecAmps.cc
+
30
−
42
View file @
c0d91926
...
...
@@ -52,6 +52,36 @@ HeliDecAmps::~HeliDecAmps()
complex
<
double
>
HeliDecAmps
::
XdecPartAmp
(
Spin
lamX
,
Spin
lamDec
,
short
fixDaughterNr
,
EvtData
*
theData
,
Spin
lamFs
){
complex
<
double
>
result
(
0.
,
0.
);
bool
lamFs_daughter1
=
false
;
if
(
_daughter1IsStable
&&
_Jdaughter1
>
0
)
lamFs_daughter1
=
true
;
bool
lamFs_daughter2
=
false
;
if
(
_daughter2IsStable
&&
_Jdaughter2
>
0
)
lamFs_daughter2
=
true
;
std
::
map
<
boost
::
shared_ptr
<
const
JPClamlam
>
,
double
,
pawian
::
Collection
::
SharedPtrLess
>::
iterator
it
;
for
(
it
=
_currentParamMagLamLams
.
begin
();
it
!=
_currentParamMagLamLams
.
end
();
++
it
){
boost
::
shared_ptr
<
const
JPClamlam
>
currentJPClamlam
=
it
->
first
;
if
(
fabs
(
lamX
)
>
currentJPClamlam
->
J
)
continue
;
double
theMag
=
it
->
second
;
double
thePhi
=
_currentParamPhiLamLams
[
currentJPClamlam
];
complex
<
double
>
expi
(
cos
(
thePhi
),
sin
(
thePhi
));
Spin
lambda1
=
currentJPClamlam
->
lam1
;
Spin
lambda2
=
currentJPClamlam
->
lam2
;
Spin
lambda
=
lambda1
-
lambda2
;
if
(
fabs
(
lambda
)
>
currentJPClamlam
->
J
)
continue
;
if
(
lamFs_daughter1
&&
lamFs
!=
lambda1
)
continue
;
if
(
lamFs_daughter2
&&
lamFs
!=
lambda2
)
continue
;
if
(
fixDaughterNr
==
1
&&
lamDec
!=
lambda1
)
continue
;
if
(
fixDaughterNr
==
2
&&
lamDec
!=
lambda2
)
continue
;
complex
<
double
>
amp
=
theMag
*
expi
*
conj
(
theData
->
WignerDsString
[
_wignerDKey
][
currentJPClamlam
->
J
][
lamX
][
lambda
]);
result
+=
amp
;
}
result
*=
sqrt
((
2.
*
_JPCPtr
->
J
+
1.
)
/
12.56637
);
return
result
;
}
...
...
@@ -97,48 +127,6 @@ int evtNo=theData->evtNo;
result
+=
amp
*
daughterAmp
(
lambda1
,
lambda2
,
theData
,
lamFs
);
}
// std::vector< boost::shared_ptr<const JPClamlam> >::iterator it;
// for (it=_JPClamlams.begin(); it!=_JPClamlams.end(); ++it){
// if( fabs(lamX) > (*it)->J ) continue;
// double theMag=_currentParamMagLamLams[*it];
// double thePhi=_currentParamPhiLamLams[*it];
// complex<double> expi(cos(thePhi), sin(thePhi));
// double preFactor=1.;
// Spin lambda1= (*it)->lam1;
// if(lamFs_daughter1){
// if( fabs(lamFs)!=fabs(lambda1) ) continue;
// else if(lamFs = -lambda1){
// preFactor=_parityFactor;
// lambda1=-lambda1;
// }
// }
// Spin lambda2= (*it)->lam2;
// if(lamFs_daughter2){
// if( fabs(lamFs)!=fabs(lambda2) ) continue;
// else if(lamFs = -lambda2){
// preFactor=_parityFactor;
// lambda2=-lambda2;
// }
// }
// Spin lambda = lambda1-lambda2;
// // if( fabs(lambda)>(*it)->J || fabs(lambda)>(*it)->S) continue;
// complex<double> amp = theMag*expi*conj( theData->WignerDsString[_wignerDKey][(*it)->J][lamX][lambda]);
// if(!lamFs_daughter1 && !lamFs_daughter2){
// result+=amp*daughterAmp(lambda1, lambda2, theData, lamFs);
// if(lambda1 != lambda2) result+=_parityFactor*amp*daughterAmp(-lambda1, -lambda2, theData, lamFs);
// }
// else result+=amp*daughterAmp(lambda1, lambda2, theData, lamFs);
// }
if
(
_withDyn
){
Vector4
<
double
>
mass4Vec
(
0.
,
0.
,
0.
,
0.
);
std
::
vector
<
Particle
*>
fsParticleVec
=
_decay
->
finalStateParticles
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment