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
d1b3fb44
Commit
d1b3fb44
authored
12 years ago
by
Bertram Kopf
Browse files
Options
Downloads
Patches
Plain Diff
modified setting of default start parameter
parent
e1472e4b
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
PwaUtils/LSDecAmps.cc
+6
-5
6 additions, 5 deletions
PwaUtils/LSDecAmps.cc
PwaUtils/LSDecAmps.hh
+1
-0
1 addition, 0 deletions
PwaUtils/LSDecAmps.hh
pbarpUtils/pbarpBaseLh.cc
+4
-3
4 additions, 3 deletions
pbarpUtils/pbarpBaseLh.cc
pbarpUtils/pbarpEnv.cc
+1
-1
1 addition, 1 deletion
pbarpUtils/pbarpEnv.cc
with
12 additions
and
9 deletions
PwaUtils/LSDecAmps.cc
+
6
−
5
View file @
d1b3fb44
...
...
@@ -27,6 +27,7 @@ LSDecAmps::LSDecAmps(boost::shared_ptr<IsobarDecay> theDec) :
,
_daughter1IsStable
(
theDec
->
isDaughter1Stable
())
,
_daughter2IsStable
(
theDec
->
isDaughter2Stable
())
,
_withDyn
(
theDec
->
withDynamics
())
,
_factorMag
(
1.
)
{
initialize
();
}
...
...
@@ -123,12 +124,12 @@ void LSDecAmps::getDefaultParams(fitParams& fitVal, fitParams& fitErr){
std
::
map
<
boost
::
shared_ptr
<
const
JPCLS
>
,
double
,
pawian
::
Collection
::
SharedPtrLess
>
currentPhiValMap
;
std
::
map
<
boost
::
shared_ptr
<
const
JPCLS
>
,
double
,
pawian
::
Collection
::
SharedPtrLess
>
currentMagErrMap
;
std
::
map
<
boost
::
shared_ptr
<
const
JPCLS
>
,
double
,
pawian
::
Collection
::
SharedPtrLess
>
currentPhiErrMap
;
std
::
vector
<
boost
::
shared_ptr
<
const
JPCLS
>
>::
const_iterator
itLS
;
for
(
itLS
=
_JPCLSs
.
begin
();
itLS
!=
_JPCLSs
.
end
();
++
itLS
){
currentMagValMap
[
*
itLS
]
=
1.
;
currentMagValMap
[
*
itLS
]
=
_factorMag
;
currentPhiValMap
[
*
itLS
]
=
0.
;
currentMagErrMap
[
*
itLS
]
=
0.5
;
currentMagErrMap
[
*
itLS
]
=
0.5
*
_factorMag
;
currentPhiErrMap
[
*
itLS
]
=
0.3
;
}
...
...
@@ -139,7 +140,7 @@ void LSDecAmps::getDefaultParams(fitParams& fitVal, fitParams& fitErr){
if
(
_withDyn
){
fitVal
.
Masses
[
_massKey
]
=
_decay
->
motherPart
()
->
mass
();
fitErr
.
Masses
[
_massKey
]
=
_decay
->
motherPart
()
->
width
()
;
fitErr
.
Masses
[
_massKey
]
=
0.03
;
fitVal
.
Widths
[
_massKey
]
=
_decay
->
motherPart
()
->
width
();
fitErr
.
Widths
[
_massKey
]
=
_decay
->
motherPart
()
->
width
();
}
...
...
@@ -153,7 +154,7 @@ void LSDecAmps::print(std::ostream& os) const{
}
void
LSDecAmps
::
initialize
(){
if
(
_JPCLSs
.
size
()
>
0
)
_factorMag
=
1.
/
sqrt
(
_JPCLSs
.
size
());
if
(
_withDyn
){
if
(
!
_decay
->
hasMother
()){
Alert
<<
"no mother resonance; can not add dynamis"
<<
endmsg
;
...
...
This diff is collapsed.
Click to expand it.
PwaUtils/LSDecAmps.hh
+
1
−
0
View file @
d1b3fb44
...
...
@@ -54,6 +54,7 @@ protected:
bool
_daughter1IsStable
;
bool
_daughter2IsStable
;
bool
_withDyn
;
double
_factorMag
;
virtual
void
initialize
();
private
:
...
...
This diff is collapsed.
Click to expand it.
pbarpUtils/pbarpBaseLh.cc
+
4
−
3
View file @
d1b3fb44
...
...
@@ -138,12 +138,13 @@ void pbarpBaseLh::getDefaultParams(fitParams& fitVal, fitParams& fitErr){
std
::
map
<
boost
::
shared_ptr
<
const
JPCLS
>
,
double
,
pawian
::
Collection
::
SharedPtrLess
>
currentPhiValMap
;
std
::
map
<
boost
::
shared_ptr
<
const
JPCLS
>
,
double
,
pawian
::
Collection
::
SharedPtrLess
>
currentMagErrMap
;
std
::
map
<
boost
::
shared_ptr
<
const
JPCLS
>
,
double
,
pawian
::
Collection
::
SharedPtrLess
>
currentPhiErrMap
;
double
magFactor
=
1.
/
sqrt
(
_jpclsStates
.
size
());
std
::
vector
<
boost
::
shared_ptr
<
const
JPCLS
>
>::
iterator
it
;
for
(
it
=
_jpclsStates
.
begin
();
it
!=
_jpclsStates
.
end
();
++
it
){
currentMagValMap
[
*
it
]
=
1.0
;
currentMagValMap
[
*
it
]
=
magFactor
;
currentPhiValMap
[
*
it
]
=
0.
;
currentMagErrMap
[
*
it
]
=
0.
3
;
currentMagErrMap
[
*
it
]
=
0.
5
*
magFactor
;
currentPhiErrMap
[
*
it
]
=
0.3
;
}
fitVal
.
Mags
[
"pbarp"
]
=
currentMagValMap
;
...
...
This diff is collapsed.
Click to expand it.
pbarpUtils/pbarpEnv.cc
+
1
−
1
View file @
d1b3fb44
...
...
@@ -70,7 +70,7 @@ void pbarpEnv::setup(pbarpParser* thePbarpParser){
stringStr
>>
suffixStr
;
decSuffixNames
[
classStr
]
=
suffixStr
;
}
//set suffixes for decay classes
std
::
map
<
std
::
string
,
std
::
string
>::
iterator
itMapStrStr
;
for
(
itMapStrStr
=
decSuffixNames
.
begin
();
itMapStrStr
!=
decSuffixNames
.
end
();
++
itMapStrStr
){
...
...
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