Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
BAORadio
AnaPAON4
Commits
9bdfb8d0
Commit
9bdfb8d0
authored
Mar 14, 2019
by
Reza ANSARI
Browse files
Ajout protection pour eviter plantage (core dump) si fit croos cor pas fait, Olivier+Reza
parent
324ad559
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
trkacxfit.cc
trkacxfit.cc
+5
-3
trkfit.cc
trkfit.cc
+4
-1
No files found.
trkacxfit.cc
View file @
9bdfb8d0
...
...
@@ -154,7 +154,7 @@ int main (int narg, char* arg[])
}
CxBaselineFitter
cxbfit
(
v_acxd
,
v_trk
);
if
(
do_baselinefit
||
do_baselinesimplex
)
{
// fit simultane des 6 cross-cor
if
(
do_baselinefit
||
do_baselinesimplex
)
{
// fit simultane des 6 cross-cor
int
fgfixb
=
0
;
if
(
fg_fixbaseline
)
fgfixb
=
2
;
else
if
(
fg_fix_xy
)
fgfixb
=
1
;
...
...
@@ -201,8 +201,10 @@ int main (int narg, char* arg[])
cout
<<
"=================================================================================="
<<
endl
;
ofs
<<
"=================================================================================="
<<
endl
;
}
cout
<<
" ---------- Summary 6 cross-correlations baseline fitting ---------- "
<<
endl
;
cxbfit
.
PrintFitSummary
(
ofs
);
if
(
do_baselinefit
)
{
cout
<<
" ---------- Summary 6 cross-correlations baseline fitting ---------- "
<<
endl
;
cxbfit
.
PrintFitSummary
(
ofs
);
}
}
// End of try bloc
catch
(
PThrowable
&
exc
)
{
...
...
trkfit.cc
View file @
9bdfb8d0
...
...
@@ -967,7 +967,10 @@ CxBaselineFitter::CxBaselineFitter(vector<AcxDataSet> & v_data, vector<TrackSet>
bestfitparam
=
new
double
[
nparam
];
err_bestfitparam
=
new
double
[
nparam
];
initFitParams
();
if
(
v_acxd
[
0
].
v_phase
.
size
()
<
1
)
{
cout
<<
" CxBaselineFitter::CxBaselineFitter(v_data, v_tks) /Warning : .v_phase.size()=0 , CxFit not done, cant call initFitParams()"
<<
endl
;
}
else
initFitParams
();
}
CxBaselineFitter
::~
CxBaselineFitter
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment