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
936c5a38
Commit
936c5a38
authored
8 years ago
by
Bertram Kopf
Browse files
Options
Downloads
Patches
Plain Diff
fixed steering of input params for TwoPolesApp
parent
49b06898
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
Examples/Tutorial/LineShapes/TwoPolesApp.cc
+37
-60
37 additions, 60 deletions
Examples/Tutorial/LineShapes/TwoPolesApp.cc
Particle/pdtNew.table
+1
-0
1 addition, 0 deletions
Particle/pdtNew.table
with
38 additions
and
60 deletions
Examples/Tutorial/LineShapes/TwoPolesApp.cc
+
37
−
60
View file @
936c5a38
...
...
@@ -49,68 +49,45 @@ int main(int __argc,char *__argv[]){
return
0
;
}
std
::
string
mass1Str
=
"1.318"
;
std
::
string
width1Str
=
"0.1"
;
std
::
string
mass2Str
=
"1.5"
;
std
::
string
width2Str
=
"0.1"
;
std
::
string
deltaStr
=
"0.1"
;
while
((
optind
<
(
__argc
-
1
)
)
&&
(
__argv
[
optind
][
0
]
==
'-'
))
{
bool
found
=
false
;
std
::
string
sw
=
__argv
[
optind
];
if
(
sw
==
"-mass1"
){
optind
++
;
mass1Str
=
__argv
[
optind
];
found
=
true
;
}
if
(
sw
==
"-width1"
){
optind
++
;
width1Str
=
__argv
[
optind
];
found
=
true
;
}
if
(
sw
==
"-mass2"
){
optind
++
;
mass2Str
=
__argv
[
optind
];
found
=
true
;
}
if
(
sw
==
"-width2"
){
optind
++
;
width2Str
=
__argv
[
optind
];
found
=
true
;
}
if
(
sw
==
"-delta"
){
optind
++
;
deltaStr
=
__argv
[
optind
];
found
=
true
;
}
if
(
!
found
){
Warning
<<
"Unknown switch: "
<<
__argv
[
optind
]
<<
endmsg
;
optind
++
;
}
double
mass1
=
1.318
;
double
width1
=
0.1
;
double
mass2
=
1.5
;
double
width2
=
0.1
;
double
delta
=
0.1
;
for
(;
optind
<
(
__argc
-
1
);
optind
++
){
std
::
string
ws
=
__argv
[
optind
];
if
(
ws
[
0
]
!=
'-'
){
continue
;
}
else
if
(
ws
==
"-mass1"
||
ws
==
"--mass1"
){
std
::
istringstream
mass1IStr
(
__argv
[
optind
+
1
]);
mass1IStr
>>
mass1
;
}
else
if
(
ws
==
"-width1"
||
ws
==
"--width1"
){
std
::
istringstream
width1IStr
(
__argv
[
optind
+
1
]);
width1IStr
>>
width1
;
}
else
if
(
ws
==
"-mass2"
||
ws
==
"--mass2"
){
std
::
istringstream
mass2IStr
(
__argv
[
optind
+
1
]);
mass2IStr
>>
mass2
;
}
else
if
(
ws
==
"-width2"
||
ws
==
"--width2"
){
std
::
istringstream
width2IStr
(
__argv
[
optind
+
1
]);
width2IStr
>>
width2
;
}
else
if
(
ws
==
"-delta"
||
ws
==
"--delta"
){
std
::
istringstream
deltaIStr
(
__argv
[
optind
+
1
]);
deltaIStr
>>
delta
;
}
else
{
Alert
<<
"Unknown switch: "
<<
__argv
[
optind
]
<<
endmsg
;
return
0
;
}
}
std
::
stringstream
mass1StrStr
(
mass1Str
);
double
mass1
=
0.
;
mass1StrStr
>>
mass1
;
std
::
stringstream
width1StrStr
(
width1Str
);
double
width1
=
0.
;
width1StrStr
>>
width1
;
std
::
stringstream
mass2StrStr
(
mass2Str
);
double
mass2
=
0.
;
mass2StrStr
>>
mass2
;
std
::
stringstream
width2StrStr
(
width2Str
);
double
width2
=
0.
;
width2StrStr
>>
width2
;
std
::
stringstream
deltaStrStr
(
deltaStr
);
double
delta
=
0.
;
deltaStrStr
>>
delta
;
TwoPoles
twoPoles
(
mass1
,
width1
,
mass2
,
width2
,
delta
);
return
0
;
...
...
This diff is collapsed.
Click to expand it.
Particle/pdtNew.table
+
1
−
0
View file @
936c5a38
...
...
@@ -323,3 +323,4 @@ Baryon Lambda_c(2625)+ \Lambda_c(2625)^+ 3 3 -1 0 0 0 0 0 1 2.2
Baryon Xibar+ \bar{\Xi}^+ 3 1 -1 0 0 1 1 2 0 1.32171 0.0001 relBW [PDG]
Baryon Xi(1690)- \Xi(1690)^- 3 1 1 0 0 1 -1 -2 0 1.69 0.02 relBW [PDG]
Baryon Xi(1690)1m- \Xi(1690)1m^- 3 1 -1 0 0 1 -1 -2 0 1.69 0.02 relBW [PDG]
Baryon Xi(1820)- \Xi(1820)^- 3 3 -1 0 0 1 -1 -2 0 1.823 0.024 relBW [PDG]
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