epic
epic copied to clipboard
feat(ci): test run in celeritas
Briefly, what does this PR introduce?
This PR exports the geometry (epic_craterlake_no_bhcal only, due to bhcal issues) to gdml with sensitive detectors, and runs it through a short celeritas simulation.
Needs
- [x] https://eicweb.phy.anl.gov/containers/eic_container/-/merge_requests/1050
What kind of change does this PR introduce?
- [ ] Bug fix (issue #__)
- [x] New feature (issue #__)
- [ ] Documentation update
- [ ] Other: __
Please check if this PR fulfills the following:
- [ ] Tests for the changes have been added
- [ ] Documentation has been added / updated
- [ ] Changes have been communicated to collaborators
Does this PR introduce breaking changes? What changes might users need to make to their code?
No.
Does this PR change default behavior?
No.
When I try to test locally, I am getting this error while reading from .hepmc
jug_dev> rahmans@eic0112:/gpfs02/eic/rahmans/celeritas$ celer-g4 celeritas.json
info: Run manager type: G4MTRunManager
status: Reading JSON input from 'celeritas.json'
info: Opening HepMC3 input file at root://dtn-eic.jlab.org//work/eic2/EPIC/EVGEN/CI/pythia8NCDIS_5x41_minQ2=1_beamEffects_xAngle=-0.025_hiDiv_1_20ev.hepmc
Error in <TNetXNGFile::Init>: root://dtn-eic.jlab.org//work/eic2/EPIC/EVGEN/CI/pythia8NCDIS_5x41_minQ2=1_beamEffects_xAngle=-0.025_hiDiv_1_20ev.hepmc not a ROOT file
Error in <TNetXNGFile::TNetXNGFile>: Object is in 'zombie' state
Did you see this?
When I try to test locally, I am getting this error while reading from .hepmc
jug_dev> rahmans@eic0112:/gpfs02/eic/rahmans/celeritas$ celer-g4 celeritas.json info: Run manager type: G4MTRunManager status: Reading JSON input from 'celeritas.json' info: Opening HepMC3 input file at root://dtn-eic.jlab.org//work/eic2/EPIC/EVGEN/CI/pythia8NCDIS_5x41_minQ2=1_beamEffects_xAngle=-0.025_hiDiv_1_20ev.hepmc Error in <TNetXNGFile::Init>: root://dtn-eic.jlab.org//work/eic2/EPIC/EVGEN/CI/pythia8NCDIS_5x41_minQ2=1_beamEffects_xAngle=-0.025_hiDiv_1_20ev.hepmc not a ROOT file Error in <TNetXNGFile::TNetXNGFile>: Object is in 'zombie' stateDid you see this?
In my local testing I used a local file. I changed it to xrdcp the file first.
Again from local testing, offloading output to hepmc fails. I think the extension should be .hepmc3.
status: Celeritas core setup complete
info: Wrote Geant4 diagnostic output to "pythia8NCDIS_5x41_minQ2=1_beamEffects_xAngle=-0.025_hiDiv_1_20ev.json"
/tmp/root/spack-stage/spack-stage-celeritas-0.5.0-5tn6dcqwhr6ejjdcfm2wmae7n27q5nzh/spack-src/app/celer-g4/celer-g4.cc:288: critical: While running celeritas.json: celeritas: Geant4 error: Celeritas runtime error: invalid event file format 'hepmc'
Segmentation fault (core dumped)
jug_dev> srahman1@LPO-174581:~/celeritas$