Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
bf096d67
Commit
bf096d67
authored
4 years ago
by
Andre Sailer
Committed by
Marko Petric
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
DDTest.EventReader: test HepMC3 reader, make testing depend on cmake options
parent
4dc792ee
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
DDTest/CMakeLists.txt
+6
-0
6 additions, 0 deletions
DDTest/CMakeLists.txt
DDTest/src/test_EventReaders.cc
+5
-2
5 additions, 2 deletions
DDTest/src/test_EventReaders.cc
with
11 additions
and
2 deletions
DDTest/CMakeLists.txt
+
6
−
0
View file @
bf096d67
...
...
@@ -54,6 +54,12 @@ if (DD4HEP_USE_GEANT4)
test_EventReaders
)
add_executable
(
${
TEST_NAME
}
src/
${
TEST_NAME
}
.cc
)
if
(
DD4HEP_USE_HEPMC3
)
target_compile_definitions
(
${
TEST_NAME
}
PRIVATE DD4HEP_USE_HEPMC3
)
endif
()
if
(
DD4HEP_USE_LCIO
)
target_compile_definitions
(
${
TEST_NAME
}
PRIVATE DD4HEP_USE_LCIO
)
endif
()
target_link_libraries
(
${
TEST_NAME
}
DD4hep::DDCore DD4hep::DDRec DD4hep::DDG4
)
target_include_directories
(
${
TEST_NAME
}
PRIVATE ./include
)
install
(
TARGETS
${
TEST_NAME
}
DESTINATION bin
)
...
...
This diff is collapsed.
Click to expand it.
DDTest/src/test_EventReaders.cc
+
5
−
2
View file @
bf096d67
...
...
@@ -37,11 +37,14 @@ int main(int argc, char** argv ){
std
::
string
inputFileFolder
=
argv
[
1
];
std
::
vector
<
TestTuple
>
tests
;
#ifdef DD4HEP_USE_LCIO
tests
.
push_back
(
TestTuple
(
"LCIOStdHepReader"
,
"bbudsc_3evt.stdhep"
)
);
tests
.
push_back
(
TestTuple
(
"LCIOFileReader"
,
"muons.slcio"
,
/*skipEOF= */
true
)
);
#endif
tests
.
push_back
(
TestTuple
(
"Geant4EventReaderHepEvtShort"
,
"Muons10GeV.HEPEvt"
)
);
tests
.
push_back
(
TestTuple
(
"Geant4EventReaderHepMC"
,
"g4pythia.hepmc"
)
);
#ifdef DD4HEP_USE_HEPMC3
tests
.
push_back
(
TestTuple
(
"HEPMC3FileReader"
,
"g4pythia.hepmc"
,
/*skipEOF= */
true
)
);
#endif
try
{
for
(
std
::
vector
<
TestTuple
>::
const_iterator
it
=
tests
.
begin
();
it
!=
tests
.
end
();
++
it
)
{
...
...
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