Skip to content
GitLab
Explore
Sign in
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
7bed27d5
Commit
7bed27d5
authored
11 years ago
by
Bertram Kopf
Browse files
Options
Downloads
Patches
Plain Diff
added more efficient initialization in AbsDecay::fillWignerDs
parent
772b61f3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PwaUtils/AbsDecay.cc
+7
-4
7 additions, 4 deletions
PwaUtils/AbsDecay.cc
with
7 additions
and
4 deletions
PwaUtils/AbsDecay.cc
+
7
−
4
View file @
7bed27d5
...
...
@@ -304,10 +304,14 @@ void AbsDecay::fillWignerDs(std::map<std::string, Vector4<double> >& fsMap, Vect
for
(
Spin
lam12
=-
lam12Max
;
lam12
<=
lam12Max
;
++
lam12
){
double
thePhi
=
0.
;
if
(
_hasMotherPart
)
thePhi
=
daughter2HelMother
.
Phi
();
Id3StringType
IdSpinMotherLamMotherLam12
=
FunctionUtils
::
spin3Index
(
spinMother
,
lamMother
,
lam12
);
Id3StringType
IdSpinMotherLamMotherLam12
=
FunctionUtils
::
spin3Index
(
spinMother
,
lamMother
,
lam12
);
std
::
map
<
Id3StringType
,
complex
<
double
>
>::
iterator
found
=
evtData
->
WignerDStringId
[
_wignerDKey
].
find
(
IdSpinMotherLamMotherLam12
);
if
(
found
!=
evtData
->
WignerDStringId
[
_wignerDKey
].
end
()){
continue
;
}
evtData
->
WignerDStringId
[
_wignerDKey
][
IdSpinMotherLamMotherLam12
]
=
Wigner_D
(
thePhi
,
daughter2HelMother
.
Theta
(),
0
,
spinMother
,
lamMother
,
lam12
);
// evtData->WignerDsString[_wignerDKey][spinMother][lamMother][lam12]=Wigner_D(thePhi,daughter2HelMother.Theta(),0,spinMother,lamMother,lam12);
// if(evtData->WignerDsString[_wignerDKey][spinMother][lamMother][lam12] != evtData->WignerDsString[_wignerDKey][spinMother][lamMother][lam12]){
if
(
evtData
->
WignerDStringId
[
_wignerDKey
][
IdSpinMotherLamMotherLam12
]
!=
evtData
->
WignerDStringId
[
_wignerDKey
][
IdSpinMotherLamMotherLam12
]){
DebugMsg
<<
"WignerDsString nan:
\t
"
<<
evtData
->
WignerDsString
[
_wignerDKey
][
spinMother
][
lamMother
][
lam12
]
<<
endmsg
;
DebugMsg
<<
"daughter2HelMother.Theta():
\t
"
<<
daughter2HelMother
.
Theta
()
<<
endmsg
;
...
...
@@ -328,7 +332,6 @@ void AbsDecay::fillWignerDs(std::map<std::string, Vector4<double> >& fsMap, Vect
}
if
(
_useProdBarrier
){
double
qVal
=
daughter2HelMother
.
P
();
// double qValNorm=breakupMomQ(mother4Vec.M(), daughter1_fsMassSum, daughter2_fsMassSum).real();
double
qValNorm
=
breakupMomQ
(
mother4Vec
.
M
(),
massSumFsParticlesDec1
(),
massSumFsParticlesDec2
()).
real
();
evtData
->
DoubleString
[
_wignerDKey
]
=
qVal
;
evtData
->
DoubleString
[
_wignerDKey
+
"qNorm"
]
=
qValNorm
;
...
...
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