Skip to content

CHG: Removed old DEE modules from compilation procedure#175

Merged
zoglauer merged 2 commits into
cositools:develop/emfrom
zoglauer:issue/170
Jun 29, 2026
Merged

CHG: Removed old DEE modules from compilation procedure#175
zoglauer merged 2 commits into
cositools:develop/emfrom
zoglauer:issue/170

Conversation

@zoglauer

Copy link
Copy Markdown
Collaborator

I removed the old DEE modules from the code and compilation, but kept the files around.

This addresses:
#170

@zoglauer zoglauer requested a review from fhagemann June 29, 2026 22:00
@zoglauer zoglauer added cleanup Code cleanup DEE Development related to the detector effects engine labels Jun 29, 2026
Comment thread Makefile Outdated
NUCLEARIZER_DIR := $(NUCLEARIZER)
NUCLEARIZER_PRG := $(BN)/nuclearizer
NUCLEARIZER_CXX_MAIN := $(NUCLEARIZER_DIR)/src/MNuclearizerMain.cxx
NUCLEARIZER_CXX_FILTERED := $(NUCLEARIZER_CXX_MAIN) $(NUCLEARIZER_DIR)/src/MModuleTemplate.cxx $(NUCLEARIZER_DIR)/src/MDetectorEffectsEngineSingleDet.cxx $(NUCLEARIZER_DIR)/src/MDetectorEffectsEngineSMEX.cxx $(NUCLEARIZER_DIR)/src/MModuleLoaderSimulationsSingleDet.cxx $(NUCLEARIZER_DIR)/src/MModuleLoaderSimulationsSMEX.cxx $(NUCLEARIZER_DIR)/src/MGUIOptionsLoaderSimulations.cxx $(NUCLEARIZER_DIR)/src/MGUIOptionsDEESMEX.cxx

@fhagemann fhagemann Jun 29, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
NUCLEARIZER_CXX_FILTERED := $(NUCLEARIZER_CXX_MAIN) $(NUCLEARIZER_DIR)/src/MModuleTemplate.cxx $(NUCLEARIZER_DIR)/src/MDetectorEffectsEngineSingleDet.cxx $(NUCLEARIZER_DIR)/src/MDetectorEffectsEngineSMEX.cxx $(NUCLEARIZER_DIR)/src/MModuleLoaderSimulationsSingleDet.cxx $(NUCLEARIZER_DIR)/src/MModuleLoaderSimulationsSMEX.cxx $(NUCLEARIZER_DIR)/src/MGUIOptionsLoaderSimulations.cxx $(NUCLEARIZER_DIR)/src/MGUIOptionsDEESMEX.cxx
NUCLEARIZER_CXX_FILTERED := $(NUCLEARIZER_CXX_MAIN) $(NUCLEARIZER_DIR)/src/MModuleTemplate.cxx $(NUCLEARIZER_DIR)/src/MDetectorEffectsEngineSingleDet.cxx $(NUCLEARIZER_DIR)/src/MDetectorEffectsEngineSMEX.cxx $(NUCLEARIZER_DIR)/src/MModuleLoaderSimulationsSingleDet.cxx $(NUCLEARIZER_DIR)/src/MModuleLoaderSimulationsSMEX.cxx $(NUCLEARIZER_DIR)/src/MGUIOptionsLoaderSimulations.cxx

We still need MGUIOptionsDEESMEX.cxx, which is for the new DEE.
My make process throws an error with the Makefile as currently implemented in this PR.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compiling and linking nuclearizer ...
/usr/bin/ld: ~/Software/COSItools/megalib/lib/libNuclearizer.so: undefined reference to `MGUIOptionsDEESMEX::MGUIOptionsDEESMEX(MModule*)'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:189: ~/Software/COSItools/megalib/bin/nuclearizer] Error 1
make: *** [Makefile:127: all] Error 2

@zoglauer

Copy link
Copy Markdown
Collaborator Author

I see it. I should have "made clean" before I changed the Makefile, thus the old *.o files were still laying around after a make clean... and it compiled without issues.

@fhagemann

Copy link
Copy Markdown

Also, this is the first time that the GitHub action tests caught something: https://github.com/cositools/nuclearizer/actions/runs/28405528108 🎉

@fhagemann fhagemann closed this Jun 29, 2026
@fhagemann fhagemann reopened this Jun 29, 2026
@zoglauer zoglauer merged commit 0867a81 into cositools:develop/em Jun 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup Code cleanup DEE Development related to the detector effects engine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants