Skip to content

Commit

Permalink
TimesliceExample finally runs on Podio v0.99
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwbrei committed May 2, 2024
1 parent f34e05f commit aca7bdc
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 3 deletions.
59 changes: 57 additions & 2 deletions .github/workflows/ccpp-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
branches: [ master ]

jobs:
build:
name: Build JANA2 with all options enabled
jana2_env_everything_except_cuda:
name: Build JANA2 with all dependencies except CUDA
runs-on: ubuntu-latest
container:
image: nbrei/jana2_env_everything_except_cuda
Expand Down Expand Up @@ -60,3 +60,58 @@ jobs:
$GITHUB_WORKSPACE/Linux/bin/jana -Pplugins=TimesliceExample -Pjana:nevents=100 timeslices.root
jana2_with_eicrecon:
name: Build JANA2 within eic-shell
runs-on: ubuntu-latest
container:
image: eicweb/jug_xl:latest

# Build Docker container and run the entrypoint.sh script in it
steps:

- uses: actions/checkout@v4

- name: cmake
run: |
mkdir -p $GITHUB_WORKSPACE/build
cd $GITHUB_WORKSPACE/build
cmake ../ -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/Linux \
-DUSE_PYTHON=ON \
-DUSE_ROOT=ON \
-DUSE_PODIO=ON \
-DUSE_XERCES=ON \
-DXercesC_DIR=/usr \
-DUSE_ZEROMQ=ON \
-Dpodio_DIR=/app/podio/install/lib/cmake/podio/
- name: make
run: |
cd $GITHUB_WORKSPACE/build
make
- name: make install
run: |
cd $GITHUB_WORKSPACE/build
make install
- name: JTest
run: |
echo "--- Running JTest plugin -----------------------"
export JANA_PLUGIN_PATH=$GITHUB_WORKSPACE/Linux/plugins
$GITHUB_WORKSPACE/Linux/bin/jana -PPLUGINS=JTest -Pjana:nevents=100
- name: jana-unit-tests
run: |
echo "--- Running jana-unit-tests ------------------------------"
export JANA_PLUGIN_PATH=$GITHUB_WORKSPACE/Linux/plugins
$GITHUB_WORKSPACE/Linux/bin/jana-unit-tests
- name: TimesliceExample with simple (physics event) topology
run: |
echo "--- Running TimesliceExample with simple topology ------------------------------"
export JANA_PLUGIN_PATH=$GITHUB_WORKSPACE/Linux/plugins
export LD_LIBRARY_PATH=$GITHUB_WORKSPACE/Linux/lib:/app/podio/install/lib:$LD_LIBRARY_PATH
$GITHUB_WORKSPACE/Linux/bin/jana -Pplugins=TimesliceExample -Pjana:nevents=100 events.root
- name: TimesliceExample with complex (timeslice) topology
run: |
echo "--- Running TimesliceExample with complex topology ------------------------------"
export JANA_PLUGIN_PATH=$GITHUB_WORKSPACE/Linux/plugins
export LD_LIBRARY_PATH=$GITHUB_WORKSPACE/Linux/lib:/app/podio/install/lib:$LD_LIBRARY_PATH
$GITHUB_WORKSPACE/Linux/bin/jana -Pplugins=TimesliceExample -Pjana:nevents=100 timeslices.root
2 changes: 1 addition & 1 deletion src/examples/TimesliceExample/MyTimesliceSplitter.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ struct MyTimesliceSplitter : public JEventUnfolder {
event_clusters_out->push_back(m_timeslice_clusters_in()->at(child_idx));

auto event_info_out = std::make_unique<EventInfoCollection>();
event_info_out->push_back(EventInfo(event_nr, timeslice_nr, 0));
event_info_out->push_back(MutableEventInfo(event_nr, timeslice_nr, 0));

LOG_DEBUG(GetLogger()) << "MyTimesliceSplitter: Timeslice " << parent.GetEventNumber()
<< ", Event " << child.GetEventNumber()
Expand Down

0 comments on commit aca7bdc

Please sign in to comment.