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
f82886e9
Commit
f82886e9
authored
Jun 01, 2021
by
Paul Jean Schutze
Browse files
Merge branch 'efficiency_vs_time' into 'master'
Efficiency vs time See merge request
corryvreckan/corryvreckan!431
parents
9e16026a
053f4dfe
Pipeline
#2675029
passed with stages
in 30 minutes and 29 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/modules/AnalysisEfficiency/AnalysisEfficiency.cpp
View file @
f82886e9
...
...
@@ -169,6 +169,7 @@ void AnalysisEfficiency::initialize() {
m_detector
->
nPixels
().
Y
(),
-
0.5
,
m_detector
->
nPixels
().
Y
()
-
0.5
);
efficiencyVsTime
=
new
TEfficiency
(
"efficiencyVsTime"
,
"Efficiency vs. time; time [s]; #epsilon"
,
3000
,
0
,
3000
);
hTrackTimeToPrevHit_matched
=
new
TH1D
(
"trackTimeToPrevHit_matched"
,
"trackTimeToPrevHit_matched;time to prev hit [us];# events"
,
1e6
,
0
,
1e6
);
...
...
@@ -368,6 +369,7 @@ StatusCode AnalysisEfficiency::run(const std::shared_ptr<Clipboard>& clipboard)
eTotalEfficiency
->
Fill
(
has_associated_cluster
,
0
);
// use 0th bin for total efficiency
efficiencyColumns
->
Fill
(
has_associated_cluster
,
m_detector
->
getColumn
(
localIntercept
));
efficiencyRows
->
Fill
(
has_associated_cluster
,
m_detector
->
getRow
(
localIntercept
));
efficiencyVsTime
->
Fill
(
has_associated_cluster
,
track
->
timestamp
()
/
1e9
);
// convert nanoseconds to seconds
}
auto
intercept_col
=
static_cast
<
size_t
>
(
m_detector
->
getColumn
(
localIntercept
));
...
...
src/modules/AnalysisEfficiency/AnalysisEfficiency.h
View file @
f82886e9
...
...
@@ -61,6 +61,7 @@ namespace corryvreckan {
TEfficiency
*
eTotalEfficiency
;
TEfficiency
*
efficiencyColumns
;
TEfficiency
*
efficiencyRows
;
TEfficiency
*
efficiencyVsTime
;
TH1D
*
hDistanceCluster
;
TH1D
*
hTimeDiffPrevTrack_assocCluster
;
...
...
src/modules/AnalysisEfficiency/README.md
View file @
f82886e9
...
...
@@ -40,7 +40,7 @@ For the DUT, the following plots are produced:
*
Other:
*
Value of total efficiency as
`TEfficiency`
including (asymmetric) error bars
*
Efficiency as function of column and row
*
Efficiency as function of column and row
, and vs. time
### Usage
...
...
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