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
09402f5c
Commit
09402f5c
authored
Nov 03, 2017
by
Daniel Hynds
Browse files
added cluster width histograms
parent
ef33f246
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/algorithms/Timepix3Clustering.cpp
View file @
09402f5c
...
...
@@ -15,6 +15,10 @@ void Timepix3Clustering::initialise() {
// Cluster plots
string
name
=
"clusterSize_"
+
detector
->
name
();
clusterSize
[
detector
->
name
()]
=
new
TH1F
(
name
.
c_str
(),
name
.
c_str
(),
25
,
0
,
25
);
name
=
"clusterWidthRow_"
+
detector
->
name
();
clusterWidthRow
[
detector
->
name
()]
=
new
TH1F
(
name
.
c_str
(),
name
.
c_str
(),
25
,
0
,
25
);
name
=
"clusterWidthColumn_"
+
detector
->
name
();
clusterWidthColumn
[
detector
->
name
()]
=
new
TH1F
(
name
.
c_str
(),
name
.
c_str
(),
25
,
0
,
25
);
name
=
"clusterTot_"
+
detector
->
name
();
clusterTot
[
detector
->
name
()]
=
new
TH1F
(
name
.
c_str
(),
name
.
c_str
(),
200
,
0
,
1000
);
name
=
"clusterPositionGlobal_"
+
detector
->
name
();
...
...
@@ -124,6 +128,8 @@ StatusCode Timepix3Clustering::run(Clipboard* clipboard) {
for
(
auto
&
cluster
:
(
*
clusters
))
{
// Fill cluster histograms
clusterSize
[
detector
->
name
()]
->
Fill
(
cluster
->
size
());
clusterWidthRow
[
detector
->
name
()]
->
Fill
(
cluster
->
rowWidth
());
clusterWidthColumn
[
detector
->
name
()]
->
Fill
(
cluster
->
columnWidth
());
clusterTot
[
detector
->
name
()]
->
Fill
(
cluster
->
tot
());
clusterPositionGlobal
[
detector
->
name
()]
->
Fill
(
cluster
->
globalX
(),
cluster
->
globalY
());
}
...
...
src/algorithms/Timepix3Clustering.h
View file @
09402f5c
...
...
@@ -27,6 +27,8 @@ namespace corryvreckan {
// Cluster histograms
std
::
map
<
std
::
string
,
TH1F
*>
clusterSize
;
std
::
map
<
std
::
string
,
TH1F
*>
clusterWidthRow
;
std
::
map
<
std
::
string
,
TH1F
*>
clusterWidthColumn
;
std
::
map
<
std
::
string
,
TH1F
*>
clusterTot
;
std
::
map
<
std
::
string
,
TH2F
*>
clusterPositionGlobal
;
...
...
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