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
697aa6e7
Commit
697aa6e7
authored
13 years ago
by
Bertram Kopf
Browse files
Options
Downloads
Patches
Plain Diff
added resetAmps in FitParams2K2PiGam
parent
0f29fea4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Examples/Psi2STo2K2PiGam/FitParams2K2PiGam.cc
+28
-2
28 additions, 2 deletions
Examples/Psi2STo2K2PiGam/FitParams2K2PiGam.cc
Examples/Psi2STo2K2PiGam/FitParams2K2PiGam.hh
+1
-0
1 addition, 0 deletions
Examples/Psi2STo2K2PiGam/FitParams2K2PiGam.hh
with
29 additions
and
2 deletions
Examples/Psi2STo2K2PiGam/FitParams2K2PiGam.cc
+
28
−
2
View file @
697aa6e7
...
...
@@ -6,8 +6,7 @@
#include
"qft++/relativistic-quantum-mechanics/Utils.hh"
#include
"ErrLogger/ErrLogger.hh"
FitParams2K2PiGam
::
FitParams2K2PiGam
()
{
FitParams2K2PiGam
::
FitParams2K2PiGam
()
{
_statesPtr
=
boost
::
shared_ptr
<
Psi2STo2K2PiGamStates
>
(
new
Psi2STo2K2PiGamStates
());
_statesPtr
->
print
(
std
::
cout
);
filljpclsMap
();
...
...
@@ -342,6 +341,33 @@ int FitParams2K2PiGam::setFitParamValDec(param2K2PiGam& theParamVal, const std::
return
resultCount
;
}
void
FitParams2K2PiGam
::
resetFitParamValDec
(
param2K2PiGam
&
theParamVal
,
std
::
vector
<
std
::
string
>&
leaveParams
){
std
::
vector
<
boost
::
shared_ptr
<
const
JPCLS
>
>
currentStates
;
std
::
map
<
boost
::
shared_ptr
<
const
JPCLS
>
,
pair
<
double
,
double
>
,
pawian
::
Collection
::
SharedPtrLess
>*
currentMap
=
0
;
std
::
vector
<
boost
::
shared_ptr
<
const
JPCLS
>
>::
const_iterator
itJPCLS
;
std
::
map
<
boost
::
shared_ptr
<
const
JPCLS
>
,
pair
<
double
,
double
>
,
pawian
::
Collection
::
SharedPtrLess
>::
iterator
it
;
std
::
vector
<
std
::
string
>::
const_iterator
iterStr
;
for
(
int
i
=
paramEnum2K2PiGam
::
ChiGam
;
i
<
paramEnum2K2PiGam
::
nAmps
;
++
i
){
std
::
string
currentString
=
paramEnum2K2PiGam
::
name
(
i
);
bool
found
=
false
;
for
(
iterStr
=
leaveParams
.
begin
();
iterStr
!=
leaveParams
.
end
();
++
iterStr
){
if
(
currentString
==
(
*
iterStr
)
)
found
=
true
;
}
if
(
found
)
continue
;
currentStates
=
_jpclsMap
[
i
];
currentMap
=
&
ampMap
(
theParamVal
,
i
);
for
(
itJPCLS
=
currentStates
.
begin
();
itJPCLS
!=
currentStates
.
end
();
++
itJPCLS
){
std
::
pair
<
double
,
double
>
tmpParameter
=
make_pair
(
0.
,
0.
);
(
*
currentMap
)[(
*
itJPCLS
)]
=
tmpParameter
;
}
}
}
int
FitParams2K2PiGam
::
setFitParamValMass
(
param2K2PiGam
&
theParamVal
,
const
std
::
vector
<
double
>&
par
,
int
counter
,
unsigned
int
index
){
...
...
This diff is collapsed.
Click to expand it.
Examples/Psi2STo2K2PiGam/FitParams2K2PiGam.hh
+
1
−
0
View file @
697aa6e7
...
...
@@ -262,6 +262,7 @@ public:
pair
<
double
,
double
>&
massPair
(
param2K2PiGam
&
params
,
unsigned
int
index
);
int
setFitParamValDec
(
param2K2PiGam
&
theParamVal
,
const
std
::
vector
<
double
>&
par
,
int
counter
,
unsigned
int
index
);
void
resetFitParamValDec
(
param2K2PiGam
&
theParamVal
,
std
::
vector
<
std
::
string
>&
leaveParams
);
int
setFitParamValMass
(
param2K2PiGam
&
theParamVal
,
const
std
::
vector
<
double
>&
par
,
int
counter
,
unsigned
int
index
);
int
setFitParamFlatteMass
(
param2K2PiGam
&
theParamVal
,
const
std
::
vector
<
double
>&
par
,
int
counter
,
std
::
string
key
);
void
setMnUsrParamsDec
(
MnUserParameters
&
upar
,
param2K2PiGam
&
startVal
,
param2K2PiGam
&
errVal
,
unsigned
int
index
);
...
...
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