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
bf2dfd5d
Commit
bf2dfd5d
authored
13 years ago
by
Bertram Kopf
Browse files
Options
Downloads
Patches
Plain Diff
few modufications in PwaFcnBase
parent
c65b38f8
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
PwaUtils/PwaFcnBase.cc
+4
-5
4 additions, 5 deletions
PwaUtils/PwaFcnBase.cc
PwaUtils/PwaFcnBase.hh
+1
-1
1 addition, 1 deletion
PwaUtils/PwaFcnBase.hh
with
5 additions
and
6 deletions
PwaUtils/PwaFcnBase.cc
+
4
−
5
View file @
bf2dfd5d
...
...
@@ -16,7 +16,7 @@ using namespace ROOT::Minuit2;
PwaFcnBase
::
PwaFcnBase
(
boost
::
shared_ptr
<
AbsLh
>
absLh
,
boost
::
shared_ptr
<
FitParamsBase
>
fitParamsBase
)
:
_absLhPtr
(
absLh
)
,
_fitParamsBasePtr
(
fitParamsBase
)
,
_fcnCounter
(
new
unsigned
int
(
0
)
)
,
_fcnCounter
(
0
)
{
if
(
0
==
_absLhPtr
)
{
Alert
<<
"AbsLh* _absLhPtr pointer is 0 !!!!"
<<
endmsg
;
exit
(
1
);
}
...
...
@@ -24,12 +24,11 @@ PwaFcnBase::PwaFcnBase(boost::shared_ptr<AbsLh> absLh, boost::shared_ptr<FitPara
PwaFcnBase
::~
PwaFcnBase
()
{
delete
_fcnCounter
;
}
double
PwaFcnBase
::
operator
()(
const
std
::
vector
<
double
>&
par
)
const
{
(
*
_fcnCounter
)
++
;
_fcnCounter
++
;
fitParams
theFitParmValTmp
=
_fitParamsBasePtr
->
getFitParamVal
(
par
);
...
...
@@ -37,11 +36,11 @@ double PwaFcnBase::operator()(const std::vector<double>& par) const
DebugMsg
<<
"logLh= "
<<
result
<<
endmsg
;
if
(
(
*
_fcnCounter
)
%
1
0
==
0
)
{
if
(
_fcnCounter
%
5
0
==
0
)
{
_fitParamsBasePtr
->
printParams
(
theFitParmValTmp
);
}
if
(
(
*
_fcnCounter
)
%
1
00
==
0
)
{
if
(
_fcnCounter
%
2
00
==
0
)
{
std
::
ofstream
theStream
(
"currentResult.dat"
);
_fitParamsBasePtr
->
dumpParams
(
theStream
,
theFitParmValTmp
,
theFitParmValTmp
);
}
...
...
This diff is collapsed.
Click to expand it.
PwaUtils/PwaFcnBase.hh
+
1
−
1
View file @
bf2dfd5d
...
...
@@ -33,7 +33,7 @@ public:
private:
boost
::
shared_ptr
<
AbsLh
>
_absLhPtr
;
boost
::
shared_ptr
<
FitParamsBase
>
_fitParamsBasePtr
;
unsigned
int
*
_fcnCounter
;
mutable
unsigned
int
_fcnCounter
;
};
}
// namespace Minuit2
...
...
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