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
df16bd94
Commit
df16bd94
authored
Jun 17, 2021
by
Jens Kroeger
Browse files
AnalysisEfficiency: add new plots for efficiency within in-pixel ROI
parent
6ca4e877
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/modules/AnalysisEfficiency/AnalysisEfficiency.cpp
View file @
df16bd94
...
...
@@ -74,6 +74,19 @@ void AnalysisEfficiency::initialize() {
-
pitch_y
/
2.
,
pitch_y
/
2.
);
title
=
m_detector
->
getName
()
+
" Pixel efficiency map (in-pixel ROI);in-pixel x_{track} [#mum];in-pixel y_{track} #mum;#epsilon"
;
hPixelEfficiencyMap_inPixelROI_trackPos_TProfile
=
new
TProfile2D
(
"pixelEfficiencyMap_inPixelROI_trackPos_TProfile"
,
title
.
c_str
(),
nbins_x
,
-
pitch_x
/
2.
,
pitch_x
/
2.
,
nbins_y
,
-
pitch_y
/
2.
,
pitch_y
/
2.
,
0
,
1
);
title
=
m_detector
->
getName
()
+
" Chip efficiency map;x [px];y [px];#epsilon"
;
hChipEfficiencyMap_trackPos_TProfile
=
new
TProfile2D
(
"chipEfficiencyMap_trackPos_TProfile"
,
title
.
c_str
(),
...
...
@@ -180,6 +193,8 @@ void AnalysisEfficiency::initialize() {
-
1.5
*
m_detector
->
getPitch
().
y
(),
1.5
*
m_detector
->
getPitch
().
y
());
eTotalEfficiency
=
new
TEfficiency
(
"eTotalEfficiency"
,
"totalEfficiency;;#epsilon"
,
1
,
0
,
1
);
eTotalEfficiency_inPixelROI
=
new
TEfficiency
(
"eTotalEfficiency_inPixelROI"
,
"eTotalEfficiency_inPixelROI;;#epsilon (within in-pixel ROI)"
,
1
,
0
,
1
);
efficiencyColumns
=
new
TEfficiency
(
"efficiencyColumns"
,
"Efficiency vs. column number; column; #epsilon"
,
...
...
@@ -411,6 +426,11 @@ StatusCode AnalysisEfficiency::run(const std::shared_ptr<Clipboard>& clipboard)
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
if
(
isWithinInPixelROI
)
{
hPixelEfficiencyMap_inPixelROI_trackPos_TProfile
->
Fill
(
xmod
,
ymod
,
has_associated_cluster
);
eTotalEfficiency_inPixelROI
->
Fill
(
has_associated_cluster
,
0
);
// use 0th bin for total efficiency
}
}
auto
intercept_col
=
static_cast
<
size_t
>
(
m_detector
->
getColumn
(
localIntercept
));
...
...
src/modules/AnalysisEfficiency/AnalysisEfficiency.h
View file @
df16bd94
...
...
@@ -48,6 +48,7 @@ namespace corryvreckan {
// Profile version
TProfile2D
*
hPixelEfficiencyMap_trackPos_TProfile
;
TProfile2D
*
hPixelEfficiencyMap_inPixelROI_trackPos_TProfile
;
TProfile2D
*
hChipEfficiencyMap_trackPos_TProfile
;
TProfile2D
*
hPixelEfficiencyMatrix_TProfile
;
TProfile2D
*
hGlobalEfficiencyMap_trackPos_TProfile
;
...
...
@@ -61,6 +62,7 @@ namespace corryvreckan {
TEfficiency
*
hGlobalEfficiencyMap_clustPos
;
TEfficiency
*
eTotalEfficiency
;
TEfficiency
*
eTotalEfficiency_inPixelROI
;
TEfficiency
*
efficiencyColumns
;
TEfficiency
*
efficiencyRows
;
TEfficiency
*
efficiencyVsTime
;
...
...
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