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
137a0be5
Commit
137a0be5
authored
Jan 25, 2019
by
Lennart Huth
Committed by
Simon Spannagel
Jan 25, 2019
Browse files
Binary pixel
parent
6646e99b
Changes
4
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
137a0be5
...
...
@@ -52,6 +52,7 @@ The following authors, in alphabetical order, have contributed to Corryvreckan:
*
Matthew Daniel Buckland, University of Liverpool, @mbucklan
*
Dominik Dannheim, CERN, @dannheim
*
Adrian Fiergolski, CERN, @afiergol
*
Lennart Huth, DESY, @lhuth
*
Jens Kroeger, University of Heidelberg/CERN, @jekroege
*
Andreas Matthias Nürnberg, CERN, @nurnberg
*
Florian Pitters, CERN, @fpipper
...
...
src/modules/TestAlgorithm/README.md
View file @
137a0be5
...
...
@@ -9,7 +9,7 @@ This module collects `pixel` and `cluster` objects from the clipboard and create
### Parameters
*
`make_correlatons`
: Boolean to change if correlation plots should be outputted. Default value is
`false`
.
*
`make_correlat
i
ons`
: Boolean to change if correlation plots should be outputted. Default value is
`false`
.
*
`do_timing_cut`
: Boolean to switch on/off the cut on cluster times for correlations. Defaults to
`false`
.
*
`timing_cut`
: maximum time difference between clusters to be taken into account. Only used if
`do_timing_cut`
is set to
`true`
, defaults to
`100ns`
.
...
...
src/objects/Pixel.cpp
View file @
137a0be5
...
...
@@ -3,5 +3,6 @@
using
namespace
corryvreckan
;
void
Pixel
::
print
(
std
::
ostream
&
out
)
const
{
out
<<
"Pixel "
<<
this
->
column
()
<<
", "
<<
this
->
row
()
<<
", "
<<
this
->
adc
()
<<
", "
<<
this
->
timestamp
();
out
<<
"Pixel "
<<
this
->
column
()
<<
", "
<<
this
->
row
()
<<
", "
<<
this
->
adc
()
<<
", "
<<
this
->
timestamp
()
<<
", is Binary"
<<
(
m_isBinary
==
true
?
"true"
:
"false"
);
}
src/objects/Pixel.hpp
View file @
137a0be5
...
...
@@ -15,17 +15,21 @@ namespace corryvreckan {
Pixel
()
=
default
;
Pixel
(
std
::
string
detectorID
,
int
row
,
int
col
,
int
tot
)
:
Pixel
(
detectorID
,
row
,
col
,
tot
,
0.
)
{}
Pixel
(
std
::
string
detectorID
,
int
row
,
int
col
,
int
tot
,
double
timestamp
)
:
Object
(
detectorID
,
timestamp
),
m_row
(
row
),
m_column
(
col
),
m_adc
(
tot
),
m_charge
(
tot
)
{}
:
Pixel
(
detectorID
,
row
,
col
,
tot
,
timestamp
,
false
)
{}
Pixel
(
std
::
string
detectorID
,
int
row
,
int
col
,
int
tot
,
double
timestamp
,
bool
binary
)
:
Object
(
detectorID
,
timestamp
),
m_row
(
row
),
m_column
(
col
),
m_adc
(
tot
),
m_charge
(
tot
),
m_isBinary
(
binary
)
{}
int
row
()
const
{
return
m_row
;
}
int
column
()
const
{
return
m_column
;
}
std
::
pair
<
int
,
int
>
coordinates
()
{
return
std
::
make_pair
(
m_column
,
m_row
);
}
int
adc
()
const
{
return
m_adc
;
}
int
adc
()
const
{
return
(
m_isBinary
==
true
?
1
:
m_adc
)
;
}
int
tot
()
const
{
return
adc
();
}
double
charge
()
const
{
return
m_charge
;
}
void
setCharge
(
double
charge
)
{
m_charge
=
charge
;
}
void
setToT
(
int
tot
)
{
m_adc
=
tot
;
}
void
setBinary
(
bool
binary
)
{
m_isBinary
=
binary
;
}
/**
* @brief Print an ASCII representation of Pixel to the given stream
...
...
@@ -43,8 +47,8 @@ namespace corryvreckan {
int
m_row
;
int
m_column
;
int
m_adc
;
double
m_charge
;
bool
m_isBinary
;
};
// Vector type declaration
...
...
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