# Category emadjoint 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! ------------------------------------------------------------------------------- ## 2025-11-24 Vladimir Ivantchenko (emadjoint-V11-03-01) - G4AdjointAlongStepWeightCorrection - fixed compilation warning ## 2025-07-12 Vladimir Ivantchenko (emadjoint-V11-03-00) - G4ContinuousGainOfEnergy - updated signature of CorrectionsAlongStep(..) ## 2024-11-01 Laurent Desorgher (emadjoint-V11-02-01) - Add attribute fLastFreeFlightTrackId in G4AdjointForcedInteractionForGamma in order to run adjoint simulation in MT mode - Add attribute fCurrentParticleDef in G4AdjointCSmanager in order to run adjoint simulation in MT mode ## 2024-10-10 Gabriele Cosmo (emadjoint-V11-02-00) - Fixed reported Coverity defects for use of const G4String& and std::move(). - Minor code cleanup (use of default destructor, std::size_t, G4 types, ...). ## 2022-11-23 Gabriele Cosmo (emadjoint-V11-00-05) - Fixed more compilation warnings for implicit type conversions. ## 2022-11-18 Gabriele Cosmo (emadjoint-V11-00-04) - Fixed compilation warnings for implicit type conversions on macOS/XCode 14.1. ## 2022-08-31 Gabriele Cosmo (emadjoint-V11-00-03) - Fixed defects reported by Coverity in G4AdjointCSManager, to use auto&. ## 2022-03-07 Vladimir Ivanchenko (emadjoint-V11-00-02) - G4AdjointComptonModel, G4AdjointCSManager - used updated interface to cross section from G4VEmProcess ## 2022-03-07 Vladimir Ivanchenko (emadjoint-V11-00-01) - G4AdjointBremsstrahlungModel - use updated interface to G4EmModelManager ## 2021-12-10 Ben Morgan (emadjoint-V11-00-00) - Change to new Markdown History format --- # History entries prior to 11.0 29 October 2021: L. Desorgher (emadjoint-V10-07-07) - G4AdjointForcedInteractionForGamma : Improve the forced interaction for gamma reverse tracking for thick shielding - G4AdjointhIonisationModel : Correct weight correction to limit dependence of proton dose results on cut in range - G4AdjointCSManager : Fixing of coverity issues - G4VEMAdjointModel : Fixing of coverity issues 18 July 2021: V. Ivanchenko (emadjoint-V10-07-06) G4AdjointCSManager - updated interfaces to G4PhysicsVector 16 Apr 2021: B. Morgan (emadjoint-V10-07-05) - Migrate build to modular CMake API 28 Mar 2021: V. Ivanchenko (emadjoint-V10-07-04) - G4ContinuousGainOfEnergy - used updated signature for ion ionisation 22 Mar 2021: V. Ivanchenko (emadjoint-V10-07-03) - G4VEmAdjointModel - minor clean-up 12 Mar 2021: D. Sawkey (emadjoint-V10-07-02) - free resources in destructors - fix uninitialized variables 8 Mar 2021: D. Sawkey (emadjoint-V10-07-01) - Second large round of cleaning for v11 release - use 'virtual' and 'override' methods consistently - member variables start with f; shorten long names - remove unused variables; make class variables local where appropriate - order declarations of class variables - define class variables - removed unused functions - mark copy/assignment operators as 'delete' - add ProcessDescriptions - remove ChangeHistory from top of code - replace 2.*3.14... with CLHEP::twopi - remove more unused headers 20 Feb 2021: D. Sawkey (emadjoint-V10-07-00) - First pass on large cleaning for v11 release - apply clang-format style guidelines - apply C++11 codewords to method declarations: virtual, override, explicit - delete unused variables and methods - start naming class member variables with f - use nullptr instead of 0 - remove unused headers - use constexpr for numbers 11 Mar 2019: G. Cosmo (emadjoint-V10-05-00) -Fixed typos in printouts and comments. 06 Nov 2017: V. Ivanchenko (emadjoint-V10-03-01) -Extended correction of occurrence of FPE in G4AdjointForcedInteractionForGamma. -G4eAdjointMultipleScattering - change index of the default accourding to recent modifications in emutils 27 Jan 2017: L. Desorgher (emadjoint-V10-03-00) -Correction of occurrence of FPE in G4AdjointForcedInteractionForGamma. 27 Octb 2016: L. Desorgher (emadjoint-V10-02-03) -Correction in G4AdjointForcedInteractionForGamma to avoid high weight of forced gamma when only the brem is used. -Modification in G4AdjointBremsstrahlungModel to use the direcet angular model to compute the direction of the adjoint secondary -Add G4UrbanAdjointMscModel.cc and G4eAdjointMultipleScattering.cc 18 Octb 2016: L. Desorgher (emadjoint-V10-02-02) -Correct use of logical or in G4AdjointForcedInteractionForGamma for compilation error under windows. 17 Octb 2016: L. Desorgher (emadjoint-V10-02-01) -Correct G4AdjointForcedInteractionForGamma for compilation error under windows. 26 Sept 2016: L. Desorgher (emadjoint-V10-02-00) -Add new adjoint process G4AdjointForcedInteractionForGamma to force the reverse interaction of adjoint gamma. -Slight modifications of G4VEmAdjointModel for new forced interaction -Some corrections in G4AdjointBremsstrahlungModel 24 Oct 2015: V.Ivanchenko (emadjoint-V10-01-03) - G4AdjointCSManager - use G4ThreadLocalSingleton pattern, fixed computation of A of an element, added initialisation of all class members in the constructor 17 Oct 2015: V.Ivanchenko (emadjoint-V10-01-02) - G4VEmAdjointModel - fixed Coverity reported problem 07 Aug 2015: V.Ivanchenko (emadjoint-V10-01-01) - G4VEmAdjointModel, G4ContinuousGainOfEnergy, G4AdjointPhotoElectricModel, G4AdjointInterpolator, G4AdjointComptonModel, G4AdjointCSMatrix, G4AdjointCSManager - add checks for while loops 21 May 2015: V.Ivanchenko (emadjoint-V10-01-00) - G4AdjointhMultipleScattering - make it coherent with the forward msc processes 10 Apr 2014: V.Ivanchenko (emadjoint-V10-00-00) - G4VAdjointReverseReaction - added protection against infinite loop in ReverseMC01 example: if cross section correction exceed 100 the total cross section is set to zero 31 Oct 2013: L.Desorgher (emadjoint-V09-06-09) - Modifications for limitation of convergence peak - G4AdjointBremsstrahlungModel - biased the gamma->e.- reverse brem CS by factor 100 - G4AdjointComptonModel -biased the CS by a factor 0.1 19 Oct 2013: V.Ivanchenko (emadjoint-V09-06-08) - G4AdjointBremsstrahlungModel - removed unused obsolete headers 21 Jul 2013: V.Ivanchenko (emadjoint-V09-06-07) - G4AdjointhMultipleScattering - use G4UrbanMscModel instead of G4UrbanMscModel95 03 Jul 2013: V.Ivanchenko (emadjoint-V09-06-06) - G4ContinuousGainOfEnergy - changed interface to G4VEmFluctuation 17 Jun 2013: G.Cosmo (emadjoint-V09-06-05) - Cleanup from automatica changes for MT in G4AdjointInterpolator. 24 Jan 2013: V.Ivanchenko (emadjoint-V09-06-04) - G4AdjointPhotoElectricModel - define current G4MaterialCutsCouple for the direct model 22 Feb 2013: L.Desorgher (emadjoint-V09-06-03) -Remove of unused variables detected by compilation warnings. 23 Jan 2013: V.Ivanchenko (emadjoint-V09-06-02) 11 Jan 2013: V.Ivanchenko (emadjoint-V09-06-01) - G4AdjointhMultipleScattering - use msc95 instead of msc90 - G4AdjointeIonisationModel - removed unused obsolete header 12 Dec 2012: V.Ivanchenko (emadjoint-V09-06-00) - G4AdjointPhotoElectricModel use G4PEEffectFluoModel instead of obsolete G4PEEffectModel 30 Oct 2012: L. Desorgher (emadjoint-V09-05-04) -Inclusion of headers for system of units and physical constants in G4AdjointBremsstrahlungModel 26 Oct 2012: L.Desorgher (emadjoint-V09-05-03) -G4AdjointBremsstrahlungModel changed to use G4SeltzerBergerModel as forward model by default -Correct differential CS expression in G4VEmAdjointModel -Get the weight from PostStepPoint instead of from Track when correcting the step in along stepping actions of G4ContinuousGainOfEnergy and G4AdjointAlongStepWeightCorrection. THis is needed for a correct propagation of weight correction in different along step actions. 10 Jul 2012: G.Cosmo (emadjoint-V09-05-02) - Explicitly use inclusion of headers for system of units and physical constants, in plan to remove implicit inclusion from globals.hh. 08 Jun 2012: V.Ivanchenko (emadjoint-V09-05-01) - Fixed shadowing 06 Jun 2012: V.Ivanchenko (emadjoint-V09-05-00) - G4AdjointhMultipleScattering - comment out obsolete call 24 Jun 2011: V.Ivanchenko (emadjoint-V09-04-03) - G4AdjointAlongStepWeightCorrection,G4ContinuousGainOfEnergy, G4VEmAdjointModel - fixed initialisation of currentCouple class member in constructor (Valgrind report) 10 Jun 2011: G.Cosmo (emadjoint-V09-04-02) - Fixed initialization of index in G4VAdjointReverseReaction constructor, also causing compilation warning. 31 May 2011: L.Desorgher (emadjoint-V09-04-01) Coverity fixes -G4AdjointAlongStepWeightCorrection -add delete of fParticleChange in destructor of (defect 20316) -Initialise scalar attributes and remove currentTCut attribute (defect 15568) -G4AdjointBremsstrahlungModel -add delete of theDirectStdBremModel and theEmModelManagerForFwdModels in destructor (defect 23146) -remove the attribute theTimer (defect 20317) -Initialize lastCZ in constructor (defect 15569) -G4AdjointCSManager -Initialize currentCouple, currentMaterial, and lastMaterial in constructor (defect 20343) -G4AdjointCSMatrix -Initialize dlog in constructor (defect 15203) -G4AdjointComptonModel -Initialize G4direct_CS in constructor (defect 15570) -G4AdjointInterpolator -Comment dead code in FindPositionForLogVector (defect 14959) -G4AdjointPhotoElectricModel -Add initialization of some attributes in constructor (defect 15572) -G4AdjointhIonisationModel -Remove unused attributes (defect 15573) -Initialize theAdjEquivOfDirectPrimPartDef outside if condition (defect 15573) -G4AdjointhMultipleScattering -Add some initialization of attributes in constructor (defect 15574) -G4ContinuousGainOfEnergy -Add some initialization of attributes in constructor (defect 15575) -G4VAdjointReverseReaction -Add some initialization of attributes in constructor (defect 15576) -G4VEmAdjointModel -Comment dead code in GetAdjointCrossSection (defect 23168) -Neglect at the moment coverity bug 20612-20618. 27 May 2011: L. Desorgher (emadjoint-V09-04-00) -Remove few unused variables to avoid compilation warning with gcc-4.6.0. 11 Nov 2010: L. Desorgher (emadjoint-V09-03-02) -G4AdjointBremsstrahlungModel: add a G4EmModelManager to initialise properly, the G4eBremsstrahlungModel used as forward model. This allows to fix the floating point exception detected when compiling with G4FPE_DEBUG=1. -G4AdjointhIonisation: Remove a negative term in the expression of the adjoint cross section (AdjointCrossSection method) and adapt the RapidSampleSecondaries method. -G4VEmAdjointModel: Add a check on null cross section to avoid FPE. 3 Sep 2010: G.Cosmo (emadjoint-V09-03-01) - G4AdjointAlongStepWeightCorrection: get rid of call to non-Standard isnan(), replaced by explicit validity test. 12 Apr 2010: V.Ivanchenko (emadjoint-V09-03-00) - G4AdjointhMultipleScattering: removed obsolete unused header. 23 Nov 2009: G.Cosmo (emadjoint-V09-02-02) - Corrected compilation error on Windows for G4AdjointAlongStepWeightCorrection. 20 Nov 2009: L.Desorgher (emadjoint-V09-02-01) - Replace C++ type by G4 type where needed and adding of G4 disclaimer. 10 Nov 2009: L.Desorgher (emadjoint-V09-02-00) - Commit of the electromagnetic adjoint processes for the release of the all adjoint machinery into Geant4. Compared to the first commit, all e- processes have been improved and adjoint proton and ion ionisation have been added. The use of adjoint cross section matrices can be now limited only to e- Ionisation and Ion ionisation. The GNUmakefile has been modified by adding -I$(G4BASE)/geometry/navigation/include in CPPFLAGS. 14 Nov 2008: G.Cosmo (emadjoint-V09-01-00) - First commit.