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
716a38fc
Commit
716a38fc
authored
12 years ago
by
Julian Pychy
Browse files
Options
Downloads
Patches
Plain Diff
added missing files
parent
aff933f6
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
PwaUtils/DataUtils.cc
+40
-0
40 additions, 0 deletions
PwaUtils/DataUtils.cc
Utils/FunctionUtils.cc
+19
-0
19 additions, 0 deletions
Utils/FunctionUtils.cc
Utils/FunctionUtils.hh
+14
-0
14 additions, 0 deletions
Utils/FunctionUtils.hh
with
73 additions
and
0 deletions
PwaUtils/DataUtils.cc
0 → 100644
+
40
−
0
View file @
716a38fc
#include
"PwaUtils/DataUtils.hh"
#include
"ErrLogger/ErrLogger.hh"
#include
"Utils/PawianCollectionUtils.hh"
#include
"ErrLogger/ErrLogger.hh"
#include
"Particle/Particle.hh"
void
validJPCLS
(
boost
::
shared_ptr
<
const
jpcRes
>
motherRes
,
boost
::
shared_ptr
<
const
jpcRes
>
daughterRes1
,
boost
::
shared_ptr
<
const
jpcRes
>
daughterRes2
,
std
::
vector
<
boost
::
shared_ptr
<
const
JPCLS
>
>&
theJPCLSVec
)
{
// first: check C-parity
if
(
motherRes
->
C
!=
daughterRes1
->
C
*
daughterRes2
->
C
){
Warning
<<
"C-Parity not valid for the reaction: JPC= "
<<
motherRes
->
J
<<
" "
<<
motherRes
->
P
<<
" "
<<
motherRes
->
C
<<
" --> "
<<
" JPC= "
<<
daughterRes1
->
J
<<
" "
<<
daughterRes1
->
P
<<
" "
<<
daughterRes1
->
C
<<
" and "
<<
" JPC= "
<<
daughterRes2
->
J
<<
" "
<<
daughterRes2
->
P
<<
" "
<<
daughterRes2
->
C
;
// << endmsg;
if
(
fabs
(
motherRes
->
C
)
==
1
&&
fabs
(
daughterRes1
->
C
)
==
1
&&
fabs
(
daughterRes2
->
C
)
==
1
)
return
;
}
vector
<
LS
>
LSs
=
GetValidLS
(
motherRes
->
J
,
motherRes
->
P
,
daughterRes1
->
J
,
daughterRes1
->
P
,
daughterRes2
->
J
,
daughterRes2
->
P
);
int
num_LS
=
(
int
)
LSs
.
size
();
for
(
int
ls
=
0
;
ls
<
num_LS
;
ls
++
){
Spin
L
=
LSs
[
ls
].
L
;
Spin
S
=
LSs
[
ls
].
S
;
boost
::
shared_ptr
<
const
JPCLS
>
tmpJPCLS
(
new
JPCLS
(
motherRes
,
L
,
S
));
theJPCLSVec
.
push_back
(
tmpJPCLS
);
}
}
boost
::
shared_ptr
<
jpcRes
>
getJPCPtr
(
Particle
*
theParticle
){
boost
::
shared_ptr
<
jpcRes
>
result
(
new
jpcRes
((
int
)
theParticle
->
J
(),
theParticle
->
theParity
(),
theParticle
->
theCParity
()));
return
result
;
}
This diff is collapsed.
Click to expand it.
Utils/FunctionUtils.cc
0 → 100644
+
19
−
0
View file @
716a38fc
#include
"Utils/FunctionUtils.hh"
#include
"Particle/Particle.hh"
namespace
FunctionUtils
{
std
::
string
particleListName
(
std
::
vector
<
Particle
*>&
particleVec
){
std
::
string
result
;
std
::
vector
<
Particle
*>::
iterator
it
;
for
(
it
=
particleVec
.
begin
();
it
!=
particleVec
.
end
();
++
it
){
result
+=
(
*
it
)
->
name
();
}
return
result
;
}
}
This diff is collapsed.
Click to expand it.
Utils/FunctionUtils.hh
0 → 100644
+
14
−
0
View file @
716a38fc
#pragma once
#include
<cassert>
#include
<vector>
#include
<string>
class
Particle
;
namespace
FunctionUtils
{
std
::
string
particleListName
(
std
::
vector
<
Particle
*>&
particleVec
);
}
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