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
56605d71
Commit
56605d71
authored
7 years ago
by
Bertram Kopf
Browse files
Options
Downloads
Patches
Plain Diff
modified procedure to add kMatrixProdSuffixes for individual kMats
parent
c3697c5d
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
ConfigParser/ParserBase.cc
+6
-3
6 additions, 3 deletions
ConfigParser/ParserBase.cc
ConfigParser/ParserBase.hh
+2
-2
2 additions, 2 deletions
ConfigParser/ParserBase.hh
PwaUtils/KMatrixDynamics.cc
+20
-1
20 additions, 1 deletion
PwaUtils/KMatrixDynamics.cc
with
28 additions
and
6 deletions
ConfigParser/ParserBase.cc
+
6
−
3
View file @
56605d71
...
...
@@ -77,7 +77,6 @@ ParserBase::ParserBase(int argc,char **argv)
,
_noOfDataEvts
(
1000000
)
,
_tolerance
(
0.1
)
,
_noInterScattPoints
(
0
)
,
_kMatrixProdSuffix
(
""
)
{
string
globalCofigFilePath
=
"/ConfigParser/global.cfg"
;
_configFile
=
getenv
(
"TOP_DIR"
)
+
globalCofigFilePath
;
...
...
@@ -163,7 +162,7 @@ ParserBase::ParserBase(int argc,char **argv)
(
"calcContribution"
,
po
::
value
<
vector
<
string
>
>
(
&
_calcContribution
),
"Calculate contribution of partial wave"
)
(
"minimumTolerance"
,
po
::
value
<
double
>
(
&
_tolerance
),
"Minimum tolerance"
)
(
"noOfInterpolatedScatteringPoints"
,
po
::
value
<
int
>
(
&
_noInterScattPoints
),
"number of interpolated scattering points"
)
(
"kMatrixProdSuffix"
,
po
::
value
<
std
::
string
>
(
&
_kMatrixProdSuffix
),
"suffix for fit parameter of the P-vectors in the K-matrix approach"
)
(
"kMatrixProdSuffix"
,
po
::
value
<
vector
<
string
>
>
(
&
_kMatrixProdSuffix
),
"suffix for fit parameter of the P-vectors in the K-matrix approach"
)
;
}
...
...
@@ -263,7 +262,6 @@ bool ParserBase::parseCommandLine(int argc, char **argv)
<<
"pdg table: "
<<
_pdgTableFile
<<
"
\n\n
"
<<
"minimumTolerance: "
<<
_tolerance
<<
"
\n\n
"
<<
"no of interpolated scattering points"
<<
_noInterScattPoints
<<
"
\n\n
"
<<
"suffix for P-vector parameter in the K-matrix approach"
<<
_kMatrixProdSuffix
<<
"
\n\n
"
<<
endl
;
...
...
@@ -341,6 +339,11 @@ bool ParserBase::parseCommandLine(int argc, char **argv)
std
::
cout
<<
(
*
it
)
<<
"
\n
"
;
}
std
::
cout
<<
"
\n
K-matrix prod suffix:"
<<
std
::
endl
;
for
(
it
=
_kMatrixProdSuffix
.
begin
();
it
!=
_kMatrixProdSuffix
.
end
();
++
it
){
std
::
cout
<<
(
*
it
)
<<
"
\n
"
;
}
std
::
cout
<<
"
\n
production formalism:
\t
"
<<
_productionFormalism
<<
std
::
endl
;
std
::
cout
<<
"fitqRProduction:
\t
"
<<
_fitqRProduction
<<
std
::
endl
;
...
...
This diff is collapsed.
Click to expand it.
ConfigParser/ParserBase.hh
+
2
−
2
View file @
56605d71
...
...
@@ -115,7 +115,7 @@ public:
const
int
noOfDataEvts
()
const
{
return
_noOfDataEvts
;}
const
double
tolerance
()
const
{
return
_tolerance
;}
const
int
noOfInterpolatedScattPoints
()
const
{
return
_noInterScattPoints
;}
const
std
::
string
kM
atrixProdSuffix
()
const
{
return
_kMatrixProdSuffix
;}
const
std
::
vector
<
std
::
string
>&
addKm
atrixProdSuffix
()
const
{
return
_kMatrixProdSuffix
;}
protected
:
virtual
bool
parseCommandLine
(
int
argc
,
char
**
argv
);
...
...
@@ -188,5 +188,5 @@ protected:
int
_noOfDataEvts
;
double
_tolerance
;
int
_noInterScattPoints
;
std
::
string
_kMatrixProdSuffix
;
std
::
vector
<
std
::
string
>
_kMatrixProdSuffix
;
};
This diff is collapsed.
Click to expand it.
PwaUtils/KMatrixDynamics.cc
+
20
−
1
View file @
56605d71
...
...
@@ -59,7 +59,26 @@ KMatrixDynamics::KMatrixDynamics(std::string& name, std::vector<Particle*>& fsPa
init
();
_isLdependent
=
true
;
ParserBase
*
currentParser
=
GlobalEnv
::
instance
()
->
Channel
(
channelID
)
->
parser
();
_pVecSuffix
=
currentParser
->
kMatrixProdSuffix
();
const
std
::
vector
<
std
::
string
>
kMatProdSuffixes
=
currentParser
->
addKmatrixProdSuffix
();
std
::
map
<
std
::
string
,
std
::
string
>
kMatKeyProdSuffNames
;
std
::
vector
<
std
::
string
>::
const_iterator
itStr
;
for
(
itStr
=
kMatProdSuffixes
.
begin
();
itStr
!=
kMatProdSuffixes
.
end
();
++
itStr
){
std
::
stringstream
stringStr
;
stringStr
<<
(
*
itStr
);
std
::
string
keyStr
;
stringStr
>>
keyStr
;
std
::
string
suffStr
;
stringStr
>>
suffStr
;
kMatKeyProdSuffNames
[
keyStr
]
=
suffStr
;
}
std
::
map
<
std
::
string
,
std
::
string
>::
const_iterator
it
=
kMatKeyProdSuffNames
.
find
(
_kMatName
);
if
(
it
!=
kMatKeyProdSuffNames
.
end
()){
_pVecSuffix
=
kMatKeyProdSuffNames
.
at
(
_kMatName
);;
}
}
KMatrixDynamics
::~
KMatrixDynamics
()
...
...
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