Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Allen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
LHCb
Allen
Merge requests
!1391
Use ODIN standalone from DAQEvent instead of including it in Allen
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Use ODIN standalone from DAQEvent instead of including it in Allen
lhcb_odin_standalone
into
master
Overview
12
Commits
1
Pipelines
0
Changes
1
All threads resolved!
Hide all comments
Merged
Roel Aaij
requested to merge
lhcb_odin_standalone
into
master
1 year ago
Overview
12
Commits
1
Pipelines
0
Changes
1
All threads resolved!
Hide all comments
Expand
Adresses
#449 (closed)
Depends on
LHCb!4412 (merged)
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
e192d501
1 commit,
1 year ago
1 file
+
20
−
24
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
mdf/CMakeLists.txt
+
20
−
24
Options
@@ -5,35 +5,31 @@
# Interface library for lhcb includes
add_library
(
LHCbEvent INTERFACE
)
if
(
STANDALONE
)
set
(
odin_files
"src/ODIN.cpp"
"include/Event/ODIN.h"
)
else
()
set
(
odin_files
"src/ODIN.cpp"
)
endif
()
foreach
(
odin_file
${
odin_files
}
)
if
(
NOT EXISTS
"
${
PROJECT_BINARY_DIR
}
/imported_
${
odin_file
}
"
)
file
(
DOWNLOAD
"https://gitlab.cern.ch/lhcb/LHCb/-/raw/master/Event/DAQEvent/
${
odin_file
}
"
"
${
PROJECT_BINARY_DIR
}
/imported_
${
odin_file
}
"
STATUS ODIN_DOWNLOAD_STATUS
)
list
(
POP_FRONT ODIN_DOWNLOAD_STATUS_CODE ODIN_DOWNLOAD_STATUS_MSG
)
if
(
ODIN_DOWNLOAD_STATUS_CODE
)
message
(
FATAL_ERROR
"Failed to get
${
odin_file
}
copy:
${
ODIN_DOWNLOAD_STATUS_MSG
}
"
)
endif
()
endif
()
endforeach
()
add_library
(
odin OBJECT
${
PROJECT_BINARY_DIR
}
/imported_src/ODIN.cpp
)
target_link_libraries
(
odin PRIVATE LHCbEvent cppgsl::cppgsl
)
target_compile_definitions
(
odin PRIVATE ODIN_WITHOUT_GAUDI
)
set
(
mdf_sources
src/raw_helpers.cpp
src/read_mdf.cpp
src/write_mdf.cpp
$<TARGET_OBJECTS:odin>
)
src/root_mdf.cpp
)
if
(
STANDALONE
)
foreach
(
odin_file
"src/ODIN.cpp"
"include/Event/ODIN.h"
)
if
(
NOT EXISTS
"
${
PROJECT_BINARY_DIR
}
/imported_
${
odin_file
}
"
)
file
(
DOWNLOAD
"https://gitlab.cern.ch/lhcb/LHCb/-/raw/master/Event/DAQEvent/
${
odin_file
}
"
"
${
PROJECT_BINARY_DIR
}
/imported_
${
odin_file
}
"
STATUS ODIN_DOWNLOAD_STATUS
)
list
(
POP_FRONT ODIN_DOWNLOAD_STATUS_CODE ODIN_DOWNLOAD_STATUS_MSG
)
if
(
ODIN_DOWNLOAD_STATUS_CODE
)
message
(
FATAL_ERROR
"Failed to get
${
odin_file
}
copy:
${
ODIN_DOWNLOAD_STATUS_MSG
}
"
)
endif
()
endif
()
endforeach
()
list
(
APPEND mdf_sources src/root_mdf.cpp
)
add_library
(
odin OBJECT
${
PROJECT_BINARY_DIR
}
/imported_src/ODIN.cpp
)
target_link_libraries
(
odin PRIVATE LHCbEvent cppgsl::cppgsl
)
target_compile_definitions
(
odin PRIVATE ODIN_WITHOUT_GAUDI
)
list
(
APPEND mdf_sources $<TARGET_OBJECTS:odin>
)
endif
()
allen_add_host_library
(
mdf STATIC
${
mdf_sources
}
)
target_include_directories
(
mdf PUBLIC
Loading