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
7dbf3b49
Commit
7dbf3b49
authored
Dec 19, 2018
by
Simon Spannagel
Browse files
TestAlgorithm: rename parameters
parent
776e9ce6
Changes
2
Show whitespace changes
Inline
Side-by-side
src/modules/TestAlgorithm/README.md
View file @
7dbf3b49
...
...
@@ -9,9 +9,9 @@ This module collects `pixel` and `cluster` objects from the clipboard and create
### Parameters
*
`make
C
orrelatons`
: Boolean to change if correlation plots should be outputted. Default value is
`false`
.
*
`do
T
iming
C
ut`
: Boolean to switch on/off the cut on cluster times for correlations. Defaults to
`false`
.
*
`timing
C
ut`
: maximum time difference between clusters to be taken into account. Only used if
`do
T
iming
C
ut`
is set to
`true`
, defaults to
`100ns`
.
*
`make
_c
orrelatons`
: Boolean to change if correlation plots should be outputted. Default value is
`false`
.
*
`do
_t
iming
_c
ut`
: Boolean to switch on/off the cut on cluster times for correlations. Defaults to
`false`
.
*
`timing
_c
ut`
: maximum time difference between clusters to be taken into account. Only used if
`do
_t
iming
_c
ut`
is set to
`true`
, defaults to
`100ns`
.
### Plots produced
For each device the following plots are produced:
...
...
src/modules/TestAlgorithm/TestAlgorithm.cpp
View file @
7dbf3b49
...
...
@@ -6,10 +6,9 @@ using namespace std;
TestAlgorithm
::
TestAlgorithm
(
Configuration
config
,
std
::
shared_ptr
<
Detector
>
detector
)
:
Module
(
std
::
move
(
config
),
detector
),
m_detector
(
detector
)
{
makeCorrelations
=
m_config
.
get
<
bool
>
(
"makeCorrelations"
,
false
);
timingCut
=
m_config
.
get
<
double
>
(
"timingCut"
,
static_cast
<
double
>
(
Units
::
convert
(
100
,
"ns"
)));
do_timing_cut_
=
m_config
.
get
<
bool
>
(
"doTimingCut"
,
false
);
m_eventLength
=
m_config
.
get
<
double
>
(
"eventLength"
,
1
);
makeCorrelations
=
m_config
.
get
<
bool
>
(
"make_correlations"
,
false
);
timingCut
=
m_config
.
get
<
double
>
(
"timing_cut"
,
static_cast
<
double
>
(
Units
::
convert
(
100
,
"ns"
)));
do_timing_cut_
=
m_config
.
get
<
bool
>
(
"do_timing_cut"
,
false
);
}
void
TestAlgorithm
::
initialise
()
{
...
...
@@ -38,8 +37,8 @@ void TestAlgorithm::initialise() {
// time correlation plot range should cover length of events. nanosecond binning.
title
=
m_detector
->
name
()
+
"Reference cluster time stamp - cluster time stamp;t_{ref}-t [ns];events"
;
correlationTime
=
new
TH1F
(
"correlationTime"
,
title
.
c_str
(),
static_cast
<
int
>
(
2.
*
m_eventLength
),
-
1
*
m_eventLength
,
m_eventLength
);
correlationTime
=
new
TH1F
(
"correlationTime"
,
title
.
c_str
(),
static_cast
<
int
>
(
2.
*
timingCut
),
-
1
*
timingCut
,
timingCut
);
title
=
m_detector
->
name
()
+
"Reference cluster time stamp - cluster time stamp;t_{ref}-t [1/40MHz];events"
;
correlationTimeInt
=
new
TH1F
(
"correlationTimeInt"
,
title
.
c_str
(),
8000
,
-
40000
,
40000
);
...
...
Write
Preview
Supports
Markdown
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