Skip to content

build: common CMakeLists to rule them all#6

Merged
plexoos merged 1 commit into
esifrom
build-common-cmake
Oct 30, 2024
Merged

build: common CMakeLists to rule them all#6
plexoos merged 1 commit into
esifrom
build-common-cmake

Conversation

@plexoos
Copy link
Copy Markdown
Member

@plexoos plexoos commented Oct 30, 2024

With these changes the entire package (the min useful sub-packages) can be built as:

cmake -S esi-opticks -B build
cmake --build build

@plexoos plexoos merged commit d7b4337 into esi Oct 30, 2024
@plexoos plexoos deleted the build-common-cmake branch October 30, 2024 23:14
@plexoos plexoos added this to simphony Mar 13, 2026
@github-project-automation github-project-automation Bot moved this to Backlog in simphony Mar 13, 2026
@github-project-automation github-project-automation Bot moved this from Backlog to Done in simphony Mar 13, 2026
ggalgoczi added a commit that referenced this pull request May 1, 2026
…Photon genstep

MakeGenstep_QuasiCerenkov / MakeGenstep_QuasiScintillation were reading
pos/time from token->GetPosition() / GetGlobalTime(). By the time
UserSteppingAction fires, those reflect the POST-step of the token's first
step, not its birth position. Read birth values from
aStep->GetPreStepPoint() instead — that matches the parent's pre-step
(x0, t0) where G4QuasiCerenkov::PostStepDoIt constructs the secondary
(see G4QuasiCerenkov.cc:273, `new G4Track(quasiPhoton, t0, x0)`).

Validated against the cascade route on Cerenkov-only geometry
(opticks_raindrop.gdml, no scintillation properties — bypasses upstream
G4 bug #6 in G4QuasiScintillation::PostStepDoIt) at fixed seed 42:

  mode      route    Opticks NumHits   G4 NumHits
  serial    cascade  13411             0
  serial    photon   13438             0  (cascade route ± 0.2%)
  event-mt  cascade  12124             0
  event-mt  photon   12123             0  (off by 1 hit at fixed seed)
  subevt    cascade  12124             0
  subevt    photon   0                 0  (still bug #7: aux marshalling)

Photon-route correctness in serial / event-MT now established. Sub-event
mode remains broken due to G4 11.4.1 sub-event marshalling not preserving
G4VAuxiliaryTrackInformation across the master->worker handoff.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant