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
cd7d3e05
Commit
cd7d3e05
authored
12 years ago
by
Bertram Kopf
Browse files
Options
Downloads
Plain Diff
merged new stuff
parents
121b7837
4e3d5bd3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Examples/pbarp/pbarpDecAmps.cc
+29
-35
29 additions, 35 deletions
Examples/pbarp/pbarpDecAmps.cc
PwaUtils/AbsXdecAmp.cc
+1
-0
1 addition, 0 deletions
PwaUtils/AbsXdecAmp.cc
SetEnv_rub
+2
-2
2 additions, 2 deletions
SetEnv_rub
with
32 additions
and
37 deletions
Examples/pbarp/pbarpDecAmps.cc
+
29
−
35
View file @
cd7d3e05
...
...
@@ -35,26 +35,19 @@ pbarpDecAmps::~pbarpDecAmps()
complex
<
double
>
pbarpDecAmps
::
XdecAmp
(
Spin
lamX
,
EvtData
*
theData
){
int
evtNo
=
theData
->
evtNo
;
if
(
_cacheAmps
&&
!
_recalculate
){
complex
<
double
>
result
(
0.
,
0.
);
//#ifdef _OPENMP
//#pragma omp critical
// {
//#endif
result
=
_cachedAmpMap
[
evtNo
][
lamX
];
//#ifdef _OPENMP
// }
//#endif
return
result
;
}
if
(
_cacheAmps
&&
!
_recalculate
){
complex
<
double
>
result
(
0.
,
0.
);
result
=
_cachedAmpMap
[
evtNo
][
lamX
];
return
result
;
}
complex
<
double
>
result
(
0.
,
0.
);
std
::
vector
<
boost
::
shared_ptr
<
const
JPCLS
>
>::
iterator
it
;
for
(
it
=
_JPCLSs
.
begin
();
it
!=
_JPCLSs
.
end
();
++
it
){
if
(
fabs
(
lamX
)
>
(
*
it
)
->
J
)
continue
;
double
theMag
=
_currentParamMags
[
*
it
];
double
thePhi
=
_currentParamPhis
[
*
it
];
complex
<
double
>
expi
(
cos
(
thePhi
),
sin
(
thePhi
));
std
::
vector
<
boost
::
shared_ptr
<
const
JPCLS
>
>::
iterator
it
;
for
(
it
=
_JPCLSs
.
begin
();
it
!=
_JPCLSs
.
end
();
++
it
){
if
(
fabs
(
lamX
)
>
(
*
it
)
->
J
)
continue
;
double
theMag
=
_currentParamMags
[
*
it
];
double
thePhi
=
_currentParamPhis
[
*
it
];
complex
<
double
>
expi
(
cos
(
thePhi
),
sin
(
thePhi
));
for
(
Spin
lambda1
=-
_Jdaughter1
;
lambda1
<=
_Jdaughter1
;
lambda1
++
){
for
(
Spin
lambda2
=-
_Jdaughter2
;
lambda2
<=
_Jdaughter2
;
lambda2
++
){
...
...
@@ -62,9 +55,9 @@ int evtNo=theData->evtNo;
if
(
fabs
(
lambda
)
>
(
*
it
)
->
J
||
fabs
(
lambda
)
>
(
*
it
)
->
S
)
continue
;
complex
<
double
>
amp
=
theMag
*
expi
*
sqrt
(
2
*
(
*
it
)
->
L
+
1
)
*
Clebsch
((
*
it
)
->
L
,
0
,
(
*
it
)
->
S
,
lambda
,
(
*
it
)
->
J
,
lambda
)
*
Clebsch
(
_Jdaughter1
,
lambda1
,
_Jdaughter2
,
-
lambda2
,
(
*
it
)
->
S
,
lambda
)
*
conj
(
theData
->
WignerDsString
[
_wignerDKey
][(
*
it
)
->
J
][
lamX
][
lambda
]);
*
Clebsch
((
*
it
)
->
L
,
0
,
(
*
it
)
->
S
,
lambda
,
(
*
it
)
->
J
,
lambda
)
*
Clebsch
(
_Jdaughter1
,
lambda1
,
_Jdaughter2
,
-
lambda2
,
(
*
it
)
->
S
,
lambda
)
*
conj
(
theData
->
WignerDsString
[
_wignerDKey
][(
*
it
)
->
J
][
lamX
][
lambda
]);
// std::cout << "amp: " << amp << std::endl;
amp
*=
daughterAmp
(
lambda1
,
lambda2
,
theData
);
...
...
@@ -72,28 +65,29 @@ int evtNo=theData->evtNo;
result
+=
amp
;
}
}
}
}
if
(
_withDyn
){
Vector4
<
double
>
mass4Vec
(
0.
,
0.
,
0.
,
0.
);
std
::
vector
<
Particle
*>
fsParticleVec
=
_decay
->
finalStateParticles
();
if
(
_withDyn
){
Vector4
<
double
>
mass4Vec
(
0.
,
0.
,
0.
,
0.
);
std
::
vector
<
Particle
*>
fsParticleVec
=
_decay
->
finalStateParticles
();
std
::
vector
<
Particle
*>::
iterator
itPartVec
;
for
(
itPartVec
=
fsParticleVec
.
begin
();
itPartVec
!=
fsParticleVec
.
end
();
++
itPartVec
){
std
::
vector
<
Particle
*>::
iterator
itPartVec
;
for
(
itPartVec
=
fsParticleVec
.
begin
();
itPartVec
!=
fsParticleVec
.
end
();
++
itPartVec
){
mass4Vec
+=
theData
->
FourVecsString
[(
*
itPartVec
)
->
name
()];
}
result
*=
BreitWigner
(
mass4Vec
,
_currentXMass
,
_currentXWidth
);
}
if
(
_cacheAmps
){
}
result
*=
BreitWigner
(
mass4Vec
,
_currentXMass
,
_currentXWidth
);
}
if
(
_cacheAmps
){
#ifdef _OPENMP
#pragma omp critical
{
{
#endif
_cachedAmpMap
[
evtNo
][
lamX
]
=
result
;
_cachedAmpMap
[
evtNo
][
lamX
]
=
result
;
#ifdef _OPENMP
}
#endif
}
#endif
}
return
result
;
}
...
...
This diff is collapsed.
Click to expand it.
PwaUtils/AbsXdecAmp.cc
+
1
−
0
View file @
cd7d3e05
...
...
@@ -25,6 +25,7 @@ AbsXdecAmp::AbsXdecAmp(const std::string& name, const std::vector<std::string>&
AbsXdecAmp
::
AbsXdecAmp
(
const
std
::
string
&
name
)
:
_name
(
name
)
,
_recalculate
(
true
)
{
}
...
...
This diff is collapsed.
Click to expand it.
SetEnv_rub
+
2
−
2
View file @
cd7d3e05
#
setenv ROOTSYS /opt/root/5.28-00h/Linux26SL6_x86_64_gcc444/
setenv ROOTSYS /opt/root/5.26-00b/Linux26SL5_x86_64_gcc412
setenv ROOTSYS /opt/root/5.28-00h/Linux26SL6_x86_64_gcc444/
#
setenv ROOTSYS /opt/root/5.26-00b/Linux26SL5_x86_64_gcc412
#setenv ROOTSYS /opt/root/5.34-01/Linux26SL6_x86_64_gcc444
setenv CMAKE_SOURCE_DIR `pwd | sed -e 's/\/nfs//'`
...
...
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