Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
a75e9266
Commit
a75e9266
authored
Apr 23, 2021
by
Jens Kroeger
Browse files
AnalysisDUT: correctly fill histograms (seed px time instead of cluster time)
parent
64bf9f71
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/modules/AnalysisDUT/AnalysisDUT.cpp
View file @
a75e9266
...
...
@@ -679,23 +679,27 @@ StatusCode AnalysisDUT::run(const std::shared_ptr<Clipboard>& clipboard) {
if
(
px
==
assoc_cluster
->
getSeedPixel
())
{
continue
;
// don't fill this histogram for seed pixel!
}
pxTimeMinusSeedTime
->
Fill
(
static_cast
<
double
>
(
Units
::
convert
(
px
->
timestamp
()
-
assoc_cluster
->
timestamp
(),
"ns"
)));
pxTimeMinusSeedTime
->
Fill
(
static_cast
<
double
>
(
Units
::
convert
(
px
->
timestamp
()
-
assoc_cluster
->
getSeedPixel
()
->
timestamp
(),
"ns"
)));
pxTimeMinusSeedTime_vs_pxCharge
->
Fill
(
static_cast
<
double
>
(
Units
::
convert
(
px
->
timestamp
()
-
assoc_cluster
->
timestamp
(),
"ns"
)),
static_cast
<
double
>
(
Units
::
convert
(
px
->
timestamp
()
-
assoc_cluster
->
getSeedPixel
()
->
timestamp
(),
"ns"
)),
px
->
charge
());
if
(
assoc_cluster
->
size
()
==
2
)
{
pxTimeMinusSeedTime_vs_pxCharge_2px
->
Fill
(
static_cast
<
double
>
(
Units
::
convert
(
px
->
timestamp
()
-
assoc_cluster
->
timestamp
(),
"ns"
)),
static_cast
<
double
>
(
Units
::
convert
(
px
->
timestamp
()
-
assoc_cluster
->
getSeedPixel
()
->
timestamp
(),
"ns"
)),
px
->
charge
());
}
else
if
(
assoc_cluster
->
size
()
==
3
)
{
pxTimeMinusSeedTime_vs_pxCharge_3px
->
Fill
(
static_cast
<
double
>
(
Units
::
convert
(
px
->
timestamp
()
-
assoc_cluster
->
timestamp
(),
"ns"
)),
static_cast
<
double
>
(
Units
::
convert
(
px
->
timestamp
()
-
assoc_cluster
->
getSeedPixel
()
->
timestamp
(),
"ns"
)),
px
->
charge
());
}
else
if
(
assoc_cluster
->
size
()
==
4
)
{
pxTimeMinusSeedTime_vs_pxCharge_4px
->
Fill
(
static_cast
<
double
>
(
Units
::
convert
(
px
->
timestamp
()
-
assoc_cluster
->
timestamp
(),
"ns"
)),
static_cast
<
double
>
(
Units
::
convert
(
px
->
timestamp
()
-
assoc_cluster
->
getSeedPixel
()
->
timestamp
(),
"ns"
)),
px
->
charge
());
}
}
...
...
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