# Example medical_linac History

See `CONTRIBUTING.rst` for details of **required** info/format for each entry,
which **must** added in reverse chronological order (newest at the top).
It must **not** be used as a substitute for writing good git commit messages!

## 2024-04-22 D. Konstantinov (medical_linac-V11-02-00)
- Fixed a critical bug in the geometry of the medical linear accelerator's collimator.
- Reduced the cut for TargetR in the medical linear accelerator from 1 cm to 1 mm.

## 2023-11-15 I. Hrivnacova (medical_linac-V11-01-01)
- Updated vis.mac:
  - Changed "/vis/open XYZ [600x600-0+0]" to "/vis/open" to allow run-time choices
    and simplified comments.

## 2023-11-17 Susanna Guatelli (medical_linac-V11-01-01)
- Ranecu engine removed
  
## 2023-10-04 Carlo Mancini (medical_linac-V11-01-00)
- Upgrade to last Geant4 version (11.1) 
  - multithreading and code review

## 2022-10-04 Ben Morgan (medical_linac-V11-00-03)
- Replace sprintf use with std::to_string
  - sprintf deprecated on macOS 13, leading to compile warnings

## 2022-10-04 Gabriele Cosmo (medical_linac-V11-00-02)
- Fixed compilation warnings on Intel-icx compiler for set but
  not used variables in ML2Acc1 and ML2Acc2 source.

## 2022-09-09 Susanna Guatelli (medical_linac-V11-00-01)
- Ranecu Engine removed. Default one now used

## 2021-12-10 Ben Morgan (medical_linac-V11-00-00)
- Change to new Markdown History format

---

# History entries prior to 11.0

24.05.2021  B. Morgan (medical_linac-V10-07-00)
- Bump required CMake version range to 3.12...3.20, matching core Geant4

02.11.2020    B.Morgan tag medical_linac-V10-06-00
              Support same CMake version range as core Geant4

12.11.2018    V.Ivanchenko tag medical_linac-V10-04-08
              ML2AcceleratorConstructionMessenger,
              ML2PhantomConstructionMessenger - should not
                 trigger /run/beamOn during detector construction

09.11.2018    V.Ivanchenko tag medical_linac-V10-04-07
              do not explicitly delete singletons, add extra
              initialisation

08.11.2018    V.Ivanchenko tag medical_linac-V10-04-06
07.11.2018    V.Ivanchenko tag medical_linac-V10-04-05
              simplification of PhysicsList - attempt to fix
              problems at Windows

25.10.2018    S. Guatelli tag medical_linac-V10-04-04
              compilation warnings deleted

22.10.2018    S. Guatelli tag medical_linac-V10-04-03
              acc1.mac added in CMakeList.txt

19.10.2018    S. Guatelli tag medical_linac-V10-04-02
              warning deleted

10.10.2018    S. Guatelli tag medical_linac-V10-04-01
              typos in macros deleted. Nloop=10 if the exp data are not provided

07.09.2018    S. Guatelli tag medical_linac-V10-04-00
              Directory MacroAndData included
              Migration from RO Geometry to Multifunctional Detector
              Phase Space creation deleted. This needs to be implemented again
              G4VIS_USE and G4UI_USE deleted

06.11.2017    L.Pandola tag medical_linac-V10-03-02
              re-tag, fix directory

03.11.2017    F.Romano tag medical_linac-V10-03-01
              batch.mac macro modified for ctest

11.09.2017    G.Cosmo tag medical_linac-V10-03-00
              Fixed compilation warnings on gcc-7.1 in CML2Acc1::MLC().

28.11.2016    G.Folger tag medical_linac-V10-02-00
              Remove direct use of theParticleIterator, use GetParticleTableIterator().
              fix required by clang39 on Linux and MAC

25.11.2013    G. Folger, tag medical_linac-V09-06-03
              fix MS VC 18 compilation error in ML2PrimaryGenerationAction.cc

22.11.2013    G. Folger, tag medical_linac-V09-06-02
              fix MS VC 18 compilation error in ML2ExpVoxels.cc

26.07.2013    P. Gumplinger, tag medical_linac-V09-06-01
              fix clang32 compilation warnings

14.12.2012    A. Ribon, tag medical_linac-V09-06-00
              - Removed obsolete G4HadronQElasticPhysics.

