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
71e69866
Commit
71e69866
authored
Oct 09, 2017
by
Simon Spannagel
Browse files
Tpx3EvtLoader: expose more parameters
parent
ddb6659b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/algorithms/Timepix3EventLoader.C
View file @
71e69866
...
...
@@ -14,9 +14,15 @@ using namespace std;
Timepix3EventLoader
::
Timepix3EventLoader
(
Configuration
config
,
Clipboard
*
clipboard
)
:
Algorithm
(
std
::
move
(
config
),
clipboard
)
{
applyTimingCut
=
false
;
// Take input directory from global parameters
m_inputDirectory
=
m_config
.
get
<
std
::
string
>
(
"inputDirectory"
);
applyTimingCut
=
m_config
.
get
<
bool
>
(
"applyTimingCut"
,
false
);
m_timingCut
=
m_config
.
get
<
double
>
(
"timingCut"
,
0
.
0
);
m_minNumberOfPlanes
=
m_config
.
get
<
int
>
(
"minNumerOfPlanes"
,
1
);
m_currentTime
=
0
.;
m_minNumberOfPlanes
=
1
;
m_prevTime
=
0
;
m_shutterOpen
=
false
;
}
...
...
@@ -25,9 +31,6 @@ void Timepix3EventLoader::initialise(Parameters* par) {
parameters
=
par
;
// Take input directory from global parameters
m_inputDirectory
=
m_config
.
get
<
std
::
string
>
(
"inputDirectory"
);
// File structure is RunX/ChipID/files.dat
// Open the root directory
...
...
src/algorithms/Timepix3EventLoader.h
View file @
71e69866
...
...
@@ -23,18 +23,22 @@ namespace corryvreckan {
bool
loadData
(
std
::
string
,
Pixels
*
,
SpidrSignals
*
);
void
maskPixels
(
std
::
string
,
std
::
string
);
// Member variables
private:
// cofngiuration paramaters:
bool
applyTimingCut
;
double
m_timingCut
;
std
::
string
m_inputDirectory
;
int
m_minNumberOfPlanes
;
// Member variables
std
::
map
<
std
::
string
,
std
::
vector
<
std
::
string
>>
m_datafiles
;
std
::
map
<
std
::
string
,
int
>
m_nFiles
;
std
::
map
<
std
::
string
,
int
>
m_fileNumber
;
std
::
map
<
std
::
string
,
long
long
int
>
m_syncTime
;
std
::
map
<
std
::
string
,
FILE
*>
m_currentFile
;
std
::
map
<
std
::
string
,
bool
>
m_clearedHeader
;
int
m_minNumberOfPlanes
;
bool
applyTimingCut
;
long
long
int
m_currentTime
;
double
m_timingCut
;
long
long
int
m_prevTime
;
bool
m_shutterOpen
;
std
::
map
<
std
::
string
,
Pixels
*>
bufferedData
;
...
...
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