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
e1472e4b
Commit
e1472e4b
authored
12 years ago
by
Julian Pychy
Browse files
Options
Downloads
Patches
Plain Diff
added particle cloning
parent
12104135
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
PwaUtils/AbsEnv.cc
+15
-1
15 additions, 1 deletion
PwaUtils/AbsEnv.cc
PwaUtils/ParserBase.cc
+5
-0
5 additions, 0 deletions
PwaUtils/ParserBase.cc
PwaUtils/ParserBase.hh
+2
-0
2 additions, 0 deletions
PwaUtils/ParserBase.hh
with
22 additions
and
1 deletion
PwaUtils/AbsEnv.cc
+
15
−
1
View file @
e1472e4b
...
...
@@ -34,7 +34,7 @@ void AbsEnv::setup(ParserBase* theParser){
_alreadySetUp
=
true
;
// common options
(move to base class later)
// common options
_outputFileNameSuffix
=
theParser
->
outputFileNameSuffix
();
// pdtTable
...
...
@@ -49,6 +49,20 @@ void AbsEnv::setup(ParserBase* theParser){
exit
(
1
);
}
// cloned particles
const
std
::
vector
<
std
::
string
>
cloneParticle
=
theParser
->
cloneParticle
();
std
::
vector
<
std
::
string
>::
const_iterator
itcP
;
for
(
itcP
=
cloneParticle
.
begin
();
itcP
!=
cloneParticle
.
end
();
++
itcP
){
std
::
istringstream
particles
(
*
itcP
);
std
::
string
particleOld
;
std
::
string
particleNew
;
particles
>>
particleOld
>>
particleNew
;
_particleTable
->
clone
(
particleNew
,
particleOld
);
}
//final state particles
const
std
::
vector
<
std
::
string
>
finalStateParticleStr
=
theParser
->
finalStateParticles
();
...
...
This diff is collapsed.
Click to expand it.
PwaUtils/ParserBase.cc
+
5
−
0
View file @
e1472e4b
...
...
@@ -68,6 +68,7 @@ ParserBase::ParserBase(int argc,char **argv)
(
"replaceParamSuffix"
,
po
::
value
<
vector
<
string
>
>
(
&
_replaceParSuffix
),
"replace suffix for fit parameter name"
)
(
"replaceMassKey"
,
po
::
value
<
vector
<
string
>
>
(
&
_replaceMassKey
),
"replace Key for the fit parameter of the mass"
)
(
"production"
,
po
::
value
<
vector
<
string
>
>
(
&
_productionSystem
),
"pair of produced particles"
)
(
"cloneParticle"
,
po
::
value
<
vector
<
string
>
>
(
&
_cloneParticle
),
"particles to be cloned"
)
;
...
...
@@ -157,6 +158,10 @@ bool ParserBase::parseCommandLine(int argc, char **argv)
std
::
vector
<
std
::
string
>::
const_iterator
it
;
for
(
it
=
_cloneParticle
.
begin
();
it
!=
_cloneParticle
.
end
();
++
it
){
std
::
cout
<<
"clone particles: "
<<
(
*
it
)
<<
"
\n
"
;
}
for
(
it
=
_enabledHyps
.
begin
();
it
!=
_enabledHyps
.
end
();
++
it
){
std
::
cout
<<
"hypothesis
\t
"
<<
(
*
it
)
<<
"
\t
enabled
\n
"
;
}
...
...
This diff is collapsed.
Click to expand it.
PwaUtils/ParserBase.hh
+
2
−
0
View file @
e1472e4b
...
...
@@ -57,6 +57,7 @@ public:
const
std
::
vector
<
std
::
string
>&
replaceMassKey
()
const
{
return
_replaceMassKey
;
}
const
std
::
vector
<
std
::
string
>&
decayDynamics
()
const
{
return
_dynamics
;}
const
std
::
vector
<
std
::
string
>&
productionSystem
()
const
{
return
_productionSystem
;
}
const
std
::
vector
<
std
::
string
>&
cloneParticle
()
const
{
return
_cloneParticle
;
}
protected
:
virtual
bool
parseCommandLine
(
int
argc
,
char
**
argv
);
...
...
@@ -87,4 +88,5 @@ protected:
std
::
vector
<
std
::
string
>
_replaceParSuffix
;
std
::
vector
<
std
::
string
>
_replaceMassKey
;
std
::
vector
<
std
::
string
>
_productionSystem
;
std
::
vector
<
std
::
string
>
_cloneParticle
;
};
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