# Example ReverseMC01 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!

## 2022-12-14 Ben Morgan (ReverseMC01-V11-01-00)
- Remove inclusion of unneeded and now obsolete G4strstreambuf header

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

---

# History entries prior to 11.0

November 6th, 2021 I. Hrivnacova (ReverseMC01-V10-07-02)
- Added analysis manager Clear() call instead of
  deleting in the end of run (removed on July 22)

October 6th, 2021 I. Hrivnacova (ReverseMC01-V10-07-01)
- Migration to new G4AnalysisManager.hh header;
  added include of g4hntools_defs.hh for G4H1 typedefs 
  (used in class headers)

July 22nd, 2021 I.Hrivnacova (ReverseMC01-V10-07-00)
- Updated for changes in the analysis category:
  removed deleting of the analysis manager,
  as this is now done by the Geant4 kernel.

November 13th, 2020 Ben Morgan (ReverseMC01-V10-06-02)
- Enforce use of Serial RunManager.

November 10th, 2020 Ben Morgan (ReverseMC01-V10-06-01)
- Migration to G4RunManagerFactory.

May 17, 2020 V.Ivanchenko  (ReverseMC01-V10-06-00)
- RMC01AnalysisManager - use G4double for computation of mean and RMS,
    added protection for sqrt argument, to avoid a problem due to precision
    loss in arithmetic computations

Nov 18, 2019 G.Cosmo  (ReverseMC01-V10-05-01)
- Fixed cases of type conversions from size_t to G4int in B5HodoscopeSD.

Sep 11, 2019 I.Hrivnacova  (ReverseMC01-V10-05-00)
- Updated for clean-up in analysis typedefs:
  G4AnaHn types replaced with G4Hn

May 20, 2018 J.Allison  (ReverseMC01-V10-04-00)
- Add #include "G4Types.hh"
- Remove G4UI_USE and G4VIS_USE.
- Move instantiation of G4UIExecutive nearer to start of main.

Nov 6, 2017 V.Ivanchenko  (ReverseMC01-V10-03-01)
- G4AdjointPhysicsList - use SetEmModel(..) instead of AddEmModel
    where possible in order to remove initialisation warning

Oct 12, 2017 V.Ivanchenko  (ReverseMC01-V10-03-00)
- G4AdjointPhysicsList - do not reset lateral displacement
    algorithm in the Urban msc model

Nov 16, 2016 L. Desorgher  (ReverseMC01-V10-02-03)
- New attempt to solve the FPE issue  RMC01AnalysisManager::ComputeMeanEdepAndError()
  remove of floating point exception issue.

Nov 11, 2016 L. Desorgher  (ReverseMC01-V10-02-02)
- Modification in of RMC01AnalysisManager::ComputeMeanEdepAndError()
  remove of floating point exception issue.

Nov 1, 2016 L. Desorgher  (ReverseMC01-V10-02-01)
- Modification in RMC01AnalysisManager:::EndOfEventForAdjointSimulation() to
  loop over the list of tracks reaching the external surface.
  New features introduced in GEANT4.10.3.

- Modification of RMC01AnalysisManager::ComputeMeanEdepAndError()
  Remove the use of fNentry  introduced in tag ReverseMC01-V10-01-00
  in the computation of the mean and error of energy deposition.
  The use of nb_event is restored. This is crucial for a correct normalisation!

-Modification in the physics list in order to use the processes
 G4AdjointForcedInteractionForGamma and G4eAdjointMultipleScattering.

- Adaptation of the README file.

Oct 14th, 2016 G.Folger             (ReverseMC01-V10-02-00)
- remove direct use of theParticleIterator, use GetParticleTableIterator().
    fix required by clang39 on Linux and MAC

Jul 20th, 2016 I. Hrivnacova
- Coding guidelines (redundant empty lines, class member function names)

21-May, 2015  V.Ivanchenko         (ReverseMC01-V10-01-00)
- RMC01AnalysisManager - a variable fNentry is added in order correctly
    compute mean and error of energy deposition

29-November, 2013  L.Hrivnacova
- Updated .README

11-November, 2013  L.Desorgher     (ReverseMC01-V09-06-05)
- Change in RMC01AnalysisManager to avoid compilation error on some platforms.
  The histogramming was modified following the histrogramming used in the
  example AnaEx01.

