GithubHelp home page GithubHelp logo

sjdkay / basic_hadrontherapy Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 1.93 MB

A modified version of the G4 Hadrontherapy example that drops the beamline construction but adds in additional functionality for the phantom and allows the construction of an external detector

CMake 0.71% Makefile 0.17% C 22.98% C++ 76.11% Shell 0.03%

basic_hadrontherapy's Introduction

This is a simplified version of the existing Geant4 Hadrontherapy example.

See https://twiki.cern.ch/twiki/bin/view/Geant4/AdvancedExamplesHadrontherapy for details of the original example.

28/3/18

This version of the Hadrontherapy example removes the beamline elements and builds only the Phantom and an optional external detector. The phantom can be made of two different materials (the thickness of each can also be varied). Information about the gammas produced from proton beam interactions are stored in output files.

The external detector is currently simply a 5cm "shell" of Sodium Iodide surrounding the phantom. Output is currently only the energy deposition in this detector for each event.

To modify the geometry of the external detector see HadrontherapyDetectorConstruction.cc

To modify information stored in the hit collection for the external detector see HadrontherapyExternalDetectorSD.cc and HadrontherapyExternalDetectorHit.cc (and associated include files).

To modify the information about the prompt gammas produced by the proton beam look at HadrontherapySteppingAction.cc.

To introduce new histograms or modify existing ones edit HadrontherapyAnalysisManager.cc

To modify how the Hit collections for the external detector are used/processed see HadrontherapyEventAction.cc

////// FUTURE STEPS ////////

Useful further development would be to alter the External Detector and construct this as a series of cylindrical detectors along the x axis of the phantom. Further analysis of the distribution of photons into the detector would also be useful.

////// USEFUL REFERENCE INFO ////////

https://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/ForApplicationDeveloper/html/TrackingAndPhysics/tracking.html

http://geant4.slac.stanford.edu/tutorial/material06/HandsOn5/HandsOn5.html

http://www-geant4.kek.jp/g4users/g4tut07/docs/SensitiveDetector.pdf

http://iopscience.iop.org/chapter/978-0-7503-1370-4/bk978-0-7503-1370-4ch1.pdf
Plot of Proton range for Water as fn of Beam Energy

http://iopscience.iop.org/article/10.1088/0031-9155/60/8/R155/pdf

basic_hadrontherapy's People

Contributors

sjdkay avatar

Watchers

James Cloos avatar  avatar

Forkers

benlecrom

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.