30.11.2012    G. Cosmo, tag medical_linac-V09-05-11
              - Cleared variable not used...

28.11.2012    G. Cosmo, tag medical_linac-V09-05-10
              - Fixed cases of variable shadowing.
              - Cleared unnecessary calls to this->.

26.10.2012    F.Romano, medical_linac-V09-05-09
              - Included generic command for visualization vis/open OGL
                where needed.

26.10.2012    L.Pandola, medical_linac-V09-05-08
              - Replace CMakeLists.txt to deal with UI/VIS

12.10.2012    G.Cosmo, medical_linac-V09-05-07
              - Explicit inclusion of units and constants headers.

13.06.2012    G.Cosmo, medical_linac-V09-05-06
              - Dummy initialisation for voxel.volumeId to zero in
                CML2ExpVoxels::loadData(). Fixes compilation warning
                on gcc-4.7.

13.06.2012    G.Cosmo, medical_linac-V09-05-05
	      - Fixed incorrect string comparison in ML2PhantomConstruction.
                Fixes compilation warning MacOSX/clang.

14.05.2012    L.Pandola, G.A.P.Cirrone, medical_linac-V09-05-04
	      - Remove warning. Clean up unused files

11.05.2012    G.Folger,G.A.P.Cirrone, medical_linac-V09-05-03
              - Correction of all warnings for gcc4.6
	      - add batch.mac to run without graphics output

04.05.2012    G.A.P.Cirrone,    medical_linac-V09-05-02
              - Correction to remove additional warnings

04.05.2012    G.A.P.Cirrone,    medical_linac-V09-05-01
              - Removed warnings related to the DICOM part

08.12.2011    P. Mato,                 medical_linac-V09-05-00
	      - Added CMakeLists.txt file

24.11.2011    G.Folger,                 medical_linac-V09-04-03
	      - Warning removed for gcc41: correct return type of
	        ML2PrimaryGenerationAction::getNrecycling to G4int.

22.11.2011    C.Andenna, G.A.P.Cirrone, medical_linac-V09-04-02
	      - Warnings removed

04.11.2011    F.Romano, tag medical_linac-V09-04-01
             - Migration to new G4Exception scheme

06.06.2011    V.Ivanchenko, tag medical_linac-V09-04-00
             - removed obsolete hadron elastic builders

30.11.2010    J.Allison, tag medical_linac-V09-03-11
             - vis.mac: Bug fix:
               o /vis/viewer/set/autoRefresh true/false were inverted.

30.11.2010    J.Allison, tag medical_linac-V09-03-10
             - Introduced G4UIExecutive.

29.11.2010    C.Andenna, B.Caccia, G.A.P.Cirrone, tag medical_linac-V09-03-09
	     - Warings removal
	     - Corrected and updated the vis.mac file
	     - Minor revisions

29.11.2010    C.Andenna, B.Caccia, G.A.P.Cirrone, tag medical_linac-V09-03-08
	     - Added a 'results' folder to store simulation outputs
	     - Minor revisions

29.11.2010   G.A.P.Cirrone, tag medical_linac-V09-03-07
	     - Completed the DICOM files transfer

29.11.2010   G.A.P.Cirrone, tag medical_linac-V09-03-06
	     - Updating directories

25.11.2010   C.Andenna, B.Caccia, G.A.P.Cirrone, tag medical_linac-V09-03-05
	     - Fixed a memory leak

25.11.2010   C.Andenna, B.Caccia, G.A.P.Cirrone, tag medical_linac-V09-03-04
	     - Eliminated the local environmental variables (ML2FILEIN, ML2FILEOUT)
	     - Added a phantom based on dicom CT images (taken from the extended example DICOM)
	     - Added the capability to rotate the accelerator (around the X axis and around the Y axis of a fix 90 deg angle)
	     - Added the capability to translate the phantom
	     - Modified the format of the output files

25.11.2010   C. Andenna, B.Caccia, G.A.P.Cirrone, tag medical_linac-V09-03-03
	     - Created launches folder

25.11.2010   G.A.P.Cirrone, tag medical_linac-V09-03-02
	     - removed no more useful files and folders

