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
1ff51b3d
Commit
1ff51b3d
authored
Apr 05, 2019
by
Morag Jean Williams
Browse files
Adding hitmaps to the Timepix3 event loader.
parent
085f090d
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/modules/EventLoaderTimepix3/EventLoaderTimepix3.cpp
View file @
1ff51b3d
...
...
@@ -199,6 +199,16 @@ void EventLoaderTimepix3::initialise() {
LOG
(
INFO
)
<<
"No calibration file path or no DUT name given; data will be uncalibrated."
;
applyCalibration
=
false
;
}
// Make debugging plots
std
::
string
title
=
m_detector
->
name
()
+
" Hit map;x [px];y [px];pixels"
;
hHitMap
=
new
TH2F
(
"hitMap"
,
title
.
c_str
(),
m_detector
->
nPixels
().
X
(),
0
,
m_detector
->
nPixels
().
X
(),
m_detector
->
nPixels
().
Y
(),
0
,
m_detector
->
nPixels
().
Y
());
}
StatusCode
EventLoaderTimepix3
::
run
(
std
::
shared_ptr
<
Clipboard
>
clipboard
)
{
...
...
@@ -606,6 +616,7 @@ bool EventLoaderTimepix3::loadData(std::shared_ptr<Clipboard> clipboard, Pixels*
Pixel
*
pixel
=
new
Pixel
(
detectorID
,
row
,
col
,
static_cast
<
int
>
(
tot
),
ftimestamp
);
pixel
->
setCharge
(
fcharge
);
devicedata
->
push_back
(
pixel
);
hHitMap
->
Fill
(
col
,
row
);
LOG
(
DEBUG
)
<<
"Pixel Charge = "
<<
fcharge
<<
"; ToT value = "
<<
tot
;
pixelToT_aftercalibration
->
Fill
(
fcharge
);
}
else
{
...
...
@@ -613,6 +624,7 @@ bool EventLoaderTimepix3::loadData(std::shared_ptr<Clipboard> clipboard, Pixels*
// creating new pixel object with non-calibrated values of tot and toa
Pixel
*
pixel
=
new
Pixel
(
detectorID
,
row
,
col
,
static_cast
<
int
>
(
tot
),
timestamp
);
devicedata
->
push_back
(
pixel
);
hHitMap
->
Fill
(
col
,
row
);
}
m_prevTime
=
time
;
...
...
src/modules/EventLoaderTimepix3/EventLoaderTimepix3.h
View file @
1ff51b3d
...
...
@@ -27,6 +27,7 @@ namespace corryvreckan {
std
::
shared_ptr
<
Detector
>
m_detector
;
// ROOT graphs
TH2F
*
hHitMap
;
TH1F
*
pixelToT_beforecalibration
;
TH1F
*
pixelToT_aftercalibration
;
TH2F
*
pixelTOTParameterA
;
...
...
src/modules/EventLoaderTimepix3/README.md
View file @
1ff51b3d
...
...
@@ -23,6 +23,7 @@ This module requires either another event loader of another detector type before
*
`threshold`
: String defining the
`[threshold]`
DAC value for loading the appropriate calibration file, See above.
### Plots produced
*
2D map of pixel hits
*
Histogram with pixel ToT before and after calibration
*
Map for each calibration parameter if calibration is used
...
...
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