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
8f957927
Commit
8f957927
authored
Nov 05, 2017
by
Simon Spannagel
Browse files
Merge branch 'master' of
ssh://gitlab.cern.ch:7999/dhynds/corryvreckan
parents
7e43fc52
09402f5c
Pipeline
#230330
passed with stage
in 1 minute and 49 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/algorithms/Timepix3Clustering.cpp
View file @
8f957927
...
...
@@ -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 @
8f957927
...
...
@@ -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