07-November, 2013  L.Desorgher     (ReverseMC01-V09-06-04)
- Migration to the use of G4histos
- Remove old histogram classes
- Slight modifications into the main in order to migrate to the new RMC tracking schema
  where reverse tracking and forward tracking of adjoint and forward
  equivalent particles are processed  in the same events.This for preparing for
  the migration to the G4MT mode of the ReverseMC

29-July, 2013  P.Gumplinger    (ReverseMC01-V09-06-03)
- fix clang32 compilation warnings

12-June, 2013  I.Hrivnacova    (ReverseMC01-V09-06-02)
- Applied coding guidelines (virtual keyword, data members initialization)
- Code clean-up: indention, redundant public/protected/private keywords

07-June, 2013  L.Desorgher     (ReverseMC01-V09-06-01)
- Finish modification for coding guide lines.

24-January, 2013 V.Ivanchenko (ReverseMC01-V09-06-00)
- G4AdjointPhysicsList - removed unused obsolete headers

28-November, 2012 G.Cosmo (ReverseMC01-V09-05-06)
- Fixed cases of variable shadowing.

16-November, 2012 I.Hrivnacova  (ReverseMC01-V09-05-05)
- Fixed .README file for artefacts from Markdown support

04-September, 2012 I.Hrivnacova  (ReverseMC01-V09-05-04)
- Renamed macros to have an extension .mac (was .g4mac)
- Updated CMakeLists.txt:
  adding visualization, copying macros, install target and comment lines

14-June, 2012  L.Desorgher     (ReverseMC01-V09-05-03)
- Add .README for doxygen documentation

13-June, 2012  L.Desorgher     (ReverseMC01-V09-05-02)
- Update/Review of the code according to coding guide lines 2.2-3.3

05-April, 2012  L.Desorgher     (ReverseMC01-V09-05-01)
- Update/Review of the code according to coding guide line 2.1

04-April, 2012  L.Desorgher     (ReverseMC01-V09-05-00)
- Update/Review of the code according to coding guide line 1.3,1.4, and 1.5


03-October, 2011  G.Folger     (ReverseMC01-V09-04-01)
- Fix gcc46 compilation warning in  RMC01AnalysisManager.cc

25-January, 2011  G.Folger     (ReverseMC01-V09-04-00)
- Add protection for unitialised mean&error in RMC01AnalysisManager::ComputeMeanEdepAndError()

11-November, 2010 L. Desorgher (ReverseMC01-V09-03-04)
- Add initialisation of thepIonisation in G4AdjointPhysicsList constructor.
- Modify some test on nb_event in  RMC01AnalysisManager::ComputeMeanEdepAndError
  and inRMC01AnalysisManager::EndOfEvent.
- Correct the density of Si in RMC01DetectorConstruction
  and correct the position of the lower Ta plate.


21-October-2010, Gunter Folger (ReverseMC01-V09-03-03)
-  fix compilation error on ambigous std::sqrt on Windows

19-October-2010, Gunter Folger (ReverseMC01-V09-03-02)
- src/RMC01AnalysisManager.cc: explicit conversion to G4int, to avoid compiler
  warning

June 4th, 2010 J.Perl (ReverseMC01-V09-03-01)
- Updated vis usage.

May 12th, 2010 J.Allison (ReverseMC01-V09-03-00)
- Introduced G4Executive.

December 10th, 2009 L.Desorgher (ReverseMC01-V09-02-02)
 -Update of the README file

November 27th, 2009 L.Desorgher (ReverseMC01-V09-02-01)
 -Update of the analysis code:
	 -for registering in  Conv* ASCII files every 5000 events the computed edep with  precision.
	 -Correction of the adjoint computed current and answer matrices by a factor n_asked/n_processed for the case
	  where a run is aborted because the user expected precision on e_dep has been reached.
 -Important update of the README file
 -Rename g4mac files run_*_simulation.g4mac files by   run_*_simulation_electron.g4mac
 -Add g4mac files run_*_simulation_proton.g4mac


November 20th, 2009 L.Desorgher (ReverseMC01-V09-02-00)
 -Slight update of the code for unit of answer matrices.
 -Adding draft of README file


November 19th, 2009 L.Desorgher (no tag)
 -First commit to the Geant4 repository

