apt-sim / AdePT

Accelerated demonstrator of electromagnetic Particle Transport
Apache License 2.0
25 stars 34 forks source link

Adding new example21 which uses G4VTrackingManager #266

Closed WitekPokorski closed 1 year ago

WitekPokorski commented 1 year ago

New example21 demonstrates integration of AdePT into Geant4 using the G4VTrackingManager instead of Fast Simulation hook. In this case all e+,-, gammas are immediately handed over to AdePT (in the entire detector). No particles ever come back from AdePT. It seems to run OK with example21.mac, but certainly further polishing may be needed (and further bugs may be present due to limited testing so far).

phsft-bot commented 1 year ago

Can one of the admins verify this patch?

agheata commented 1 year ago

@WitekPokorski is there a way to enable/disable the integration, to be able to run the same app with G4 only?

WitekPokorski commented 1 year ago

Yes, to run without AdePT you add the --no_AdePT argument when you call the example, like this:

/example21 -m example21.mac --no_AdePT