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
f99722ba
Commit
f99722ba
authored
12 years ago
by
Bertram Kopf
Browse files
Options
Downloads
Patches
Plain Diff
added suffix for current result file in PwaFcnBaseNew
parent
7a46061e
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Examples/JpsiGamEtaPiPiNew/MJpsiGamEtaPiPiNewApp.cc
+1
-1
1 addition, 1 deletion
Examples/JpsiGamEtaPiPiNew/MJpsiGamEtaPiPiNewApp.cc
PwaUtils/PwaFcnBaseNew.cc
+3
-2
3 additions, 2 deletions
PwaUtils/PwaFcnBaseNew.cc
PwaUtils/PwaFcnBaseNew.hh
+3
-1
3 additions, 1 deletion
PwaUtils/PwaFcnBaseNew.hh
with
7 additions
and
4 deletions
Examples/JpsiGamEtaPiPiNew/MJpsiGamEtaPiPiNewApp.cc
+
1
−
1
View file @
f99722ba
...
...
@@ -233,7 +233,7 @@ int main(int __argc,char *__argv[]){
}
if
(
mode
==
"pwa"
){
PwaFcnBaseNew
theFcn
(
theLhPtr
,
theFitParamBase
);
PwaFcnBaseNew
theFcn
(
theLhPtr
,
theFitParamBase
,
jobOption
);
MnUserParameters
upar
;
theFitParamBase
->
setMnUsrParams
(
upar
,
theStartparams
,
theErrorparams
);
...
...
This diff is collapsed.
Click to expand it.
PwaUtils/PwaFcnBaseNew.cc
+
3
−
2
View file @
f99722ba
...
...
@@ -17,10 +17,11 @@
using
namespace
ROOT
::
Minuit2
;
PwaFcnBaseNew
::
PwaFcnBaseNew
(
boost
::
shared_ptr
<
AbsLhNew
>
absLh
,
boost
::
shared_ptr
<
FitParamsBaseNew
>
fitParamsBase
)
:
PwaFcnBaseNew
::
PwaFcnBaseNew
(
boost
::
shared_ptr
<
AbsLhNew
>
absLh
,
boost
::
shared_ptr
<
FitParamsBaseNew
>
fitParamsBase
,
std
::
string
suffix
)
:
_absLhPtr
(
absLh
)
,
_fitParamsBasePtr
(
fitParamsBase
)
,
_fcnCounter
(
0
)
,
_currentResFileName
(
"currentResult"
+
suffix
+
".dat"
)
{
if
(
0
==
_absLhPtr
)
{
Alert
<<
"AbsLh* _absLhPtr pointer is 0 !!!!"
<<
endmsg
;
exit
(
1
);
}
_absLhPtr
->
getDefaultParams
(
_defaultFitValParms
,
_defaultFitErrParms
);
...
...
@@ -64,7 +65,7 @@ double PwaFcnBaseNew::operator()(const std::vector<double>& par) const
}
if
(
_fcnCounter
%
200
==
0
)
{
std
::
ofstream
theStream
(
"
currentRes
ult.dat"
);
std
::
ofstream
theStream
(
_
currentRes
FileName
.
c_str
()
);
_fitParamsBasePtr
->
dumpParams
(
theStream
,
theFitParmValTmp
,
theFitParmValTmp
);
}
...
...
This diff is collapsed.
Click to expand it.
PwaUtils/PwaFcnBaseNew.hh
+
3
−
1
View file @
f99722ba
...
...
@@ -3,6 +3,7 @@
#include
<iostream>
#include
<fstream>
#include
<vector>
#include
<string>
#include
<boost/shared_ptr.hpp>
#include
"Minuit2/FCNBase.h"
...
...
@@ -19,7 +20,7 @@ namespace ROOT {
public:
PwaFcnBaseNew
(
boost
::
shared_ptr
<
AbsLhNew
>
absLh
,
boost
::
shared_ptr
<
FitParamsBaseNew
>
fitParamsBase
);
boost
::
shared_ptr
<
FitParamsBaseNew
>
fitParamsBase
,
std
::
string
suffix
=
""
);
virtual
~
PwaFcnBaseNew
();
double
operator
()(
const
std
::
vector
<
double
>&
par
)
const
;
...
...
@@ -31,6 +32,7 @@ namespace ROOT {
mutable
unsigned
int
_fcnCounter
;
fitParamsNew
_defaultFitValParms
;
fitParamsNew
_defaultFitErrParms
;
std
::
string
_currentResFileName
;
};
}
// namespace Minuit2
}
// namespace ROOT
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