Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
ac2abbf0
Commit
ac2abbf0
authored
Nov 19, 2020
by
Lennart Huth
Browse files
corrected the ndofs for the straight line fit
parent
1af43b5d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/objects/Multiplet.cpp
View file @
ac2abbf0
...
...
@@ -34,7 +34,7 @@ ROOT::Math::XYPoint Multiplet::getKinkAt(const std::string&) const {
void
Multiplet
::
calculateChi2
()
{
chi2_
=
m_upstream
->
getChi2
()
+
m_downstream
->
getChi2
()
+
sqrt
(
m_offsetAtScatterer
.
Dot
(
m_offsetAtScatterer
));
ndof_
=
static_cast
<
double
>
(
track_clusters_
.
size
())
-
4.
;
ndof_
=
m_upstream
->
getNdof
()
+
m_downstream
->
getNdof
()
;
chi2ndof_
=
chi2_
/
ndof_
;
}
...
...
src/objects/StraightLineTrack.cpp
View file @
ac2abbf0
...
...
@@ -36,8 +36,7 @@ ROOT::Math::XYPoint StraightLineTrack::getKinkAt(const std::string&) const {
void
StraightLineTrack
::
calculateChi2
()
{
// Get the number of clusters
ndof_
=
static_cast
<
double
>
(
track_clusters_
.
size
())
-
2.
;
ndof_
=
(
static_cast
<
double
>
(
track_clusters_
.
size
())
-
2.
)
*
2.
;
chi2_
=
0.
;
chi2ndof_
=
0.
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment