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
119b0fd2
Commit
119b0fd2
authored
10 years ago
by
Bertram Kopf
Browse files
Options
Downloads
Patches
Plain Diff
added some missing parts in RadM1Dynamics II
parent
5bced54d
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/RadM1Dynamics.cc
+5
-2
5 additions, 2 deletions
PwaUtils/RadM1Dynamics.cc
with
5 additions
and
2 deletions
PwaUtils/RadM1Dynamics.cc
+
5
−
2
View file @
119b0fd2
...
@@ -56,16 +56,19 @@ RadM1Dynamics::~RadM1Dynamics()
...
@@ -56,16 +56,19 @@ RadM1Dynamics::~RadM1Dynamics()
complex
<
double
>
RadM1Dynamics
::
eval
(
EvtData
*
theData
,
AbsXdecAmp
*
grandmaAmp
,
Spin
OrbMom
){
complex
<
double
>
RadM1Dynamics
::
eval
(
EvtData
*
theData
,
AbsXdecAmp
*
grandmaAmp
,
Spin
OrbMom
){
int
evtNo
=
theData
->
evtNo
;
int
evtNo
=
theData
->
evtNo
;
if
(
_cacheAmps
&&
!
_recalculate
){
if
(
_cacheAmps
&&
!
_recalculate
){
return
_cachedMap
[
evtNo
]
;
return
_cachedMap
.
at
(
evtNo
)
;
}
}
// Which Daughter particle is the radiative photon?
// Which Daughter particle is the radiative photon?
double
massB
=
1.
;
// DUMMY VALUE - needs to be mass of non-gamma dacay particle, e.g. eta_c
double
massB
=
theData
->
DoubleString
.
at
(
_dynMassKeyDaughter2
);
// DUMMY VALUE - needs to be mass of non-gamma dacay particle, e.g. eta_c
if
(
!
_isP1Gamma
)
massB
=
theData
->
DoubleString
.
at
(
_dynMassKeyDaughter1
);
double
currentMassB
=
1.
;
// DUMMY VALUE - needs to be current mass (fit parameter!) of non-gamma decay particle, e.g. eta_c
double
currentMassB
=
1.
;
// DUMMY VALUE - needs to be current mass (fit parameter!) of non-gamma decay particle, e.g. eta_c
double
Egamma
=
theData
->
DoubleString
.
at
(
_dynEgammaCMmotherKey
);
// how to access Egamma?
double
Egamma
=
theData
->
DoubleString
.
at
(
_dynEgammaCMmotherKey
);
// how to access Egamma?
complex
<
double
>
result
(
1.
,
0.
);
complex
<
double
>
result
(
1.
,
0.
);
result
=
RadMultipoleFormFactor
::
PureM1
(
theData
->
DoubleString
.
at
(
_dynKey
),
massB
,
currentMassB
,
Egamma
);
result
=
RadMultipoleFormFactor
::
PureM1
(
theData
->
DoubleString
.
at
(
_dynKey
),
massB
,
currentMassB
,
Egamma
);
if
(
_cacheAmps
)
_cachedMap
[
evtNo
]
=
result
;
return
result
;
return
result
;
}
}
...
...
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