Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
16e2a4b9
Commit
16e2a4b9
authored
Dec 05, 2017
by
Simon Spannagel
Browse files
ATLASpix: convert time to nanoseconds
parent
371a6979
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/algorithms/ATLASpixEventLoader/ATLASpixEventLoader.cpp
View file @
16e2a4b9
...
...
@@ -12,7 +12,6 @@ ATLASpixEventLoader::ATLASpixEventLoader(Configuration config, std::vector<Detec
m_inputDirectory
=
m_config
.
get
<
std
::
string
>
(
"inputDirectory"
);
m_calibrationFile
=
m_config
.
get
<
std
::
string
>
(
"calibrationFile"
);
m_eventLength
=
m_config
.
get
<
double
>
(
"eventLength"
,
0.000010
);
m_startTime
-
m_config
.
get
<
double
>
(
"startTime"
,
0.
);
m_toaMode
=
m_config
.
get
<
bool
>
(
"toaMode"
,
false
);
...
...
@@ -158,6 +157,9 @@ StatusCode ATLASpixEventLoader::run(Clipboard* clipboard) {
toa
-=
corr
*
(
4096.
*
40000000.
);
}
// Convert TOA to nanoseconds:
toa
/=
(
4096.
*
0.04
.);
Pixel
*
pixel
=
new
Pixel
(
detectorID
,
row
,
col
,
cal_tot
,
toa
);
pixels
->
push_back
(
pixel
);
hHitMap
->
Fill
(
col
,
row
);
...
...
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