17.11.2010   J.Allison tag medical_linac-V09-03-01
	     - ml2.cc: Introduced G4UIExecutive.
	     - ML2Ph_BoxInBoxMessenger.cc: Uncommented SetNewValue in order to
	     resolve external reference.

03.06.2010   J.Perl tag medical_linac-V09-03-00
	     Update vis usage

19.11.2009   C. Andenna, B. Caccia, G.A.P.Cirrone tag medical_linac-V09-02-05
	     History corrected, changed the local environmental variables name

18.11.2009   C. Andenna, B. Caccia, G.A.P.Cirrone tag medical_linac-V09-02-04
	     updated of the include and src files, written the README_MedLinac2.txt.

17.11.2009   C. Andenna, B. Caccia, G.A.P.Cirrone tag medical_linac-V09-02-03
	     first realise of the new version of the medical linac

18.09.2009   G.A.P.Cirrone, tag medical_linac-V09-02-02
           - Corrected a crash in the MedLinacHead.cc file class.
           - Update of the physics models: deleted the old and not
             more supported Lowenergy electromagnetic models and
             added the possibility to activate the physics lists and the
             Reference physics lists (or packages) directly
             via macro command;
           - Added the possibility to set cuts and max allowed step lenghts
             via macro commands

15.09.2009   G.A.P.Cirrone, tag medical_linac-V09-02-01
             GNUmakefile corrected

06.04.2009   G.A.P.Cirrone, tag medical_linac-V09-02-00
             GNUmakefile updated

06.07.2007   Michela Piergentili, tag medical_linac-V08-03-02
             bug 880 fixed in Detector Construction

01.07.2007   Michela Piergentili, tag medical_linac-V08-03-01
	     macro updated

01.07.2007   Michela Piergentili, tag medical_linac-V08-03-00
	     removed MedLinacVisManager, set initial seed to 0
	     The example compiles with CLHEP 2.0.3.1
	     use of MultipleScattering instead of MultipleScattering52

08.12.2005   Michela Piergentili , tag medical_linac-V07-01-05
	     updated macro for visualization

07.12.2005   Susanna Guatelli, tag medical_linac-V07-01-04
             The example compiles with CLHEP 2.0.2.2

25.11.2005   Michela Piergentili , tag medical_linac-V07-01-03
	     update README file, added new methods to messengers
	     for the selection of the detector features

25.11.2005   Michela Piergentili , tag medical_linac-V07-01-02
	     code maitenance

24.11.2005   Michela Piergentili , tag medical_linac-V07-01-01
             code maitenance

24.11.2005   Michela Piergentili , tag medical_linac-V07-01-00
             code maitenance

13.07.2005   Michela Piergentili, tag medical_linac-V07-00-06
             macro added

04.07.2005   Michela Piergentili, tag medical_linac-V07-00-05
             code with DIANE, added histograms

04.07.2005   Michela Piergentili, tag medical_linac-V07-00-04
             code with DIANE

02.06.2005   Michela Piergentili, tag medical_linac-V07-00-03
	     code maintenance

02.06.2005   Michela Piergentili, tag medical_linac-V07-00-02
	     Bug fixed in ROGeometry

3rd May 2005  John Allison  (examples-V07-00-03)
- Replaced vis manager with G4VisExecutive.

25.11.2004   Michela Piergentili, tag medical_linac-V06-02-00
	     Maintenance of the code.

24.11.2004   Michela Piergentili, tag medical_linac-V07-00-01
	     Added MedLinacTrackingAction, MedLinacMLCDecorator
	     and MedLinacMLCMessenger.

24.11.2004   Michela Piergentili, tag medical_linac-V07-00-00
	     Migration to <cmath>

21.05.2004   Michela Piergentili, tag medical_linac-V06-01-03
	     modified documentation

21.05.2004   Michela Piergentili, tag medical_linac-V06-01-02
	     added README

14.05.2004   Michela Piergentili, tag medical_linac-V06-01-01
	     decorator design iteration implemented, bug fixed in
	     MedLinacPhantomSD, cut per region introduced for the
	     first collimator

02.04.2004   Michela Piergentili, tag medical_linac-V06-01-00
	     geometry completed, bug fixed in DetectorConstruction

18.03.2004   Michela Piergentili, tag medical_linac-V06-00-00
             First created

