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
d05bb57c
Commit
d05bb57c
authored
8 years ago
by
Malte Albrecht
Browse files
Options
Downloads
Patches
Plain Diff
added qft++Extension/PawianUtils.* from Bertrams development directory
parent
2e3f3dfa
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
qft++Extension/PawianUtils.cc
+39
-0
39 additions, 0 deletions
qft++Extension/PawianUtils.cc
qft++Extension/PawianUtils.hh
+31
-0
31 additions, 0 deletions
qft++Extension/PawianUtils.hh
with
70 additions
and
0 deletions
qft++Extension/PawianUtils.cc
0 → 100644
+
39
−
0
View file @
d05bb57c
//************************************************************************//
// //
// Copyright 2016 Bertram Kopf (bertram@ep1.rub.de) //
// //
// This file is part of Pawian. //
// //
// Pawian is free software: you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation, either version 3 of the License, or //
// (at your option) any later version. //
// //
// Pawian is distributed in the hope that it will be useful, //
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
// GNU General Public License for more details. //
// //
// You should have received a copy of the GNU General Public License //
// along with Pawian. If not, see <http://www.gnu.org/licenses/>. //
// //
//************************************************************************//
// DataUtils class definition file. -*- C++ -*-
// Copyright 2016 Bertram Kopf
#include
"qft++Extension/PawianUtils.hh"
vector
<
LS
>
PawianQFT
::
GetValidLSWeak
(
const
Spin
&
__j
,
const
Spin
&
__s1
,
const
Spin
&
__s2
){
vector
<
LS
>
valid_ls
;
LS
ls
;
for
(
Spin
S
=
abs
(
__s1
-
__s2
);
S
<=
(
__s1
+
__s2
);
++
S
){
for
(
int
L
=
(
int
)
abs
(
__j
-
S
);
L
<=
(
int
)(
__j
+
S
);
++
L
){
ls
.
L
=
L
;
ls
.
S
=
S
;
valid_ls
.
push_back
(
ls
);
}
}
return
valid_ls
;
}
This diff is collapsed.
Click to expand it.
qft++Extension/PawianUtils.hh
0 → 100644
+
31
−
0
View file @
d05bb57c
//************************************************************************//
// //
// Copyright 2016 Bertram Kopf (bertram@ep1.rub.de) //
// - Ruhr-Universität Bochum //
// //
// This file is part of Pawian. //
// //
// Pawian is free software: you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation, either version 3 of the License, or //
// (at your option) any later version. //
// //
// Pawian is distributed in the hope that it will be useful, //
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
// GNU General Public License for more details. //
// //
// You should have received a copy of the GNU General Public License //
// along with Pawian. If not, see <http://www.gnu.org/licenses/>. //
// //
//************************************************************************//
#pragma once
#include
"qft++/relativistic-quantum-mechanics/Utils.hh"
namespace
PawianQFT
{
/// Returns all valid @a LS combos for weak decays; non partity conservation
vector
<
LS
>
GetValidLSWeak
(
const
Spin
&
__j
,
const
Spin
&
__s1
,
const
Spin
&
__s2
);
//
}
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