Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Python parser for DT5550W bin file
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NML
Python parser for DT5550W bin file
Commits
d6a97cf3
Commit
d6a97cf3
authored
2 years ago
by
mingf2
Browse files
Options
Downloads
Patches
Plain Diff
remove cpp test files
parent
568cea40
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#195149
failed
2 years ago
Stage: build
Stage: test
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+3
-3
3 additions, 3 deletions
.gitignore
CMakeLists.txt
+0
-18
0 additions, 18 deletions
CMakeLists.txt
main.cpp
+0
-26
0 additions, 26 deletions
main.cpp
sources/CMakeLists.txt
+0
-1
0 additions, 1 deletion
sources/CMakeLists.txt
with
3 additions
and
48 deletions
.gitignore
+
3
−
3
View file @
d6a97cf3
#
CMakeLists.txt
CMakeLists.txt
#
main.cpp
main.cpp
test_data/test.csv
test_data/test.csv
#
sources/CMakeLists.txt
sources/CMakeLists.txt
sources/py_BinFileParser.cpp
sources/py_BinFileParser.cpp
sources/py_BinFileParser.pyi
sources/py_BinFileParser.pyi
sources/py_BinFileParser.pyx
sources/py_BinFileParser.pyx
...
...
This diff is collapsed.
Click to expand it.
CMakeLists.txt
deleted
100644 → 0
+
0
−
18
View file @
568cea40
cmake_minimum_required
(
VERSION 3.16.3
)
project
(
BinParser CXX
)
set
(
CMAKE_CXX_STANDARD 11
)
set
(
CMAKE_POSITION_INDEPENDENT_CODE ON
)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/sources
)
if
(
NOT CMAKE_BUILD_TYPE
)
set
(
CMAKE_BUILD_TYPE
"Release"
CACHE STRING
"Choose Release or Debug"
FORCE
)
endif
()
message
(
STATUS
"Build type: '
${
CMAKE_BUILD_TYPE
}
'"
)
add_subdirectory
(
sources
)
add_executable
(
main main.cpp
)
target_link_libraries
(
main PUBLIC binFileParser
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
main.cpp
deleted
100644 → 0
+
0
−
26
View file @
568cea40
#include
<string>
#include
<iostream>
#include
"BinFileParser.h"
int
main
(
int
argc
,
char
**
argv
)
{
std
::
string
fpath
(
"/home/mingf2/projects/DT5550W_python_parser/test_data/test.data"
);
DT5550WBinFile
binFileHandle
(
fpath
,
true
);
auto
events
=
binFileHandle
.
readNextNEvents
(
1
);
CITIROCEvent
firstEvent
=
events
[
0
];
std
::
cout
<<
"Events read: "
<<
binFileHandle
.
getNumberOfEventRead
()
<<
std
::
endl
;
std
::
cout
<<
"First event: ASICID = "
<<
firstEvent
.
AsicID
<<
", RunTimeCode = "
<<
firstEvent
.
RunEventTimecode
<<
", EventCounter = "
<<
firstEvent
.
EventCounter
<<
", Hit = "
<<
firstEvent
.
hit
<<
std
::
endl
;
events
=
binFileHandle
.
readNextNEvents
(
1
);
CITIROCEvent
secondEvent
=
events
[
0
];
std
::
cout
<<
"Events read: "
<<
binFileHandle
.
getNumberOfEventRead
()
<<
std
::
endl
;
std
::
cout
<<
"First event: ASICID = "
<<
secondEvent
.
AsicID
<<
", RunTimeCode = "
<<
secondEvent
.
RunEventTimecode
<<
", EventCounter = "
<<
secondEvent
.
EventCounter
<<
", Hit = "
<<
secondEvent
.
hit
<<
std
::
endl
;
return
0
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
sources/CMakeLists.txt
deleted
100644 → 0
+
0
−
1
View file @
568cea40
add_library
(
binFileParser SHARED BinFileParser.cpp
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment