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
a23863f0
Commit
a23863f0
authored
Oct 28, 2018
by
Simon Spannagel
Browse files
Rename: Timpeix3EventLoader -> EventLoaderTimepix3
parent
b5ecc648
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/modules/
Timepix3
EventLoader/CMakeLists.txt
→
src/modules/EventLoader
Timepix3
/CMakeLists.txt
View file @
a23863f0
...
...
@@ -3,8 +3,7 @@ CORRYVRECKAN_GLOBAL_MODULE(MODULE_NAME)
# Add source files to library
CORRYVRECKAN_MODULE_SOURCES
(
${
MODULE_NAME
}
Timepix3EventLoader.cpp
# ADD SOURCE FILES HERE...
EventLoaderTimepix3.cpp
)
# Provide standard install target
...
...
src/modules/
Timepix3
EventLoader
/
Timepix3EventLoader.cpp
→
src/modules/EventLoaderTimepix3
/
EventLoader
Timepix3
.cpp
View file @
a23863f0
#include
"
Timepix3
EventLoader.h"
#include
"EventLoader
Timepix3
.h"
#include
<bitset>
#include
<cmath>
...
...
@@ -13,7 +13,7 @@
using
namespace
corryvreckan
;
using
namespace
std
;
Timepix3
EventLoader
::
Timepix3EventLoader
(
Configuration
config
,
std
::
vector
<
std
::
shared_ptr
<
Detector
>>
detectors
)
EventLoaderTimepix3
::
EventLoader
Timepix3
(
Configuration
config
,
std
::
vector
<
std
::
shared_ptr
<
Detector
>>
detectors
)
:
Module
(
std
::
move
(
config
),
std
::
move
(
detectors
)),
temporalSplit
(
false
),
m_currentEvent
(
0
),
m_prevTime
(
0
),
m_shutterOpen
(
false
)
{
...
...
@@ -30,7 +30,7 @@ Timepix3EventLoader::Timepix3EventLoader(Configuration config, std::vector<std::
threshold
=
m_config
.
get
<
std
::
string
>
(
"threshold"
,
""
);
}
void
Timepix3
EventLoader
::
initialise
()
{
void
EventLoader
Timepix3
::
initialise
()
{
if
(
m_config
.
has
(
"number_of_pixelhits"
))
{
LOG
(
INFO
)
<<
"Splitting events by number of pixel hits on detector plane."
;
...
...
@@ -243,7 +243,7 @@ void Timepix3EventLoader::initialise() {
}
}
StatusCode
Timepix3
EventLoader
::
run
(
Clipboard
*
clipboard
)
{
StatusCode
EventLoader
Timepix3
::
run
(
Clipboard
*
clipboard
)
{
// This will loop through each timepix3 registered, and load data from each of them. This can
// be done in one of two ways: by taking all data in the time interval (t,t+delta), or by
...
...
@@ -312,7 +312,7 @@ StatusCode Timepix3EventLoader::run(Clipboard* clipboard) {
}
// Function to load the pixel mask file
void
Timepix3
EventLoader
::
maskPixels
(
std
::
shared_ptr
<
Detector
>
detector
,
string
trimdacfile
)
{
void
EventLoader
Timepix3
::
maskPixels
(
std
::
shared_ptr
<
Detector
>
detector
,
string
trimdacfile
)
{
// Open the mask file
ifstream
trimdacs
;
...
...
@@ -337,7 +337,7 @@ void Timepix3EventLoader::maskPixels(std::shared_ptr<Detector> detector, string
}
// Function to load calibration data
void
Timepix3
EventLoader
::
loadCalibration
(
std
::
string
path
,
char
delim
,
std
::
vector
<
std
::
vector
<
float
>>&
dat
)
{
void
EventLoader
Timepix3
::
loadCalibration
(
std
::
string
path
,
char
delim
,
std
::
vector
<
std
::
vector
<
float
>>&
dat
)
{
std
::
ifstream
f
;
f
.
open
(
path
);
dat
.
clear
();
...
...
@@ -378,7 +378,7 @@ void Timepix3EventLoader::loadCalibration(std::string path, char delim, std::vec
}
// Function to load data for a given device, into the relevant container
bool
Timepix3
EventLoader
::
loadData
(
Clipboard
*
clipboard
,
bool
EventLoader
Timepix3
::
loadData
(
Clipboard
*
clipboard
,
std
::
shared_ptr
<
Detector
>
detector
,
Pixels
*
devicedata
,
SpidrSignals
*
spidrData
)
{
...
...
@@ -708,4 +708,4 @@ bool Timepix3EventLoader::loadData(Clipboard* clipboard,
return
true
;
}
void
Timepix3
EventLoader
::
finalise
()
{}
void
EventLoader
Timepix3
::
finalise
()
{}
src/modules/
Timepix3
EventLoader
/
Timepix3EventLoader.h
→
src/modules/EventLoaderTimepix3
/
EventLoader
Timepix3
.h
View file @
a23863f0
...
...
@@ -12,12 +12,12 @@
namespace
corryvreckan
{
/** @ingroup Modules
*/
class
Timepix3
EventLoader
:
public
Module
{
class
EventLoader
Timepix3
:
public
Module
{
public:
// Constructors and destructors
Timepix3
EventLoader
(
Configuration
config
,
std
::
vector
<
std
::
shared_ptr
<
Detector
>>
detectors
);
~
Timepix3
EventLoader
()
{}
EventLoader
Timepix3
(
Configuration
config
,
std
::
vector
<
std
::
shared_ptr
<
Detector
>>
detectors
);
~
EventLoader
Timepix3
()
{}
// Standard algorithm functions
void
initialise
();
...
...
src/modules/
Timepix3
EventLoader/README.md
→
src/modules/EventLoader
Timepix3
/README.md
View file @
a23863f0
File moved
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