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
512edc0d
Commit
512edc0d
authored
May 14, 2019
by
Jens Kroeger
Browse files
AnalysisEfficiency: changed calculation of nbins_x/y into base units
parent
63a582d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/modules/AnalysisEfficiency/AnalysisEfficiency.cpp
View file @
512edc0d
...
...
@@ -30,8 +30,8 @@ void AnalysisEfficiency::initialise() {
auto
pitch_x
=
static_cast
<
double
>
(
Units
::
convert
(
m_detector
->
pitch
().
X
(),
"um"
));
auto
pitch_y
=
static_cast
<
double
>
(
Units
::
convert
(
m_detector
->
pitch
().
Y
(),
"um"
));
auto
nbins_x
=
static_cast
<
int
>
(
std
::
ceil
(
pitch_x
/
Units
::
convert
(
m_inpixelBinSize
,
"um"
)
));
auto
nbins_y
=
static_cast
<
int
>
(
std
::
ceil
(
pitch_y
/
Units
::
convert
(
m_inpixelBinSize
,
"um"
)
));
auto
nbins_x
=
static_cast
<
int
>
(
std
::
ceil
(
m_detector
->
pitch
().
X
()
/
m_inpixelBinSize
));
auto
nbins_y
=
static_cast
<
int
>
(
std
::
ceil
(
m_detector
->
pitch
().
Y
()
/
m_inpixelBinSize
));
if
(
nbins_x
>
1e4
||
nbins_y
>
1e4
)
{
throw
InvalidValueError
(
m_config
,
"inpixel_bin_size"
,
"Too many bins for in-pixel histograms."
);
}
...
...
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