Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
bc4357b2
Commit
bc4357b2
authored
Oct 19, 2015
by
Daniel Hynds
Browse files
updated track degrees of freedom and added histograms of chi2/ndof
Former-commit-id: 5731cf706b06ab1a587e423c7e0763982e64d103
parent
0dc0d0be
Changes
3
Hide whitespace changes
Inline
Side-by-side
branches/trunk/algorithms/BasicTracking.C
View file @
bc4357b2
...
...
@@ -13,6 +13,8 @@ void BasicTracking::initialise(Parameters* par){
// Set up histograms
trackChi2
=
new
TH1F
(
"trackChi2"
,
"trackChi2"
,
150
,
0
,
150
);
trackChi2ndof
=
new
TH1F
(
"trackChi2ndof"
,
"trackChi2ndof"
,
100
,
0
,
50
);
clustersPerTrack
=
new
TH1F
(
"clustersPerTrack"
,
"clustersPerTrack"
,
10
,
0
,
10
);
tracksPerEvent
=
new
TH1F
(
"tracksPerEvent"
,
"tracksPerEvent"
,
100
,
0
,
100
);
// Loop over all Timepix3
...
...
@@ -27,7 +29,7 @@ void BasicTracking::initialise(Parameters* par){
}
// Default values for cuts
timinigCut
=
200
.
/
1000000000
.;
//
1
0 ns
timinigCut
=
200
.
/
1000000000
.;
//
20
0 ns
spatialCut
=
0
.
2
;
// 200 um
minHitsOnTrack
=
6
;
...
...
@@ -123,6 +125,8 @@ int BasicTracking::run(Clipboard* clipboard){
// Fill histograms
trackChi2
->
Fill
(
track
->
chi2
());
clustersPerTrack
->
Fill
(
track
->
nClusters
());
trackChi2ndof
->
Fill
(
track
->
chi2ndof
());
// Make residuals
Timepix3Clusters
trackClusters
=
track
->
clusters
();
...
...
branches/trunk/algorithms/BasicTracking.h
View file @
bc4357b2
...
...
@@ -29,6 +29,8 @@ public:
// Histograms
TH1F
*
trackChi2
;
TH1F
*
clustersPerTrack
;
TH1F
*
trackChi2ndof
;
TH1F
*
tracksPerEvent
;
map
<
string
,
TH1F
*>
residualsX
;
map
<
string
,
TH1F
*>
residualsY
;
...
...
branches/trunk/objs/Timepix3Track.h
View file @
bc4357b2
...
...
@@ -104,7 +104,7 @@ public:
void
calculateChi2
(){
int
nClusters
=
m_clusters
.
size
();
m_ndof
=
2.
*
nClusters
-
4
.
;
m_ndof
=
nClusters
-
2
.
;
m_chi2
=
0.
;
m_chi2ndof
=
0.
;
// Loop over all clusters
for
(
int
iCluster
=
0
;
iCluster
<
nClusters
;
iCluster
++
){
...
...
Write
Preview
Supports
Markdown
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