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
f4189bcf
Commit
f4189bcf
authored
10 years ago
by
Bertram Kopf
Browse files
Options
Downloads
Patches
Plain Diff
remove memory leak in AbsLh
parent
6291e800
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
FitParams/MnPawianParameters.cc
+0
-1
0 additions, 1 deletion
FitParams/MnPawianParameters.cc
PwaUtils/AbsLh.cc
+4
-4
4 additions, 4 deletions
PwaUtils/AbsLh.cc
with
4 additions
and
5 deletions
FitParams/MnPawianParameters.cc
+
0
−
1
View file @
f4189bcf
...
@@ -54,7 +54,6 @@ AbsPawianParameters* MnPawianParameters::Clone(){
...
@@ -54,7 +54,6 @@ AbsPawianParameters* MnPawianParameters::Clone(){
return
result
;
return
result
;
}
}
const
std
::
vector
<
std
::
string
>
MnPawianParameters
::
ParamNames
(){
const
std
::
vector
<
std
::
string
>
MnPawianParameters
::
ParamNames
(){
const
std
::
vector
<
MinuitParameter
>
theParams
=
_mnUserParameters
.
Parameters
();
const
std
::
vector
<
MinuitParameter
>
theParams
=
_mnUserParameters
.
Parameters
();
std
::
vector
<
std
::
string
>
parNames
;
std
::
vector
<
std
::
string
>
parNames
;
...
...
This diff is collapsed.
Click to expand it.
PwaUtils/AbsLh.cc
+
4
−
4
View file @
f4189bcf
...
@@ -150,9 +150,8 @@ double AbsLh::calcLogLh(std::shared_ptr<AbsPawianParameters> fitPar){
...
@@ -150,9 +150,8 @@ double AbsLh::calcLogLh(std::shared_ptr<AbsPawianParameters> fitPar){
theLHData
.
num_mc
+=
(
*
it
).
num_mc
;
theLHData
.
num_mc
+=
(
*
it
).
num_mc
;
}
}
// theLHData.num_mc = _evtMCVec.size();
if
(
_calcCounter
<
2
)
_oldFitPar
=
std
::
shared_ptr
<
AbsPawianParameters
>
(
fitPar
->
Clone
());
_oldFitPar
=
std
::
shared_ptr
<
AbsPawianParameters
>
(
fitPar
->
Clone
());
else
_oldFitPar
->
SetAllValues
(
fitPar
->
Params
());
return
mergeLogLhData
(
theLHData
);
return
mergeLogLhData
(
theLHData
);
}
}
...
@@ -217,7 +216,8 @@ void AbsLh::calcLogLhDataClient(std::shared_ptr<AbsPawianParameters> fitPar, LHD
...
@@ -217,7 +216,8 @@ void AbsLh::calcLogLhDataClient(std::shared_ptr<AbsPawianParameters> fitPar, LHD
theLHData
.
num_mc
+=
(
*
it
).
num_mc
;
theLHData
.
num_mc
+=
(
*
it
).
num_mc
;
}
}
_oldFitPar
=
std
::
shared_ptr
<
AbsPawianParameters
>
(
fitPar
->
Clone
());
if
(
_calcCounter
<
2
)
_oldFitPar
=
std
::
shared_ptr
<
AbsPawianParameters
>
(
fitPar
->
Clone
());
else
_oldFitPar
->
SetAllValues
(
fitPar
->
Params
());
}
}
double
AbsLh
::
mergeLogLhData
(
LHData
&
theLHData
){
double
AbsLh
::
mergeLogLhData
(
LHData
&
theLHData
){
...
...
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