Geant4 Cross Reference |
1 # Category field History 1 # Category field History 2 2 3 See `CONTRIBUTING.rst` for details of **requir 3 See `CONTRIBUTING.rst` for details of **required** info/format for each entry, 4 which **must** added in reverse chronological 4 which **must** added in reverse chronological order (newest at the top). 5 It must **not** be used as a substitute for wr 5 It must **not** be used as a substitute for writing good git commit messages! 6 6 7 ---------------------------------------------- 7 ------------------------------------------------------------------------------- 8 8 9 ## 2024-11-26 Ivana Hrivnacova (field-V11-02-0 << 10 - Better names for the G4EquationType enum con << 11 << 12 ## 2024-11-04 Philippe Canal (field-V11-02-05) << 13 - Improve stability of static initialization f << 14 StepperDescription() in G4DormandPrince745. << 15 << 16 ## 2024-09-10 Ivana Hrivnacova (field-V11-02-0 << 17 - Coverity fixes: << 18 - Use std::move, const auto& instead of auto << 19 << 20 ## 2024-06-20 Ivana Hrivnacova (field-V11-02-0 << 21 - Fix in G4FieldBuilder for local fields: << 22 apply the local fields in the order of user << 23 << 24 ## 2024-04-29 Ivana Hrivnacova (field-V11-02-0 << 25 - Added classes for automatic field constructi << 26 - G4FieldBuilder[Messenger], G4FieldParamete << 27 - No changes in other Geant4 classes << 28 << 29 ## 2024-04-17 Ben Morgan (field-V11-02-01) << 30 - Fix maybe-uninitialized warnings found in AT << 31 - Reported in internal ATLASSIM-6058 ticket. << 32 << 33 ## 2024-04-02 Gabriele Cosmo (field-V11-02-00) << 34 - Applied trivial clang-tidy fixes to classes, << 35 constructor/destructor, auto and using state << 36 - Minor cleanup in QSS classes. << 37 << 38 ## 2023-11-03 Gabriele Cosmo (field-V11-01-06) 9 ## 2023-11-03 Gabriele Cosmo (field-V11-01-06) 39 - Reinstated default DormandPrince745 stepper. 10 - Reinstated default DormandPrince745 stepper. 40 11 41 ## 2023-10-27 Lucio Santi (field-V11-01-05) 12 ## 2023-10-27 Lucio Santi (field-V11-01-05) 42 - Improvements on the QSS Stepper 13 - Improvements on the QSS Stepper 43 The main QSS integration loop is interrupted 14 The main QSS integration loop is interrupted when the number of substeps 44 exceeds a predefined threshold (set to 1000 15 exceeds a predefined threshold (set to 1000 by default). 45 16 46 ## 2023-06-14 Gabriele Cosmo (field-V11-01-04) 17 ## 2023-06-14 Gabriele Cosmo (field-V11-01-04) 47 - Applied clang-tidy fixes (readability, moder 18 - Applied clang-tidy fixes (readability, modernization, performance, ...). 48 19 49 ## 2023-06-12 John Apostolakis (field-V11-01-0 20 ## 2023-06-12 John Apostolakis (field-V11-01-03) 50 - Inclusion of QSS integration method. 21 - Inclusion of QSS integration method. 51 Most recent changes: 22 Most recent changes: 52 * Fixes for issue with SetPrecision (used un 23 * Fixes for issue with SetPrecision (used unitialised values of simulator->x) 53 * Updated values of parameters in G4Propagat 24 * Updated values of parameters in G4PropagatorInField to conservative values. 54 * Withdrew interim changes that made QSS the 25 * Withdrew interim changes that made QSS the default method for full testing. 55 26 56 ## 2023-05-26 Lucio Santi 27 ## 2023-05-26 Lucio Santi 57 - Fixes for open issues: 28 - Fixes for open issues: 58 * default values for QSS made stricter dQRel 29 * default values for QSS made stricter dQRel=0.001, dQMin=0.0001 (QSSDriver.icc) 59 to improve behaviour in full experiment te 30 to improve behaviour in full experiment test 60 * implemented missing DistChord method -- ne 31 * implemented missing DistChord method -- needed to enable stepping with Chord limit 61 32 62 ## 2023-01-31 John Apostolakis 33 ## 2023-01-31 John Apostolakis 63 - Initial inclusion of QSS integration method. 34 - Initial inclusion of QSS integration method. 64 Renamed classes to include 'G4' prefix, and 35 Renamed classes to include 'G4' prefix, and moved them from qss/ subdirectory. 65 Added Geant4 disclaimer / license to files. 36 Added Geant4 disclaimer / license to files. 66 Removed QSSmessenger from RunManager and G4P 37 Removed QSSmessenger from RunManager and G4PropagatorInField 67 - Temporarily made QSS the default method for 38 - Temporarily made QSS the default method for full testing. 68 39 69 ## 2023-01-30 Rodrigo Castro, Lucio Santi & Le 40 ## 2023-01-30 Rodrigo Castro, Lucio Santi & Leandro Gomez Vidal 70 - Included Quantum State Simulation (QSS) inte 41 - Included Quantum State Simulation (QSS) integration method 71 Alternative method of integration which crea 42 Alternative method of integration which creates approximation 72 functions for each coordinate (x,p) - changi 43 functions for each coordinate (x,p) - changing the interpolation 73 polynomials when the deviation from exact so 44 polynomials when the deviation from exact solution is larger than 74 a threshold value. 45 a threshold value. 75 Offers built-in interpolation capability - e 46 Offers built-in interpolation capability - enabling faster finding 76 of the intersection of the trajectory with s 47 of the intersection of the trajectory with surfaces. 77 Currently restricted to using only with a pu 48 Currently restricted to using only with a pure magnetic field. 78 Created by Rodrigo Castro and Lucio Santi, w 49 Created by Rodrigo Castro and Lucio Santi, with contributions 79 by Leandro A. Gómez Vidal (and others?) 50 by Leandro A. Gómez Vidal (and others?) 80 51 81 ## 2023-03-16 Ben Morgan (field-V11-01-02) 52 ## 2023-03-16 Ben Morgan (field-V11-01-02) 82 - Fixed compilation warnings on clang-15 for m 53 - Fixed compilation warnings on clang-15 for mismatched bounds declarations 83 in input parameters for steppers. 54 in input parameters for steppers. 84 55 85 ## 2023-01-09 Ben Morgan (field-V11-01-01) 56 ## 2023-01-09 Ben Morgan (field-V11-01-01) 86 - Use PROJECT_ scoped _SOURCE/BINARY_DIR varia 57 - Use PROJECT_ scoped _SOURCE/BINARY_DIR variables in place of CMAKE_ 87 scope version to ease use of Geant4 as a CMa 58 scope version to ease use of Geant4 as a CMake subproject. 88 - Fixes [GitHub PR #52](https://github.com/G 59 - Fixes [GitHub PR #52](https://github.com/Geant4/geant4/pull/52) 89 60 90 ## 2022-12-09 Laurie Nevay (field- 61 ## 2022-12-09 Laurie Nevay (field-V11-01-00) 91 - Reduced printout for setting any valid value 62 - Reduced printout for setting any valid value for epsilon_min / _max in 92 G4FieldManager. 63 G4FieldManager. 93 64 94 ## 2022-11-28 Gabriele Cosmo (field- 65 ## 2022-11-28 Gabriele Cosmo (field-V11-00-05) 95 - Fixed restore of stream precision in G4Field 66 - Fixed restore of stream precision in G4FieldManager::ReportBadEpsilonValue(). 96 67 97 ## 2022-11-14 John Apostolakis (field- 68 ## 2022-11-14 John Apostolakis (field-V11-00-04) 98 - Revised G4FieldManager to ensure that epsilo 69 - Revised G4FieldManager to ensure that epsilon_min / _max parameters 99 are less than a 'maximum accepted' accuracy 70 are less than a 'maximum accepted' accuracy (now=0.02) to ensure robust 100 behaviour of the integration. Improved their 71 behaviour of the integration. Improved their Set methods, adding 101 - warnings if min > max, with corrective be 72 - warnings if min > max, with corrective behaviour, and 102 - a fatal exception in case of values outsi 73 - a fatal exception in case of values outside the accepted range. 103 74 104 To cope with needs of legacy applications or 75 To cope with needs of legacy applications or existing needs for performance, 105 the value of the 'ceiling' maximum accepted 76 the value of the 'ceiling' maximum accepted accuracy can be modified using 106 the new static method 77 the new static method 107 G4FieldManager::SetMaxAcceptedEpsilon( 78 G4FieldManager::SetMaxAcceptedEpsilon( maxAccept, softFail); 108 but must remain under or equal to a final ce 79 but must remain under or equal to a final ceiling currently of 109 fMaxFinalEpsilon=0.03 80 fMaxFinalEpsilon=0.03 110 81 111 ## 2022-11-10 Gabriele Cosmo (field-V11-00-03) 82 ## 2022-11-10 Gabriele Cosmo (field-V11-00-03) 112 - Fixed compilation warnings for implicit type 83 - Fixed compilation warnings for implicit type conversions on macOS/XCode 14.1. 113 84 114 ## 2022-11-05 Divyansh Tiwari, John Apostolaki 85 ## 2022-11-05 Divyansh Tiwari, John Apostolakis (field-V11-00-02) 115 86 116 - Introduced G4BorisScheme and G4BorisDriver, 87 - Introduced G4BorisScheme and G4BorisDriver, a 2nd order symplectic 117 integration method, created as part of GSoC 88 integration method, created as part of GSoC 2022. 118 89 119 ## 2022-10-05 Gabriele Cosmo (field-V11-00-01) 90 ## 2022-10-05 Gabriele Cosmo (field-V11-00-01) 120 - Fixed compilation warnings on Intel/icx comp 91 - Fixed compilation warnings on Intel/icx compiler for variables set 121 but not used. 92 but not used. 122 93 123 ## 2021-12-10 Ben Morgan (field-V11-00-00) 94 ## 2021-12-10 Ben Morgan (field-V11-00-00) 124 - Change to new Markdown History format 95 - Change to new Markdown History format 125 96 126 --- 97 --- 127 98 128 # History entries prior to 11.0 99 # History entries prior to 11.0 129 100 130 March 30, 2021 B.Morgan 101 March 30, 2021 B.Morgan - field-V10-07-00 131 ----------------------- 102 ----------------------- 132 - Migrate sources.cmake to modular build API 103 - Migrate sources.cmake to modular build API 133 104 134 November 26, 2020 J.Apostolakis 105 November 26, 2020 J.Apostolakis - field-V10-06-09 135 ------------------------------- 106 ------------------------------- 136 - Fix to enable G4TDormandPrince45 to be used 107 - Fix to enable G4TDormandPrince45 to be used with G4InterpolationDriver. 137 108 138 This fix was needed because G4Interpolation 109 This fix was needed because G4Interpolation driver creates additional 139 copies of the stepper class. Due to this it 110 copies of the stepper class. Due to this it must obtain the equation 140 with the type of the templated stepper. 111 with the type of the templated stepper. 141 112 142 For a stepper to be used with 'G4Interpolati 113 For a stepper to be used with 'G4InterpolationDriver', it must 143 implement the method 114 implement the method 144 Equation_type GetSpecificEquation() 115 Equation_type GetSpecificEquation() 145 Templated steppers must ensure that the retu 116 Templated steppers must ensure that the return type 'Equation_type' 146 is the specific equation type of the templat 117 is the specific equation type of the template. 147 118 148 This method was added to G4DormandPrince745 119 This method was added to G4DormandPrince745 and G4TDormandPrince745. 149 120 150 October 12, 2020 J.Apostolakis 121 October 12, 2020 J.Apostolakis - field-V10-06-08 151 ------------------------------ 122 ------------------------------ 152 - Fixes & refinements - mostly in templated cl 123 - Fixes & refinements - mostly in templated classes, tests. 153 Compilation fixes, e.g. missing include <cas 124 Compilation fixes, e.g. missing include <cassert>. 154 Refinements, e.g. int -> unsigned int in tem 125 Refinements, e.g. int -> unsigned int in templates 155 126 156 October 9, 2020 J.Apostolakis 127 October 9, 2020 J.Apostolakis - field-V10-06-07 157 ----------------------------- 128 ----------------------------- 158 - Configure G4ChordFinder to use templated G4T 129 - Configure G4ChordFinder to use templated G4TDormandPrince45 as the 159 default stepper for magnetic fields (when on 130 default stepper for magnetic fields (when one is not chosen 160 explicitly by the application.) 131 explicitly by the application.) 161 132 162 October 9, 2020 J.Apostolakis & J. Xie 133 October 9, 2020 J.Apostolakis & J. Xie - field-V10-06-06 163 -------------------------------------- 134 -------------------------------------- 164 - Adapted classes that avoid virtual calls for 135 - Adapted classes that avoid virtual calls for field, equation, stepper 165 created by Josh Xie (Google Summer of Code 2 136 created by Josh Xie (Google Summer of Code 2014), supervised by 166 S. Wenzel & J.A. 137 S. Wenzel & J.A. 167 138 168 The revised design and implementations inclu 139 The revised design and implementations include: 169 * equation of motion templated on the field 140 * equation of motion templated on the field type; 170 * steppers templated on the type of equatio 141 * steppers templated on the type of equation and the number of integration 171 variables. 142 variables. 172 In addition the key methods are marked as 'i 143 In addition the key methods are marked as 'inline' to enable compilers, where 173 they judge possible, to embed them and avoid 144 they judge possible, to embed them and avoid any function calls. 174 145 175 These classes can be combined also with the 146 These classes can be combined also with the templated drivers 176 (G4IntegrationStepper, G4FSALIntegrationStep 147 (G4IntegrationStepper, G4FSALIntegrationStepper and/or G4InterpolationDriver 177 to avoid virtual calls in all the levels up 148 to avoid virtual calls in all the levels up to the chord finder's call to 178 the integration driver. ] 149 the integration driver. ] 179 150 180 The types of stepper currently available are 151 The types of stepper currently available are 181 i) the originally developed intermediate ord 152 i) the originally developed intermediate order stepper: 182 153 183 - Name (templated) - original -- Order/ 154 - Name (templated) - original -- Order/ - Comments 184 / E 155 / Embdedded 185 =========================================== 156 ============================================================================== 186 G4TClassicalRK4: G4ClassicalRK4 4th / 157 G4TClassicalRK4: G4ClassicalRK4 4th / no robust, old default 187 G4TCashKarpRKF45: G4CashKarpRKF45 5th / 158 G4TCashKarpRKF45: G4CashKarpRKF45 5th / yes first embedded RK in G4 188 159 189 ii) the original low order steppers (for spe 160 ii) the original low order steppers (for specialised uses) 190 G4TSimpleHeum: G4SimpleHeum 3rd / 161 G4TSimpleHeum: G4SimpleHeum 3rd / no lower order alternative 191 G4TSimpleRunge: G4SimpleRunge 2nd / 162 G4TSimpleRunge: G4SimpleRunge 2nd / no very low order 192 G4TExplicitEuler: G4ExplicitEuler 1st / 163 G4TExplicitEuler: G4ExplicitEuler 1st / no lowest order - for checks only 193 164 194 and 165 and 195 iii) some newly adapted stepper(s) / ( J.A. 166 iii) some newly adapted stepper(s) / ( J.A. Oct 2020 ) 196 G4TDormandPrince45 G4DormandPrince745 5th/ 167 G4TDormandPrince45 G4DormandPrince745 5th/ yes default / preferred 197 =========================================== 168 ============================================================================== 198 169 199 Note: Additional lower-order steppers are no 170 Note: Additional lower-order steppers are not yet available. 200 'Vector' steppers (using blaze) are no 171 'Vector' steppers (using blaze) are not supported. 201 172 202 Experimental versions of fields with inline 173 Experimental versions of fields with inline methods: 203 G4TUniformMagField, G4TQuadrupoleMagFiel 174 G4TUniformMagField, G4TQuadrupoleMagField 204 are included to show how the field evaluatio 175 are included to show how the field evaluation GetFieldValue can also be inlined. 205 176 206 Note 2: 177 Note 2: 207 Steppers which are not embedded obtain their 178 Steppers which are not embedded obtain their error estimates by 208 breaking the step into two halves, then comp 179 breaking the step into two halves, then comparing with the whole step. 209 As a result many more field / derivative eva 180 As a result many more field / derivative evaluations are needed than 210 embedded steppers of the same order, but the 181 embedded steppers of the same order, but the reliability of their error 211 estimation has different properties; so it m 182 estimation has different properties; so it may be more robust in some cases. ) 212 183 213 June 15, 2020 G.Cosmo 184 June 15, 2020 G.Cosmo - field-V10-06-05 214 --------------------- 185 --------------------- 215 - Implemented move constructor and operator fo 186 - Implemented move constructor and operator for G4FieldTrack. 216 187 217 March 24, 2020 J.Apostolakis 188 March 24, 2020 J.Apostolakis - field-V10-06-04 218 ---------------------------- 189 ---------------------------- 219 - New class G4DriverReporter to print progress 190 - New class G4DriverReporter to print progress of drivers. 220 Used for debugging differences between Old 191 Used for debugging differences between Old & fixed MagIntDriver 221 - Revisions in testing CMake config file and s 192 - Revisions in testing CMake config file and stepper/driver test 222 for magnetic field. 193 for magnetic field. 223 194 224 March 13, 2020 J.Apostolakis 195 March 13, 2020 J.Apostolakis - field-V10-06-03 225 ---------------------------- 196 ---------------------------- 226 - G4VIntegrationDriver & dependent driver clas 197 - G4VIntegrationDriver & dependent driver classes: 227 Added new virtual StreamInfo() method, 198 Added new virtual StreamInfo() method, 228 & used it to implement operator << for 199 & used it to implement operator << for G4VIntegrationDriver 229 Made (virtual) DoesReIntegrate() const. 200 Made (virtual) DoesReIntegrate() const. 230 - G4MagInt_Driver: Fixed max iterations & clar 201 - G4MagInt_Driver: Fixed max iterations & clarified that its 231 ComputeNewStepSize does NOT (yet) respect 202 ComputeNewStepSize does NOT (yet) respect maximum reduction factor (0.1). 232 ( Done to enable comparisons with new G4Inte 203 ( Done to enable comparisons with new G4IntegrationDriver<> implementation.) 233 - G4OldMagIntDriver maintains all old behaviou 204 - G4OldMagIntDriver maintains all old behaviour of G4MagInt_Driver. 234 205 235 206 236 January 22, 2020 G.Cosmo 207 January 22, 2020 G.Cosmo - field-V10-06-02 237 ------------------------ 208 ------------------------ 238 - Fixed compilation errors and configuration f 209 - Fixed compilation errors and configuration for field07 unit test. 239 210 240 January 13, 2020 G.Cosmo 211 January 13, 2020 G.Cosmo - field-V10-06-01 241 ------------------------ 212 ------------------------ 242 - Turn off verbosity flags by default in G4Int 213 - Turn off verbosity flags by default in G4IntegratorDriver, 243 G4InterpolationDriver and G4MagIntegratorDri 214 G4InterpolationDriver and G4MagIntegratorDriver. 244 215 245 December 10, 2019 B.Morgan 216 December 10, 2019 B.Morgan - field-V10-06-00 246 -------------------------- 217 -------------------------- 247 - Cleanup CMake build, removing obsolete granu 218 - Cleanup CMake build, removing obsolete granular library options and 248 explicit include_directories. 219 explicit include_directories. 249 220 250 November 14, 2019 J.Apostolakis 221 November 14, 2019 J.Apostolakis - field-V10-05-17 251 ------------------------------- 222 ------------------------------- 252 - Added method / attribute to G4VIntegrationDr 223 - Added method / attribute to G4VIntegrationDriver DoesReIntegrate() 253 to inform whether the driver recomputes seg 224 to inform whether the driver recomputes segment when 254 AccurateAdvance is called. 225 AccurateAdvance is called. 255 226 256 October 27, 2019 D.Sorokin 227 October 27, 2019 D.Sorokin - field-V10-05-16 257 ---------------------------- 228 ---------------------------- 258 - Remove statistics printouts from destructor 229 - Remove statistics printouts from destructor of G4BFieldIntegrationDriver 259 230 260 October 24, 2019 H.Burkhardt 231 October 24, 2019 H.Burkhardt - field-V10-05-15 261 ---------------------------- 232 ---------------------------- 262 - Standard sextupole magnet first implementati 233 - Standard sextupole magnet first implementation G4SextupoleMagField.cc,.hh 263 234 264 October 18, 2019 D. Sorokin 235 October 18, 2019 D. Sorokin - field-V10-05-14 265 ----------------------------------------- 236 ----------------------------------------- 266 - Fix floating point exception in G4BFieldInte 237 - Fix floating point exception in G4BFieldIntegrationDriver. 267 238 268 October 1, 2019 G. Cosmo 239 October 1, 2019 G. Cosmo - field-V10-05-13 269 ----------------------------------------- 240 ----------------------------------------- 270 - Fixed unitialised data in G4EqMagElectricFie 241 - Fixed unitialised data in G4EqMagElectricField and G4EqGravityField, 271 reported by Coverity. 242 reported by Coverity. 272 243 273 September 12, 2019 G. Cosmo 244 September 12, 2019 G. Cosmo - field-V10-05-12 274 ----------------------------------------- 245 ----------------------------------------- 275 - Minor C++11 revision. Code formatting and cl 246 - Minor C++11 revision. Code formatting and cleanup. 276 247 277 July 8, 2019 D. Sorokin 248 July 8, 2019 D. Sorokin - field-V10-05-11 278 ----------------------------------------- 249 ----------------------------------------- 279 - G4BFieldIntegrationDriver: an attempt to sol 250 - G4BFieldIntegrationDriver: an attempt to solve looping particle issue. 280 251 281 July 3, 2019 D. Sorokin 252 July 3, 2019 D. Sorokin - field-V10-05-10 282 ----------------------------------------- 253 ----------------------------------------- 283 - Make G4InterpolationDriver default for perfo 254 - Make G4InterpolationDriver default for performance assessments. 284 255 285 June 25, 2019 D. Sorokin 256 June 25, 2019 D. Sorokin - field-V10-05-09 286 ----------------------------------------- 257 ----------------------------------------- 287 - Fix Dormand-Prince 5th order interpolation m 258 - Fix Dormand-Prince 5th order interpolation method 288 259 289 June 20, 2019 D. Sorokin 260 June 20, 2019 D. Sorokin - field-V10-05-08 290 ----------------------------------------- 261 ----------------------------------------- 291 - New version of G4InterpolationDriver with mu 262 - New version of G4InterpolationDriver with multiple steppers for each substep. 292 263 293 June 12, 2019 D. Sorokin & J. Apostolakis 264 June 12, 2019 D. Sorokin & J. Apostolakis - field-V10-05-07 294 ----------------------------------------- 265 ----------------------------------------- 295 - Revert to use G4IntegrationDriver as default 266 - Revert to use G4IntegrationDriver as default in G4ChordFinder 296 ( c-tor for magnetic field. ). 267 ( c-tor for magnetic field. ). 297 Change to use concrete type of Stepper as te 268 Change to use concrete type of Stepper as template parameter 298 269 299 June 10, 2019 Dmitry Sorokin 270 June 10, 2019 Dmitry Sorokin - field-V10-05-06 300 ------------------------- 271 ------------------------- 301 - Remove division in G4DormandPrince745::Inter 272 - Remove division in G4DormandPrince745::Interpolate4thOrder. 302 273 303 June 7, 2019 Dmitry Sorokin 274 June 7, 2019 Dmitry Sorokin - field-V10-05-05 304 ------------------------- 275 ------------------------- 305 - Switch to original chord finding algorithm i 276 - Switch to original chord finding algorithm in G4InterpolationDriver 306 - Reset step estimate in G4MagInt_Driver only 277 - Reset step estimate in G4MagInt_Driver only at the beginning of a track 307 - Change G4VERBOSE to G4FIELD_DEBUG in G4Inter 278 - Change G4VERBOSE to G4FIELD_DEBUG in G4InterpolationDriver to speed-up 308 279 309 June 4, 2019 Dmitry Sorokin 280 June 4, 2019 Dmitry Sorokin - field-V10-05-04 310 ------------------------- 281 ------------------------- 311 - Use FSAL property of G4DormandPrince745 in G 282 - Use FSAL property of G4DormandPrince745 in G4InterpolationDriver. 312 283 313 June 3, 2019 Dmitry Sorokin 284 June 3, 2019 Dmitry Sorokin - field-V10-05-03 314 ------------------------- 285 ------------------------- 315 - Fix memory churn in G4InterpolationDriver. 286 - Fix memory churn in G4InterpolationDriver. 316 287 317 May 20, 2019 Dmitry Sorokin 288 May 20, 2019 Dmitry Sorokin - field-V10-05-02 318 ------------------------- 289 ------------------------- 319 - Make interpolation driver default for immedi 290 - Make interpolation driver default for immediate testing. 320 291 321 April 8, 2019 H.Burkhardt 292 April 8, 2019 H.Burkhardt - field-V10-05-01 322 ------------------------- 293 ------------------------- 323 - Correcting transformation to local system in 294 - Correcting transformation to local system in G4QuadrupoleMagField.cc 324 295 325 March 20, 2019 G.Cosmo 296 March 20, 2019 G.Cosmo - field-V10-05-00 326 ---------------------- 297 ---------------------- 327 - Corrected 'RegularStepperName' in G4ChordFin 298 - Corrected 'RegularStepperName' in G4ChordFinder to refer to the actual 328 default stepper G4DormandPrince745 rather th 299 default stepper G4DormandPrince745 rather than G4NystromRK4... 329 300 330 November 9, 2018 J.Apostolakis 301 November 9, 2018 J.Apostolakis - field-V10-04-17 331 ------------------------------ 302 ------------------------------ 332 - Small fixes for warnings in compilation. 303 - Small fixes for warnings in compilation. 333 - Revisions of descriptions of recent tags (fo 304 - Revisions of descriptions of recent tags (for clarification.) 334 305 335 September 26, 2018 D.Sorokin 306 September 26, 2018 D.Sorokin - field-V10-04-15, -16 336 ---------------------------- 307 ---------------------------- 337 - Implemented G4InterpolationDriver. This driv 308 - Implemented G4InterpolationDriver. This driver uses a Runge-Kutta 338 stepper with interpolation property to integ 309 stepper with interpolation property to integrate EoM with error control. 339 The field evaluations used to calculate the 310 The field evaluations used to calculate the enpoint of an 'advance' can 340 be reused to obtain one or multiple internal 311 be reused to obtain one or multiple internal points on the curve (x,p). 341 So in steps in which an intersection is foun 312 So in steps in which an intersection is found, the number of field 342 evaluations are expected to be reduced subst 313 evaluations are expected to be reduced substantially. 343 314 344 September 13, 2018 D.Sorokin 315 September 13, 2018 D.Sorokin - field-V10-04-13, -14 345 ---------------------------- 316 ---------------------------- 346 - G4NystromRK4 creates G4CachedMagneticField i 317 - G4NystromRK4 creates G4CachedMagneticField if it was not provided. 347 - Removed G4MagIntegratorStepper::ComputeRight 318 - Removed G4MagIntegratorStepper::ComputeRightHandSide() method 348 (all calls now use non-virtual RightHandSide 319 (all calls now use non-virtual RightHandSide() method instead). 349 - Reversed declaration of final for the class 320 - Reversed declaration of final for the class G4UniformMagField. 350 Returned to previous status: only GetFieldVa 321 Returned to previous status: only GetFieldValue method is final. 351 ( This avoid need to change examples/tests a 322 ( This avoid need to change examples/tests and potentially migrate 352 users' code. ) 323 users' code. ) 353 324 354 September 12, 2018 D.Sorokin 325 September 12, 2018 D.Sorokin - field-V10-04-11, -12 355 ---------------------------- 326 ---------------------------- 356 - Created new experimental driver G4BFieldInte 327 - Created new experimental driver G4BFieldIntegrationDriver for pure 357 magnetic fields. In QuickAdvance it uses he 328 magnetic fields. In QuickAdvance it uses helix stepper when the 358 estimated 'helix' rotation angle is larger t 329 estimated 'helix' rotation angle is larger than pi/3. 359 - G4NystromRK4 uses G4CachedMagneticField for 330 - G4NystromRK4 uses G4CachedMagneticField for caching values. 360 NOTE: It now the user's responsibility to cr 331 NOTE: It now the user's responsibility to create G4CachedMagneticField. 361 ( The alternative is to create G4CachedMagne 332 ( The alternative is to create G4CachedMagneticField inside G4NystromRK4. 362 But this would have several disadvantages: 333 But this would have several disadvantages: 363 * It would change the field in the user's 334 * It would change the field in the user's equation of motion; 364 * G4NystromRK4 is not able to check whethe 335 * G4NystromRK4 is not able to check whether the user calls the method 365 that changes the equation using SetEquat 336 that changes the equation using SetEquationOfMotion method. ) 366 337 367 July 10, 2018 D. Sorokin - field- 338 July 10, 2018 D. Sorokin - field-V10-04-08, -09, -10 368 ------------------------ Tags by J. Apostolaki 339 ------------------------ Tags by J. Apostolakis 369 - Corrections in calculation of chord distance 340 - Corrections in calculation of chord distance in G4DormandPrince745 370 ( use 4th order interpolation from Shampine 341 ( use 4th order interpolation from Shampine 1986 for mid-point. ) 371 - Revised G4FieldUtils: moved copy() method fr 342 - Revised G4FieldUtils: moved copy() method from steppers, 372 added 2 new setValue: simple & variadic meth 343 added 2 new setValue: simple & variadic methods. 373 - Fixes to copy input time in ModifiedMidpoint 344 - Fixes to copy input time in ModifiedMidpoint, CashKarp, G4RK547FEq1/2/3 374 Bogacki-Shampine 4/5 and 2/3 (note: B-S 2/3 345 Bogacki-Shampine 4/5 and 2/3 (note: B-S 2/3 largely rewritten ) 375 Dormand Prince 4/5, 5/6 and 7/8, and Tsitou 346 Dormand Prince 4/5, 5/6 and 7/8, and Tsitouras steppers. 376 - Trial revision in G4BulirschStoer to reduce 347 - Trial revision in G4BulirschStoer to reduce number of division 377 operations (J.A.) 348 operations (J.A.) 378 - Fix for unitialised pIntStepper pointer in G 349 - Fix for unitialised pIntStepper pointer in G4FSALIntegrationDriver 379 constructor. Revision of data member variab 350 constructor. Revision of data member variable names. ( J.A. ) 380 351 381 June 15, 2018 G.Cosmo - fiel 352 June 15, 2018 G.Cosmo - field-V10-04-07 382 --------------------- 353 --------------------- 383 - Fixed minor Coverity defects in G4BurlischSt 354 - Fixed minor Coverity defects in G4BurlischStoer and G4ModifiedMidPoint. 384 Code cleanup. 355 Code cleanup. 385 356 386 June 13, 2018 G.Cosmo - fiel 357 June 13, 2018 G.Cosmo - field-V10-04-06 387 --------------------- 358 --------------------- 388 - Leave override final only for clone() method 359 - Leave override final only for clone() method in G4UniformMagField, 389 not in destructor... 360 not in destructor... 390 361 391 June 12, 2018 G.Cosmo - fiel 362 June 12, 2018 G.Cosmo - field-V10-04-05 392 --------------------- 363 --------------------- 393 - Use G4Exception warnings instead of streamin 364 - Use G4Exception warnings instead of streaming to cerr. 394 - Added override final for virtual methods in 365 - Added override final for virtual methods in G4UniformMagField (J.Apostolakis). 395 - Some code cleanup. 366 - Some code cleanup. 396 367 397 Apr 30, 2018 J. Apostolakis - fiel 368 Apr 30, 2018 J. Apostolakis - field-V10-04-04 398 --------------------------- 369 --------------------------- 399 - G4VIntegrationDriver and derived classes 370 - G4VIntegrationDriver and derived classes 400 371 401 Added new virtual method in G4VIntegrationDr 372 Added new virtual method in G4VIntegrationDriver : 402 void RenewStepperAndAdjust(G4MagIntegrat 373 void RenewStepperAndAdjust(G4MagIntegratorStepper *pItsStepper) 403 which used to exist in G4MagInt_Driver. 374 which used to exist in G4MagInt_Driver. 404 ( Its absence caused a problem in some exist 375 ( Its absence caused a problem in some existing user code since 10.4. ) 405 376 406 This method must be defined in those derived 377 This method must be defined in those derived driver classes which accept 407 a Runge Kutta stepper ( i.e. some or any typ 378 a Runge Kutta stepper ( i.e. some or any type of G4MagIntegratorStepper ) 408 379 409 - G4IntegrationDriver, G4FSALIntegrationDriver 380 - G4IntegrationDriver, G4FSALIntegrationDriver 410 Defined default implementation (which throws 381 Defined default implementation (which throws a Fatal G4Exception), and 411 implementations in the templated classes G4I 382 implementations in the templated classes G4IntegrationDriver and 412 G4FSALIntegrationDriver which check the type 383 G4FSALIntegrationDriver which check the type (via dynamic cast) and 413 change the stepper if it is appropriate. 384 change the stepper if it is appropriate. 414 385 415 Feb 13, 2018 J. Apostolakis - fiel 386 Feb 13, 2018 J. Apostolakis - field-V10-04-03 416 --------------------------- 387 --------------------------- 417 - Change in G4FieldManager::CreateChordFinder 388 - Change in G4FieldManager::CreateChordFinder to cope 418 better with case that field argument is null 389 better with case that field argument is null. 419 390 420 Feb 13, 2018 D. Sorokin - fiel 391 Feb 13, 2018 D. Sorokin - field-V10-04-01 421 ----------------------- - fiel 392 ----------------------- - field-V10-04-02 (comp. fix) 422 - Introduced Bulirsch-Stoer method of integrat 393 - Introduced Bulirsch-Stoer method of integration, an alternative 423 to Runge-Kutta based on the mid-point method 394 to Runge-Kutta based on the mid-point method. 424 Separate driver derived G4VIntegrationDriver 395 Separate driver derived G4VIntegrationDriver and implemented 425 using specialisation of G4IntegrationDriver 396 using specialisation of G4IntegrationDriver template class. 426 Note: this method does not have a RK 'Steppe 397 Note: this method does not have a RK 'Stepper' ! 427 398 428 Jan 31, 2018 J. Apostolakis 399 Jan 31, 2018 J. Apostolakis 429 --------------------------- 400 --------------------------- 430 - G4MagneticField no longer inherits from G4El 401 - G4MagneticField no longer inherits from G4ElectroMagneticField 431 This was incorrect, and allowed a user to pr 402 This was incorrect, and allowed a user to provide a full EM 432 field, but obtain the force only from the B- 403 field, but obtain the force only from the B-field when using 433 the equation created in the G4ChordFinder co 404 the equation created in the G4ChordFinder constructor. 434 => potential interface change. 405 => potential interface change. 435 406 436 Result: It is no longer possible to use the 407 Result: It is no longer possible to use the equation of motion for a 437 pure magnetic field for the case of a mix 408 pure magnetic field for the case of a mixed electromagnetic field. 438 This change is desired, and is a *protect 409 This change is desired, and is a *protection* as that inadvertent 439 use led to incorrect results. 410 use led to incorrect results. 440 Instead the full chain of classes for equati 411 Instead the full chain of classes for equation of full EM field, 441 steppers and driver must be used for the 412 steppers and driver must be used for the case of the 'full' EM field. 442 413 443 Feb 9, 2017 G.Cosmo - fiel 414 Feb 9, 2017 G.Cosmo - field-V10-04-00 444 ------------------- 415 ------------------- 445 - Removed static data from G4FSALIntegrationDr 416 - Removed static data from G4FSALIntegrationDriver, G4IntegrationDriver and 446 G4MagIntegratorDriver and moved to base clas 417 G4MagIntegratorDriver and moved to base class as normal data members. 447 Fix required for allowing proper symbol expo 418 Fix required for allowing proper symbol exporting on Windows DLLs. 448 419 449 Nov 17, 2017 J. Apostolakis - fiel 420 Nov 17, 2017 J. Apostolakis - field-V10-03-30 450 --------------------------- 421 --------------------------- 451 - G4ChordFinder: Reinstated old driver G4MagIn 422 - G4ChordFinder: Reinstated old driver G4MagInt_Drv, for use 452 with G4DormandPrince745 (5th order) in G4C 423 with G4DormandPrince745 (5th order) in G4ChordFinder's 453 2nd constructor (with magnetic field.) 424 2nd constructor (with magnetic field.) 454 ( Reverses change made in field-V10-03-27 ) 425 ( Reverses change made in field-V10-03-27 ) 455 426 456 Nov 16, 2017 J. Apostolakis - fiel 427 Nov 16, 2017 J. Apostolakis - field-V10-03-29 457 --------------------------- 428 --------------------------- 458 - Suppressed statistics printing in G4ChordFin 429 - Suppressed statistics printing in G4ChordFinder and new drivers 459 ( G4IntegrationDriver and G4FSALIntegration 430 ( G4IntegrationDriver and G4FSALIntegrationDriver ) 460 protecting them by verbosity flags. 431 protecting them by verbosity flags. 461 432 462 - Minor fix to initialise scalar data member i 433 - Minor fix to initialise scalar data member in new steppers 463 G4RK547FEq1, G4RK547FEq2 and G4RK547FEq3. 434 G4RK547FEq1, G4RK547FEq2 and G4RK547FEq3. 464 Fixes coverity issues 97886, 97888 and 97889 435 Fixes coverity issues 97886, 97888 and 97889. 465 436 466 437 467 Nov 14, 2017 J. Apostolakis - fiel 438 Nov 14, 2017 J. Apostolakis - field-V10-03-28 468 --------------------------- 439 --------------------------- 469 - Suppressed extra verbosity in G4ChordFinder. 440 - Suppressed extra verbosity in G4ChordFinder. 470 - Fix in G4FSALDormandPrince745 for unitialise 441 - Fix in G4FSALDormandPrince745 for unitialised variables. 471 Initialise ak8[], ak9[] in constructor. This 442 Initialise ak8[], ak9[] in constructor. This avoids repeated 472 memory allocation, without deletion - i.e. a 443 memory allocation, without deletion - i.e. a memory leak. 473 - Initialise fLastStepLength and/or fAuxSteppe 444 - Initialise fLastStepLength and/or fAuxStepper data members in 474 in constructors of G4DormandPrince745 and G4 445 in constructors of G4DormandPrince745 and G4FSALDormandPrince745. 475 Coverity issues: 67394 (G4FSALDormandPrince7 446 Coverity issues: 67394 (G4FSALDormandPrince745) 476 67391 (G4DormandPrince7 447 67391 (G4DormandPrince745) 477 448 478 Nov 14, 2017 J. Apostolakis - fiel 449 Nov 14, 2017 J. Apostolakis - field-V10-03-27 (fixed) 479 --------------------------- - fiel 450 --------------------------- - field-V10-03-26 480 - G4ChordFinder: changes in default stepper & 451 - G4ChordFinder: changes in default stepper & driver in 2nd constructor. 481 in which only a magnetic field is provided ( 452 in which only a magnetic field is provided (used widely) : 482 453 483 * Reinstated G4DormandPrince745 (5th order) 454 * Reinstated G4DormandPrince745 (5th order) as default in G4ChordFinder. 484 (corrected -23, which missed to initialise 455 (corrected -23, which missed to initialise driver.) 485 456 486 * New templated driver G4IntegrationDriver i 457 * New templated driver G4IntegrationDriver is chosen for the 487 the simple constuctors of G4ChordFinder an 458 the simple constuctors of G4ChordFinder and G4FieldManager 488 which only require a (pure) magnetic field 459 which only require a (pure) magnetic field. ( Details below.) 489 460 490 Additional information and details: 461 Additional information and details: 491 * New optional parameter to constructor of G 462 * New optional parameter to constructor of G4ChordFinder which 492 allow to create an FSAL stepper and corres 463 allow to create an FSAL stepper and corresponding driver instead. 493 This aims to reuse some derivatives, thus 464 This aims to reuse some derivatives, thus reducing computations 494 of derivatives and thus field evaluations. 465 of derivatives and thus field evaluations. ) 495 466 496 * The templated 'driver' classes, available 467 * The templated 'driver' classes, available and now chosen in 497 G4ChordFinder's 2nd constructor, are used 468 G4ChordFinder's 2nd constructor, are used per type of stepper 498 class: 469 class: 499 - G4IntegrationDriver for non-FSAL 470 - G4IntegrationDriver for non-FSAL steppers 500 - G4FSALIntegrationDriver for FSAL-capab 471 - G4FSALIntegrationDriver for FSAL-capable steppers 501 These make non-virtual calls to the steppe 472 These make non-virtual calls to the stepper, as they know its type. 502 473 503 - First fix in G4FSALDormandPrince745 for memo 474 - First fix in G4FSALDormandPrince745 for memory leak, missing 504 delete[] fInitialDyDx in destructor. Coverit 475 delete[] fInitialDyDx in destructor. Coverity issue: 96383. 505 476 506 ---------------------------------------------- 477 ---------------------------------------------------------------------- 507 Multiple tags (below) were to better test step 478 Multiple tags (below) were to better test stepper/driver combinations: 508 Date Tagger Tag name Stepper 479 Date Tagger Tag name Stepper Driver 509 ============================================== 480 ====================================================================== 510 Nov 3, D. Sorokin field-V10-03-25 G4FSALBo 481 Nov 3, D. Sorokin field-V10-03-25 G4FSALBogackiShampine45 FSAL 511 Nov 3, J. Apostolakis field-V10-03-24 G4FSALDo 482 Nov 3, J. Apostolakis field-V10-03-24 G4FSALDormandPrince745 FSAL ok 512 Nov 2, J. Apostolakis field-V10-03-23 G4Dorman 483 Nov 2, J. Apostolakis field-V10-03-23 G4DormandPrince745 new 513 Nov 2, J. Apostolakis field-V10-03-22 G4RK547F 484 Nov 2, J. Apostolakis field-V10-03-22 G4RK547FEq1 FSAL ok 514 ---------------------------------------------- 485 ---------------------------------------------------------------------- 515 Glossary of drivers: 486 Glossary of drivers: 516 the FSAL driver = using G4FSALIntegrationDr 487 the FSAL driver = using G4FSALIntegrationDriver (templated) 517 the new driver = using G4IntegrationDriver 488 the new driver = using G4IntegrationDriver (templated) 518 ============================================== 489 =================================================================== 519 490 520 Nov 2, 2017 D. Sorokin - fiel 491 Nov 2, 2017 D. Sorokin - field-V10-03-21 521 --------------------------------------- 492 --------------------------------------- 522 - Added new steppers G4RK547FEq{1,2,3} which i 493 - Added new steppers G4RK547FEq{1,2,3} which implement 7 stage embedded 523 Runge-Kutta 4,5 pairs with: 494 Runge-Kutta 4,5 pairs with: 524 - FSAL property (return derivative at end 495 - FSAL property (return derivative at endpoint for use in next step), 525 - stable equilibrium states ( improved ha 496 - stable equilibrium states ( improved handling of difficulties in 526 integration: better stability in choo 497 integration: better stability in choosing step size. ) 527 Each one can be used with all existing Runge 498 Each one can be used with all existing Runge-Kutta drivers: 528 - G4FSALIntegrationDriver, using its FSAL 499 - G4FSALIntegrationDriver, using its FSAL property; 529 - G4IntegrationDriver without its FSAL 500 - G4IntegrationDriver without its FSAL property. 530 - the original G4MagInt_Driver, also igno 501 - the original G4MagInt_Driver, also ignoring FSAL. 531 502 532 - Reinstated G4DormandPrince745 ( known widel 503 - Reinstated G4DormandPrince745 ( known widely as DOPRI5 ) as 533 the default RK method in G4ChordFinder for p 504 the default RK method in G4ChordFinder for pure magnetic fields. 534 ( Withdrew G4BogackiShampine45. ) J. Apos 505 ( Withdrew G4BogackiShampine45. ) J. Apostolakis 535 506 536 Nov 1, 2017 J. Apostolakis - fiel 507 Nov 1, 2017 J. Apostolakis - field-V10-03-20 537 --------------------------- 508 --------------------------- 538 - Made G4BogackiShampine45 the default RK meth 509 - Made G4BogackiShampine45 the default RK method in G4ChordFinder 539 for pure magnetic fields. 510 for pure magnetic fields. 540 511 541 Oct 30, 2017 D. Sorokin/J.Apostolakis - fiel 512 Oct 30, 2017 D. Sorokin/J.Apostolakis - field-V10-03-19 542 --------------------------------------- 513 --------------------------------------- 543 - add GetStepper method to G4VIntegrationDrive 514 - add GetStepper method to G4VIntegrationDriver for backward compatibility 544 515 545 Oct 20, 2017 D. Sorokin - fiel 516 Oct 20, 2017 D. Sorokin - field-V10-03-18 546 --------------------------------------- 517 --------------------------------------- 547 Introduced base class for any driver algorithm 518 Introduced base class for any driver algorithm (G4VIntegrationDriver) 548 New concrete classes added: 519 New concrete classes added: 549 - G4IntegrationDriver: implementation of templ 520 - G4IntegrationDriver: implementation of templated driver algorithm 550 for non-fsal explicit Runge-Kutta steppers 521 for non-fsal explicit Runge-Kutta steppers 551 - G4FSALIntegrationDriver: implementation of d 522 - G4FSALIntegrationDriver: implementation of driver algorithm for 552 FSAL explicit Runge-Kutta steppers. 523 FSAL explicit Runge-Kutta steppers. 553 Existing class G4MagInt_Drv remains, deriving 524 Existing class G4MagInt_Drv remains, deriving from base class. 554 525 555 - Expanded testing in testProElectroMagField ( 526 - Expanded testing in testProElectroMagField (higher precision, new driver) 556 ( J. Apostolakis) 527 ( J. Apostolakis) 557 528 558 Oct 13, 2017 D. Sorokin - fiel 529 Oct 13, 2017 D. Sorokin - field-V10-03-17 559 --------------------------------------- 530 --------------------------------------- 560 - add G4FieldUtils.hh, G4FieldUtils.icc, G4Fie 531 - add G4FieldUtils.hh, G4FieldUtils.icc, G4FieldUtils.cc: 561 utilities to extract data from arrays in con 532 utilities to extract data from arrays in conventions of the 562 magneticfield integration. 533 magneticfield integration. 563 534 564 Oct 13, 2017 G. Cosmo - fiel 535 Oct 13, 2017 G. Cosmo - field-V10-03-16 565 --------------------------------------- 536 --------------------------------------- 566 - G4NystromRK4: use consistenly G4 types for d 537 - G4NystromRK4: use consistenly G4 types for double and bool in G4NystromRK4. 567 538 568 Aug 31, 2017 J. Apostolakis - fiel 539 Aug 31, 2017 J. Apostolakis - field-V10-03-15 569 --------------------------------------- 540 --------------------------------------- 570 - Made G4DormandPrince457 the default Stepper 541 - Made G4DormandPrince457 the default Stepper for magnetic fields in 571 G4ChordFinder - when a driver/stepper is not 542 G4ChordFinder - when a driver/stepper is not specified. 572 543 573 Aug 31, 2017 J. Apostolakis - fiel 544 Aug 31, 2017 J. Apostolakis - field-V10-03-14 574 --------------------------------------- 545 --------------------------------------- 575 - G4NystromRK4: used caching of momentum magni 546 - G4NystromRK4: used caching of momentum magnitude ( & its inverse) 576 to reduce overhead of fix in field-V10-03-10 547 to reduce overhead of fix in field-V10-03-10. 577 548 578 Aug 25, 2017 J. Apostolakis - fiel 549 Aug 25, 2017 J. Apostolakis - field-V10-03-12, 13 579 --------------------------------------- 550 --------------------------------------- 580 - G4MagInt_Driver: added GetEquationOfMotion m 551 - G4MagInt_Driver: added GetEquationOfMotion method for enabling common 581 code with future develoment. 552 code with future develoment. 582 553 583 Aug 24, 2017 D.Sorokin & J. Apostolakis - fiel 554 Aug 24, 2017 D.Sorokin & J. Apostolakis - field-V10-03-11 584 --------------------------------------- 555 --------------------------------------- 585 - G4NystromRK4: correction in call to getField 556 - G4NystromRK4: correction in call to getField: needs p[4], not p[3] 586 ( Spotted by D. Sorokin ) 557 ( Spotted by D. Sorokin ) 587 Also small cleanup of testing code into 2 sm 558 Also small cleanup of testing code into 2 small new methods. 588 ( J. Apostolakis ) 559 ( J. Apostolakis ) 589 560 590 Aug 23, 2017 J.Apostolakis - fiel 561 Aug 23, 2017 J.Apostolakis - field-V10-03-10 591 -------------------------- 562 -------------------------- 592 - G4NystromRK4 - Fix the caching of momentum, 563 - G4NystromRK4 - Fix the caching of momentum, field location & value. 593 Fixes issue reported by ALICE ( problem repo 564 Fixes issue reported by ALICE ( problem report #1996 ). 594 Thanks to Ruben Shahoyan for identifying and 565 Thanks to Ruben Shahoyan for identifying and reporting the issue! 595 - Temporarly made G4NystromRK4 the default Ste 566 - Temporarly made G4NystromRK4 the default Stepper in G4ChordFinder's 2nd 596 constructor (to ensure adequate testing). 567 constructor (to ensure adequate testing). 597 568 598 Jul 04, 2017 J.Apostolakis - field 569 Jul 04, 2017 J.Apostolakis - field-V10-03-09 599 -------------------------- 570 -------------------------- 600 - G4DormandPrinceRK78: initialise fLastStepLen 571 - G4DormandPrinceRK78: initialise fLastStepLength and/or fAuxStepper data 601 members in constructor. Coverity issue: 6739 572 members in constructor. Coverity issue: 67398, 602 Improved description and reference to origin 573 Improved description and reference to original 1981 DP paper. 603 - G4MagIntegratorDriver: initialised fNoCalls 574 - G4MagIntegratorDriver: initialised fNoCalls in c-tor. Coverity #15158. 604 575 605 Jul 03, 2017 J.Apostolakis - field 576 Jul 03, 2017 J.Apostolakis - field-V10-03-08 606 -------------------------- 577 -------------------------- 607 - G4FSALBogackiShampline45: initialise 'bi[][] 578 - G4FSALBogackiShampline45: initialise 'bi[][]' const coefficients only 1 time 608 in method PrepareConstants() called by const 579 in method PrepareConstants() called by constructor. 609 ( Similar to G4BogackiShampine => seek con 580 ( Similar to G4BogackiShampine => seek consolidation ) 610 Small fix: initialise fAuxStepper to nullptr 581 Small fix: initialise fAuxStepper to nullptr, if not primary. 611 ( Part of Coverity issue 67394 ) 582 ( Part of Coverity issue 67394 ) 612 - G4DormandPrinceRK56: fix for significant mem 583 - G4DormandPrinceRK56: fix for significant memory leak of ak10_low buffer 613 space in SetupInterpolate_low(), apparently 584 space in SetupInterpolate_low(), apparently not seen by Coverity 614 because it was initialised in each use, not 585 because it was initialised in each use, not in constructor! 615 Improved initialisation of ak10, 11, 12 (mov 586 Improved initialisation of ak10, 11, 12 (moved to constructor) 616 and fixed small memory leak (added deletion 587 and fixed small memory leak (added deletion in destructor). 617 - G4MagIntegratorStepper: initialise fNoRHSCal 588 - G4MagIntegratorStepper: initialise fNoRHSCalls & fIntegrationOrder in c-tor. 618 ( fIntegrationOrder is not yet used widely - 589 ( fIntegrationOrder is not yet used widely - future migration ) 619 Coverity issue 67392. 590 Coverity issue 67392. 620 - G4VFSALIntegrationStepper: initialise counte 591 - G4VFSALIntegrationStepper: initialise counter in c-tor. Coverity issue 67396. 621 - G4BogackiShampine23: initialised fIsFSAL, fI 592 - G4BogackiShampine23: initialised fIsFSAL, fIntegrationOrder in c-tor. 622 Suppressed obsolete virtual method isFSAL, 593 Suppressed obsolete virtual method isFSAL, 623 Deleted duplicate virtual method 'isFSAL()'. 594 Deleted duplicate virtual method 'isFSAL()'. Non-virtual method IsFSAL() 624 now exists in base class G4MagIntegratorStep 595 now exists in base class G4MagIntegratorStepper. 625 Made copy constructor and equal operator pri 596 Made copy constructor and equal operator private and not unimplemented. 626 Added explanatory comments in source file; c 597 Added explanatory comments in source file; can make this method FSAL easily 627 (it calculates derivative @ endpoint. ) 598 (it calculates derivative @ endpoint. ) 628 - Several steppers ( G4DoLoMcPriRK34, G4FSALBo 599 - Several steppers ( G4DoLoMcPriRK34, G4FSALBogackiShampine45, 629 G4DormandPrince745, G4BogackiShampine45 ): i 600 G4DormandPrince745, G4BogackiShampine45 ): initialise fLastStepLength and/or 630 fAuxStepper data members in constructor. 601 fAuxStepper data members in constructor. 631 Coverity issues: 67393, 67394, 67391, 67390, 602 Coverity issues: 67393, 67394, 67391, 67390, 67363 632 603 633 Jul 03, 2017 J.Apostolakis - field 604 Jul 03, 2017 J.Apostolakis - field-V10-03-05, -06, -07 634 -------------------------- 605 -------------------------- 635 - fix for memory leak in Stepper() in two step 606 - fix for memory leak in Stepper() in two steppers: 636 G4FSALBogackiShampline45 ( Coverity issue 607 G4FSALBogackiShampline45 ( Coverity issue 67389 ) 637 G4FSALDormandPrince745 ( Coverity issue 608 G4FSALDormandPrince745 ( Coverity issue 67397 ) 638 - G4BogackiShampline23: fix for memory leak in 609 - G4BogackiShampline23: fix for memory leak in destructor 639 ( Coverity issue 67355 ) 610 ( Coverity issue 67355 ) 640 611 641 May 17, 2017 J.Apostolakis - field 612 May 17, 2017 J.Apostolakis - field-V10-03-03, -04 (resubmit) 642 -------------------------- 613 -------------------------- 643 - G4FieldManager::SetDetectorField 614 - G4FieldManager::SetDetectorField 644 Fixed default of 'fail mode' parameter in 615 Fixed default of 'fail mode' parameter in 645 to 0 (silent) - not 1 which was used for 616 to 0 (silent) - not 1 which was used for debugging. 646 In case of existing G4ChordFinder, use 'max' 617 In case of existing G4ChordFinder, use 'max' (1, failMode) not min. 647 618 648 619 649 May 11, 2017 J.Apostolakis - field 620 May 11, 2017 J.Apostolakis - field-V10-03-02 650 -------------------------- 621 -------------------------- 651 - Reintroduced changes of field-V10-01-05, 06 622 - Reintroduced changes of field-V10-01-05, 06 and 07 to address 652 issue recalled by ATLAS. 623 issue recalled by ATLAS. 653 - New fixes/refinements (since field-V10-01-07 624 - New fixes/refinements (since field-V10-01-07) 654 o Extra check for missing equation. (Fix) 625 o Extra check for missing equation. (Fix) 655 o Renamed G4FieldManager::SetFieldChangesEne 626 o Renamed G4FieldManager::SetFieldChangesEnergy() method to 656 InitialiseFieldChangesEnergy() to clarify 627 InitialiseFieldChangesEnergy() to clarify its utility. 657 - Original functionality change (copied from f 628 - Original functionality change (copied from field-V10-01-05, & -07) : 658 o G4FieldManager.cc : Revised behaviour of S 629 o G4FieldManager.cc : Revised behaviour of SetDetector - it now 659 passes the Field to the Equation, as is th 630 passes the Field to the Equation, as is the natural user expectation 660 The previous behaviour is possible, using 631 The previous behaviour is possible, using extra argument 'failMode' flag. 661 Values: 0 = silent ; 632 Values: 0 = silent ; 662 1 (default) = warning; 633 1 (default) = warning; 663 2 or other = fatal except 634 2 or other = fatal exception. 664 635 665 This change is to ensure that user expecta 636 This change is to ensure that user expectation is met: 666 if the field is changed for an existing, w 637 if the field is changed for an existing, working stepper it must 667 be propagated to the equation of motion. 638 be propagated to the equation of motion. 668 Note: this causes potential conflict betwe 639 Note: this causes potential conflict between the type of the equation 669 and the field, which will need to be 640 and the field, which will need to be solved in the future. 670 Old behaviour (just set our own pointer) i 641 Old behaviour (just set our own pointer) is still available in new method: 671 ProposeDetectorField(G4Field *detectorFiel 642 ProposeDetectorField(G4Field *detectorField) 672 Note: Error reporting behaviour of SetDete 643 Note: Error reporting behaviour of SetDetector is 'soft'. It does not 673 complain by default if ChordFinder i 644 complain by default if ChordFinder is not (yet) set. 674 ( The default values of failMode = 0 645 ( The default values of failMode = 0 i.e. quiet. ) 675 If a chord-finder exists, it will still wa 646 If a chord-finder exists, it will still warn for other errors. 676 To obtain have noisy extra checks call Set 647 To obtain have noisy extra checks call SetDetectorField with failMode > 0 677 or by using the new method for an existing 648 or by using the new method for an existing field: 678 ChangeDetectorField(G4Field *detectorField 649 ChangeDetectorField(G4Field *detectorField) 679 OLD: Co-works and requires new tag in geomet 650 OLD: Co-works and requires new tag in geometry/navigation: geomnav-V10-01-24. 680 651 681 Mar 22, 2017 G.Cosmo - fiel 652 Mar 22, 2017 G.Cosmo - field-V10-03-01 682 --------------------- 653 --------------------- 683 - Revert change made in previous tag and add s 654 - Revert change made in previous tag and add simple accessor to return 684 singleton pointer. 655 singleton pointer. 685 656 686 Mar 17, 2017 G.Cosmo - fiel 657 Mar 17, 2017 G.Cosmo - field-V10-03-00 687 --------------------- 658 --------------------- 688 - Define G4FieldManagerStore as normal singlet 659 - Define G4FieldManagerStore as normal singleton and corrected destructor. 689 660 690 Oct 7, 2016 J.Apostolakis - fiel 661 Oct 7, 2016 J.Apostolakis - field-V10-02-24, 25 691 --------------------------- 662 --------------------------- 692 - Checked loops for termination for infinite l 663 - Checked loops for termination for infinite loops and annotated 693 them with "Loop checking" comment 664 them with "Loop checking" comment 694 665 695 Oct 7, 2016 D.Sorokin - fiel 666 Oct 7, 2016 D.Sorokin - field-V10-02-23 696 ----------------------- Commit: J. Apostolaki 667 ----------------------- Commit: J. Apostolakis 697 - Protection for multiple inclusion of G4Class 668 - Protection for multiple inclusion of G4ClassicalRK4 698 (thanks to Dmitrii Sorokin, GSoC 2016 stude 669 (thanks to Dmitrii Sorokin, GSoC 2016 student. ) 699 670 700 Aug 16, 2016 J.Apostolakis - fiel 671 Aug 16, 2016 J.Apostolakis - field-V10-02-22 701 --------------------------- 672 --------------------------- 702 - Added initialization of fAuxStepper in const 673 - Added initialization of fAuxStepper in constructor of 703 G4DoLoMcPriRK34, G4DormandPrince745 & G4Dorm 674 G4DoLoMcPriRK34, G4DormandPrince745 & G4DormandPrinceRK56. 704 675 705 June 11, 2016 J.Apostolakis - fiel 676 June 11, 2016 J.Apostolakis - field-V10-02-21 706 --------------------------- 677 --------------------------- 707 - Restored G4ClassicalRK4 as default stepper f 678 - Restored G4ClassicalRK4 as default stepper for B-field, 708 (due to performance issues reported in bench 679 (due to performance issues reported in benchmarking.) 709 680 710 June 10, 2016 G.Cosmo - fiel 681 June 10, 2016 G.Cosmo - field-V10-02-20 711 --------------------- 682 --------------------- 712 - Fixed code indentation in G4HelixMixedSteppe 683 - Fixed code indentation in G4HelixMixedStepper; 713 fixes compilation warnings on gcc-6.1. 684 fixes compilation warnings on gcc-6.1. 714 685 715 June 1, 2016 J.Apostolakis - fiel 686 June 1, 2016 J.Apostolakis - field-V10-02-19, 18, 17 716 -------------------------- 687 -------------------------- 717 - Fix in multiple steppers for the size of two 688 - Fix in multiple steppers for the size of two C-arrays which hold 718 intermediate values; they must be at least 689 intermediate values; they must be at least 8 and at least 719 'fNumberOfStateVariables' long. 690 'fNumberOfStateVariables' long. 720 Changed: G4CashKarp, 691 Changed: G4CashKarp, 721 G4BogackiShampine 23 & 34 692 G4BogackiShampine 23 & 34 722 G4DormandPrince 745, RK56 & RK78 693 G4DormandPrince 745, RK56 & RK78 723 G4DoLoMcPriRK34 694 G4DoLoMcPriRK34 724 G4FSALBogackiShampine45, G4FSALDorm 695 G4FSALBogackiShampine45, G4FSALDormandPrince745 725 - Made G4CashKarp the default stepper in G4Cho 696 - Made G4CashKarp the default stepper in G4ChordFinder. 726 - Deleted trial class G4NewChordFinder. 697 - Deleted trial class G4NewChordFinder. 727 698 728 June 1, 2016 J.Apostolakis - fiel 699 June 1, 2016 J.Apostolakis - field-V10-02-16 729 -------------------------- 700 -------------------------- 730 - Deleted test code (RkTestRun) due to cmake i 701 - Deleted test code (RkTestRun) due to cmake issues 731 702 732 June 1, 2016 J.Apostolakis - fiel 703 June 1, 2016 J.Apostolakis - field-V10-02-15 (also -14) 733 -------------------------- 704 -------------------------- 734 - Made G4ClassicalRK4 the default stepper agai 705 - Made G4ClassicalRK4 the default stepper again in G4ChordFinder 735 - Fixes in test code (RkTestRun) for new names 706 - Fixes in test code (RkTestRun) for new names of classes. 736 707 737 May 31, 2016 J.Apostolakis - fiel 708 May 31, 2016 J.Apostolakis - field-V10-02-13 (also -12) 738 -------------------------- 709 -------------------------- 739 - New class G4NewChordFinder, that uses old G4 710 - New class G4NewChordFinder, that uses old G4MagIntegratorDriver or 740 the newer G4FSALIntegratorDriver -- first 711 the newer G4FSALIntegratorDriver -- first try, for testing FSAL. 741 Created new test testNewChordFinder.cc to ch 712 Created new test testNewChordFinder.cc to checks this. 742 713 743 - Renamed new Stepper classes to use 'G4' pref 714 - Renamed new Stepper classes to use 'G4' prefix, including 744 DormandPrince{745,RK56,RK67} TsitourasRK45 715 DormandPrince{745,RK56,RK67} TsitourasRK45 and DoLoMcPriRK34 745 716 746 - Renamed FSAL base classes to use 'G4' prefix 717 - Renamed FSAL base classes to use 'G4' prefix & 'Integrat-ion' 747 FSALMagIntegratorStepper to G4VFSALIntegr 718 FSALMagIntegratorStepper to G4VFSALIntegrationStepper 748 FSALIntegratorDriver to G4FSALIntegr 719 FSALIntegratorDriver to G4FSALIntegrationDriver 749 and the experimental FSAL versions of steppe 720 and the experimental FSAL versions of steppers, 750 FBogackiShampine45.hh to G4FSALBogackiS 721 FBogackiShampine45.hh to G4FSALBogackiShampine45.hh 751 FDormandPrince745.hh to G4FSALDormandP 722 FDormandPrince745.hh to G4FSALDormandPrince745.hh 752 ( Note: FSAL steppers remain 'behind' the impr 723 ( Note: FSAL steppers remain 'behind' the improved non-FSAL versions.) 753 724 754 - Made DormandPrince745 (DP45) the default ste 725 - Made DormandPrince745 (DP45) the default stepper (in G4ChordFinder). 755 726 756 May 26, 2016 J.Apostolakis & Som. Banerjee - 727 May 26, 2016 J.Apostolakis & Som. Banerjee - field-V10-02-11 757 ------------------------------------------ 728 ------------------------------------------ 758 - First version of FSAL classes (as additional 729 - First version of FSAL classes (as additional classes) 759 FSAL Integrator Driver : New *concrete*, 730 FSAL Integrator Driver : New *concrete*, stand-alone driver 760 FSAL Integrator Stepper : New base class ( 731 FSAL Integrator Stepper : New base class (separate from G4MagIntegratorStepper) 761 FBogackiShampine45: FSAL-version of Bogac 732 FBogackiShampine45: FSAL-version of BogackiShampine45 stepper 762 FDormandPrince745: FSAL-version of FDorm 733 FDormandPrince745: FSAL-version of FDormandPrince745 stepper 763 Developed by Somnath Banerjee in GSoC 2015 734 Developed by Somnath Banerjee in GSoC 2015 764 735 765 Context: 736 Context: 766 * FSAL Stepper's key 'Stepper()' method for St 737 * FSAL Stepper's key 'Stepper()' method for Stepping has additional 767 argument to return the derivative at the e 738 argument to return the derivative at the end of a step. 768 If the step was successful, this estimate 739 If the step was successful, this estimate has the same order of 769 accuracy as the stepper (i.e. 5th order fo 740 accuracy as the stepper (i.e. 5th order for a 5th order stepper.) 770 741 771 - FSAL Driver method uses the revised Stepper 742 - FSAL Driver method uses the revised Stepper interface, using 772 the final (endpoint) derivative for succes 743 the final (endpoint) derivative for successful steps 773 as the start derivative for the next step, 744 as the start derivative for the next step, in case of 774 continuing of integration. 745 continuing of integration. 775 746 776 - New test (RkTestRun.cc) covering FSAL method 747 - New test (RkTestRun.cc) covering FSAL methods, integration 777 Developed by Somnath Banerjee in GSoC 2015 748 Developed by Somnath Banerjee in GSoC 2015 778 749 779 May 26, 2016 J.Apostolakis - 750 May 26, 2016 J.Apostolakis - field-V10-02-10 780 -------------------------- 751 -------------------------- 781 Preparation for addition of FSAL steppers (& d 752 Preparation for addition of FSAL steppers (& driver) 782 - G4MagIntegratorStepper: Added counter for ca 753 - G4MagIntegratorStepper: Added counter for calls to equation RHS, 783 with Get/Reset methods. 754 with Get/Reset methods. 784 - Cosmetic fixes in sources.cmake (tabs to spa 755 - Cosmetic fixes in sources.cmake (tabs to spaces) 785 756 786 May 25, 2016 J.Apostolakis & Som. Banerjee - 757 May 25, 2016 J.Apostolakis & Som. Banerjee - field-V10-02-09 787 ------------------------------------------ 758 ------------------------------------------ 788 - Added new stepper classes embedded RK method 759 - Added new stepper classes embedded RK method: 789 * DoLoMcPriRK34, 6-stage 3/4 RK (interp 760 * DoLoMcPriRK34, 6-stage 3/4 RK (interpolation) 790 * DormandPrinceRK56, 9-stage 5/6 RK (interp 761 * DormandPrinceRK56, 9-stage 5/6 RK (interpolation, FSAL-able) "6(5)" 791 * DormandPrinceRK78, 13-stage 7/8 RK (interp 762 * DormandPrinceRK78, 13-stage 7/8 RK (interpolation) "8(7) 13M" 792 created by Somnath Banerjee as part of GSoC 763 created by Somnath Banerjee as part of GSoC 2015. 793 764 794 May 25, 2016 J.Apostolakis - field 765 May 25, 2016 J.Apostolakis - field-V10-02-08 795 -------------------------- 766 -------------------------- 796 - Revised testPropagateMagField, to reduce err 767 - Revised testPropagateMagField, to reduce error severity for over-long 797 steps. An error message is still written 768 steps. An error message is still written if move > (1.+1.0e-9) * step, 798 but test does not stop. 769 but test does not stop. 799 770 800 - G4HelixMixedStepper: Fixes & added new (5th 771 - G4HelixMixedStepper: Fixes & added new (5th order) stepper choices. 801 Included (G4)Bogacki-Shampine 23/45 , Dor 772 Included (G4)Bogacki-Shampine 23/45 , DormandPrince745, 802 and newest TsitourasRK45. 773 and newest TsitourasRK45. 803 774 804 May 24, 2016 J.Apostolakis - field 775 May 24, 2016 J.Apostolakis - field-V10-02-06, 07 805 -------------------------- 776 -------------------------- 806 - Added TsitourasRK45 stepper. 777 - Added TsitourasRK45 stepper. 807 - Made Cash-Karp the default stepper (in G4Cho 778 - Made Cash-Karp the default stepper (in G4ChordFinder). 808 779 809 May 23, 2016 J.Apostolakis - field 780 May 23, 2016 J.Apostolakis - field-V10-02-05 810 -------------------------- 781 -------------------------- 811 - Made DormandPrince745 (DP45) the default ste 782 - Made DormandPrince745 (DP45) the default stepper (in G4ChordFinder). 812 783 813 May 20, 2016 J.Apostolakis - field 784 May 20, 2016 J.Apostolakis - field-V10-02-04 814 ------------------------- 785 ------------------------- 815 - Added steppers created by Somnath Banerjee a 786 - Added steppers created by Somnath Banerjee as part of GSoC 2015, 816 G4BogackiShampine23 (BS23 below), G4Bogack 787 G4BogackiShampine23 (BS23 below), G4BogackiShampine45 (BS45) and 817 DormandPrince745 (DP45). 788 DormandPrince745 (DP45). 818 These implement third order (BS23) and fifth 789 These implement third order (BS23) and fifth order (BS45, DP45) 819 embedded RK tableaus. 790 embedded RK tableaus. 820 - DP45 includes interpolation method, to evalu 791 - DP45 includes interpolation method, to evaluate the interpolant 821 ('y') at intermediate points of a successf 792 ('y') at intermediate points of a successful step. 822 BS45's interpolation method exists, but is n 793 BS45's interpolation method exists, but is not validated (fails). 823 794 824 References: 795 References: 825 - BS45 is embedded pair from paper by P. Bog 796 - BS45 is embedded pair from paper by P. Bogacki and L. F. Shampine: 826 “An efficient Runge-Kutta (4,5) pair, 797 “An efficient Runge-Kutta (4,5) pair,” 827 Comput. Math. with Appl., vol. 32, no. 6 798 Comput. Math. with Appl., vol. 32, no. 6, pp. 15–28, Sep. 1996. 828 - BS23 is four stage RK method from the pape 799 - BS23 is four stage RK method from the paper of P. Bogacki and L. F. Shampine, 829 “A 3(2) pair of Runge - Kutta formulas 800 “A 3(2) pair of Runge - Kutta formulas,” 830 Appl. Math. Lett., vol 2, no 4, p.321 (1 801 Appl. Math. Lett., vol 2, no 4, p.321 (1989). 831 - DP45 are from Table 2 of J. R. Dormand an 802 - DP45 are from Table 2 of J. R. Dormand and P. J. Prince's 832 “A family of embedded Runge-Kutta form 803 “A family of embedded Runge-Kutta formulae,” 833 Journal of comput. and applied Math., vo 804 Journal of comput. and applied Math., vol. 6, no. 1, pp. 19–26, 1980. 834 805 835 May 4, 2016 G.Cosmo - field- 806 May 4, 2016 G.Cosmo - field-V10-02-03 836 ------------------- 807 ------------------- 837 - Fixed Clone() signatures in derived Field cl 808 - Fixed Clone() signatures in derived Field classes. 838 More corrections on implementations of opera 809 More corrections on implementations of operator=() and copy-ctors. 839 810 840 Apr 29, 2016 G.Cosmo - field- 811 Apr 29, 2016 G.Cosmo - field-V10-02-02 841 -------------------- 812 -------------------- 842 - Corrected implementation of operator=() and 813 - Corrected implementation of operator=() and copy-ctor for G4Field, 843 G4ElectroMagneticField, G4ElectricField and 814 G4ElectroMagneticField, G4ElectricField and G4CachedMagneticField. 844 815 845 Feb 25, 2016 P.Gumplinger - field- 816 Feb 25, 2016 P.Gumplinger - field-V10-02-01 846 ------------------------- 817 ------------------------- 847 - address Problem Report: 1831 818 - address Problem Report: 1831 848 change: G4Mag_SpinEqRhs, G4EqEMFieldWithSpin 819 change: G4Mag_SpinEqRhs, G4EqEMFieldWithSpin, G4EqEMFieldWithEDM and 849 G4RepleteEofM.cc from g_BMT = (magMo 820 G4RepleteEofM.cc from g_BMT = (magMoment/muB)/spin 850 to g_BMT = (std:: 821 to g_BMT = (std::abs(magMoment)/muB)/spin 851 822 852 823 853 Dec 11, 2015 A.Dotti - field-V10-02-0 824 Dec 11, 2015 A.Dotti - field-V10-02-00 854 -------------------------- 825 -------------------------- 855 Fixing typo in tests/CMakeList.txt file: subdi 826 Fixing typo in tests/CMakeList.txt file: subdirecotry() 856 instead of add_subdirectory() 827 instead of add_subdirectory() 857 828 858 Nov 2, 2015 J.Apostolakis - field 829 Nov 2, 2015 J.Apostolakis - field-V10-01-15 (fixed) 859 Oct 22, 2015 J.Apostolakis - field 830 Oct 22, 2015 J.Apostolakis - field-V10-01-14 860 -------------------------- 831 -------------------------- 861 - Reverted changes in G4FieldManager from tag 832 - Reverted changes in G4FieldManager from tags field-V10-01-05 to -07 862 inadvertently reintroduced in tag field-V10 833 inadvertently reintroduced in tag field-V10-01-13 863 (fixed in tag -15: committed new copy from 834 (fixed in tag -15: committed new copy from tag -04 'on top') 864 835 865 - Added explanation comment in G4MagHelicalSte 836 - Added explanation comment in G4MagHelicalSteper. 866 837 867 Oct 13, 2015 J.Apostolakis - field 838 Oct 13, 2015 J.Apostolakis - field-V10-01-13 868 -------------------------- 839 -------------------------- 869 - G4ChordFinder::FindNextChord: Added check ag 840 - G4ChordFinder::FindNextChord: Added check against number of iterations, 870 to identify potential issue of lack of conve 841 to identify potential issue of lack of convergence. 871 - test: fixed testProElectricMagField.cc 842 - test: fixed testProElectricMagField.cc 872 843 873 - Note: tag-13 inadvertently reintroduced chan 844 - Note: tag-13 inadvertently reintroduced changes from tags field-V10-01-05 to -07 874 845 875 Jun 26, 2015 P.Gumplinger - field 846 Jun 26, 2015 P.Gumplinger - field-V10-01-12, 11 876 ------------------------- 847 ------------------------- 877 - Include 'NumberOfVariables' in G4RepleteEofM 848 - Include 'NumberOfVariables' in G4RepleteEofM constructor argument list. 878 849 879 Jun 22, 2015 G.Cosmo - field 850 Jun 22, 2015 G.Cosmo - field-V10-01-10 880 -------------------- 851 -------------------- 881 - Withdrawn also changes introduced in tag "fi 852 - Withdrawn also changes introduced in tag "field-V10-01-08", as 882 responsible for memory violation errors in V 853 responsible for memory violation errors in Valgrind. 883 Now corresponding to tag "field-V10-01-04". 854 Now corresponding to tag "field-V10-01-04". 884 855 885 Jun 18, 2015 G.Cosmo - field 856 Jun 18, 2015 G.Cosmo - field-V10-01-09 886 -------------------- 857 -------------------- 887 - Withdrawn changes introduced from tag "field 858 - Withdrawn changes introduced from tag "field-V10-01-05" to tag 888 "field-V10-01-07" included, responsible for 859 "field-V10-01-07" included, responsible for failures on SLC6 and 889 run-time errors on Valgrind checks. 860 run-time errors on Valgrind checks. 890 861 891 Jun 10, 2015 P.Gumplinger - field 862 Jun 10, 2015 P.Gumplinger - field-V10-01-08 892 ------------------------- 863 ------------------------- 893 - initialize all elements of dydx[] in G4Reple 864 - initialize all elements of dydx[] in G4RepleteEofM::EvaluateRhsGivenB 894 Thanks to Tatsuya Kikawa (Osaka Univ.) 865 Thanks to Tatsuya Kikawa (Osaka Univ.) 895 866 896 Jun 10, 2015 J.Apostolakis - field 867 Jun 10, 2015 J.Apostolakis - field-V10-01-07 897 -------------------------- 868 -------------------------- 898 - G4FieldManager.cc : Made behaviour of SetDet 869 - G4FieldManager.cc : Made behaviour of SetDetector 'softer'. No 899 longer complains by default if ChordFinder 870 longer complains by default if ChordFinder is not (yet) set. 900 ( The default values of failMode = 0 i.e. 871 ( The default values of failMode = 0 i.e. quiet. ) 901 If a chord-finder exists, it will still war 872 If a chord-finder exists, it will still warn for other errors. 902 873 903 It is still possible to have louder/extra c 874 It is still possible to have louder/extra checks done calling 904 SetDetectorField with failMode > 0 875 SetDetectorField with failMode > 0 905 or by using a new method, which expects an 876 or by using a new method, which expects an existing field: 906 ChangeDetectorField(G4Field *detectorFiel 877 ChangeDetectorField(G4Field *detectorField) 907 878 908 Jun 8, 2015 J.Apostolakis - field 879 Jun 8, 2015 J.Apostolakis - field-V10-01-05, (-06 fixed) 909 -------------------------- 880 -------------------------- 910 - G4FieldManager.cc : Revised behaviour of Set 881 - G4FieldManager.cc : Revised behaviour of SetDetector - it now 911 passes the Field to the Equation, as is the 882 passes the Field to the Equation, as is the natural user expectation 912 The previous behaviour is possible, using e 883 The previous behaviour is possible, using extra argument 'failMode' 913 flag. Values: 0 = silent ; 884 flag. Values: 0 = silent ; 914 1 (default) = warning; 885 1 (default) = warning; 915 2 or other = fatal except 886 2 or other = fatal exception. 916 Or can use alternative (new) suggestion met 887 Or can use alternative (new) suggestion method ProposeDetectorField(); 917 888 918 This change is to ensure that user expectat 889 This change is to ensure that user expectation is met: 919 if the field is changed for an existing, 890 if the field is changed for an existing, working stepper it must 920 be propagated to the equation of motion. 891 be propagated to the equation of motion. 921 Note: this causes potential conflict betwee 892 Note: this causes potential conflict between the type of the equation 922 and the field, which will need to be 893 and the field, which will need to be solved in the future. 923 894 924 Old behaviour (just set our own pointer) is 895 Old behaviour (just set our own pointer) is still available in new method: 925 ProposeDetectorField(G4Field *detectorFie 896 ProposeDetectorField(G4Field *detectorField) 926 897 927 Co-works and requires new tag in geometry/n 898 Co-works and requires new tag in geometry/navigation: geomnav-V10-01-24. 928 899 929 Jun 4, 2015 P. Gumplinger - field 900 Jun 4, 2015 P. Gumplinger - field-V10-01-04 930 ------------------------- 901 ------------------------- 931 - change assignment to field instead of Field 902 - change assignment to field instead of Field array in G4RepleteEofM.cc 932 903 933 Jan 28, 2015 J.Apostolakis - field 904 Jan 28, 2015 J.Apostolakis - field-V10-01-01 (-02,03 fixed) 934 -------------------------- 905 -------------------------- ( History ) 935 - Revert unintended inclusion of changes in G4 906 - Revert unintended inclusion of changes in G4MagIntegratorDriver 936 907 937 Jan 15, 2015 J.Apostolakis - field 908 Jan 15, 2015 J.Apostolakis - field-V10-01-00 938 -------------------------- 909 -------------------------- 939 - Small refinements in G4FieldTrack - access r 910 - Small refinements in G4FieldTrack - access rest mass, avoid div by 0 940 Avoid division by zero for Unit direction 911 Avoid division by zero for Unit direction in FieldTrack 941 Added method to get Rest Mass. 912 Added method to get Rest Mass. 942 Needed for fixes related to Problem report 1 913 Needed for fixes related to Problem report 1696. 943 Thanks to Nathan S. Froemming <nfroemm@uw.ed 914 Thanks to Nathan S. Froemming <nfroemm@uw.edu> who reported the issue 944 and created dedicated test to demonstrate i 915 and created dedicated test to demonstrate it. 945 916 946 Nov 03, 2014 G.Cosmo - field 917 Nov 03, 2014 G.Cosmo - field-V10-00-04 947 -------------------- 918 -------------------- 948 - Moved constructors and simple methods to in 919 - Moved constructors and simple methods to in line in G4ChargeState and 949 G4LineSection for CPU speedup (courtesy of S 920 G4LineSection for CPU speedup (courtesy of S.Wenzel). 950 921 951 May 21, 2014 J.Apostolakis - field 922 May 21, 2014 J.Apostolakis - field-V10-00-03 952 -------------------------- 923 -------------------------- 953 - G4FieldTrack: 924 - G4FieldTrack: 954 * Fixed SetChargeAndMoments() to use the new 925 * Fixed SetChargeAndMoments() to use the new method 955 G4ChargeState::SetChargesAndMoments(); it 926 G4ChargeState::SetChargesAndMoments(); it was changing spin, because of 956 erroneous change in G4ChargeState::SetChar 927 erroneous change in G4ChargeState::SetChargesAndMoments(), that method 957 is now renamed SetChargeSpinMoments() to s 928 is now renamed SetChargeSpinMoments() to show what it does; 958 * Added pdg-spin as argument to constructors 929 * Added pdg-spin as argument to constructors (needed to track polarization); 959 * Renamed 'spin' to 'Polarization' in method 930 * Renamed 'spin' to 'Polarization' in method, arguments, data member to 960 avoid confusion; 931 avoid confusion; 961 * Revised constructors to add pdg-spin as la 932 * Revised constructors to add pdg-spin as last argument (with default -1). 962 - G4ChargeState: 933 - G4ChargeState: 963 - Addressed Coverity issue #56281 'Arguments 934 - Addressed Coverity issue #56281 'Arguments in wrong order' 964 G4ChargeState::SetChargeMoments() when use 935 G4ChargeState::SetChargeMoments() when used in 965 G4FieldTrack::SetChargeMoments() from addi 936 G4FieldTrack::SetChargeMoments() from addition of spin to arguments, 966 without revising name of method to reflect 937 without revising name of method to reflect it; 967 - Changed order of arguments in constructor, 938 - Changed order of arguments in constructor, making spin 3rd argument 968 (was 2nd) and making all arguments mandato 939 (was 2nd) and making all arguments mandatory; 969 - Renamed SetChargeAndMoments() method with 940 - Renamed SetChargeAndMoments() method with 5 arguments including spin (2nd) 970 to SetChargeSpinMoments(); 941 to SetChargeSpinMoments(); 971 - Added new methods including SetChargesAndM 942 - Added new methods including SetChargesAndMoments(), SetChargeMdm(), 972 SetChargeDipoleMoments() (no spin), and al 943 SetChargeDipoleMoments() (no spin), and also SetChargeSpin(), 973 SetChargeMdmSpin() (which includes spin) t 944 SetChargeMdmSpin() (which includes spin) to provide most/all potential 974 combinations. 945 combinations. 975 - G4MagIntegratorDriver::OneGoodStep(): 946 - G4MagIntegratorDriver::OneGoodStep(): 976 * Trial changes to address Valgrind issue, a 947 * Trial changes to address Valgrind issue, about value used before being set. 977 948 978 Apr 01, 2014 J.Apostolakis - fi 949 Apr 01, 2014 J.Apostolakis - field-V10-00-02 979 -------------------------- 950 -------------------------- 980 - Moved G4FieldTrack::LoadFromArray() to .cc a 951 - Moved G4FieldTrack::LoadFromArray() to .cc and removed non-necessary 981 thread-local static data local to the functi 952 thread-local static data local to the function. 982 953 983 Mar 14, 2014 J.Apostolakis - fi 954 Mar 14, 2014 J.Apostolakis - field-V10-00-01 984 -------------------------- 955 -------------------------- 985 - Fix assignment operator for G4FieldTrack. (C 956 - Fix assignment operator for G4FieldTrack. (Copied Rest Mass) 986 - Improve printing of G4FieldTrack 957 - Improve printing of G4FieldTrack 987 958 988 Jan 17, 2014 P.Gumplinger - fi 959 Jan 17, 2014 P.Gumplinger - field-V10-00-00 989 ------------------------- 960 ------------------------- 990 - add G4Mag_EqRhs::SetChargeMomentumMass( part 961 - add G4Mag_EqRhs::SetChargeMomentumMass( particleCharge, MomentumXc, mass) 991 to G4Mag_SpinEqRhs::SetChargeMomentumMass, s 962 to G4Mag_SpinEqRhs::SetChargeMomentumMass, see bug reported at: 992 http://hypernews.slac.stanford.edu/HyperNews 963 http://hypernews.slac.stanford.edu/HyperNews/geant4/get/emfields/210.html 993 964 994 Nov 18, 2013 P.Gumplinger - fi 965 Nov 18, 2013 P.Gumplinger - field-V09-06-13/12 995 ------------------------- 966 ------------------------- 996 - fix Coverity warning in G4RepleteEofM 967 - fix Coverity warning in G4RepleteEofM 997 968 998 Nov 17, 2013 J.Apostolakis 969 Nov 17, 2013 J.Apostolakis 999 -------------------------- 970 -------------------------- 1000 - Fixed and improved HelixMixed Stepper: 971 - Fixed and improved HelixMixed Stepper: 1001 Corrected the default stepper for small s 972 Corrected the default stepper for small steps to be ClassicalRK4. 1002 Added Angle-threshold parameter. (Default 973 Added Angle-threshold parameter. (Default remains 0.33 radians.) 1003 Added more Steppers, including G4NystromR 974 Added more Steppers, including G4NystromRK4. 1004 Revised Id numbers of Steppers, to make t 975 Revised Id numbers of Steppers, to make the best more visible. 1005 More comments in Stepper(). 976 More comments in Stepper(). 1006 977 1007 Nov 05, 2013 P.Gumplinger - f 978 Nov 05, 2013 P.Gumplinger - field-V09-06-11 1008 ------------------------- 979 ------------------------- 1009 - remove writing out-of-bounds dydx[8] = 0. i 980 - remove writing out-of-bounds dydx[8] = 0. in G4RepleteEofM.cc 1010 981 1011 Nov 04, 2013 P.Gumplinger - f 982 Nov 04, 2013 P.Gumplinger - field-V09-06-10 1012 ------------------------- 983 ------------------------- 1013 - add G4RepleteEofM to sources.cmake 984 - add G4RepleteEofM to sources.cmake 1014 f 985 field-V09-06-09 - same as 1015 Nov 01st, 2013 P.Gumplinger - f 986 Nov 01st, 2013 P.Gumplinger - field-V09-06-08 1016 --------------------------- 987 --------------------------- 1017 - add G4RepleteEofM: EofM that includes force 988 - add G4RepleteEofM: EofM that includes force due to B, E, and gravity field 1018 as well as mu*grad(B) and spin tracking. 989 as well as mu*grad(B) and spin tracking. 1019 990 1020 May 10th, 2013 P.Gumplinger/J.Apostolakis - f 991 May 10th, 2013 P.Gumplinger/J.Apostolakis - field-V09-06-07 1021 ----------------------------------------- 992 ----------------------------------------- 1022 - Revised number of field components (to allo 993 - Revised number of field components (to allow up to 24). 1023 18 are required for new applications (B, E 994 18 are required for new applications (B, E, Gravity, B-gradients) 1024 - Fixes for initialisation errors found by Co 995 - Fixes for initialisation errors found by Coverity. 1025 996 1026 May 10th, 2013 P.Gumplinger - field-V09-06-06 997 May 10th, 2013 P.Gumplinger - field-V09-06-06 1027 --------------------------- 998 --------------------------- 1028 - prevent divided by zero and shortcut spin t 999 - prevent divided by zero and shortcut spin tracking for spin == 0 1029 particles: G4Mag_SpinEqRhs.cc, G4EqEMFieldW 1000 particles: G4Mag_SpinEqRhs.cc, G4EqEMFieldWithSpin.cc and 1030 G4EqEMFieldWithEDM.cc 1001 G4EqEMFieldWithEDM.cc 1031 f 1002 field-V09-06-05 - same 1032 May 8th, 2013 P.Gumplinger/J.Apostolakis - f 1003 May 8th, 2013 P.Gumplinger/J.Apostolakis - field-V09-06-04 1033 ----------------------------------------- 1004 ----------------------------------------- 1034 - Introduced new class G4ChargeState to hold 1005 - Introduced new class G4ChargeState to hold charge, spin, magnetic moment 1035 (promoted from internal class of G4Field 1006 (promoted from internal class of G4FieldTrack). 1036 - Changed the signature of EquationOfMotion:: 1007 - Changed the signature of EquationOfMotion::SetChargeMomentumMass to 1037 take G4ChargeState in place of G4double (cha 1008 take G4ChargeState in place of G4double (charge) as first argument. 1038 - Deleted SetChargeMomentumMass from G4ChordF 1009 - Deleted SetChargeMomentumMass from G4ChordFinder, G4PropagatorInField, 1039 G4MagInt_Driver 1010 G4MagInt_Driver 1040 1011 1041 - Migrated testPropagateMagField and testProp 1012 - Migrated testPropagateMagField and testPropagateSpin. 1042 1013 1043 March 19th, 2013 G.Cosmo - field-V09-06-03, f 1014 March 19th, 2013 G.Cosmo - field-V09-06-03, field-V09-06-02 1044 ------------------------- 1015 ------------------------- 1045 - Cleanup of MT changes in G4FieldManagerStor 1016 - Cleanup of MT changes in G4FieldManagerStore. 1046 1017 1047 February 26th, 2013 A.Dotti - field-V09-06-01 1018 February 26th, 2013 A.Dotti - field-V09-06-01 1048 --------------------------- 1019 --------------------------- 1049 - First implementation of Cloning mechanism ( 1020 - First implementation of Cloning mechanism (needed for MT) 1050 1021 1051 February 22nd, 2013 G.Cosmo - field-V09-06-00 1022 February 22nd, 2013 G.Cosmo - field-V09-06-00 1052 --------------------------- 1023 --------------------------- 1053 - Cleanup of unnecessary changes for multi-th 1024 - Cleanup of unnecessary changes for multi-threading in G4QuadrupoleMagField. 1054 - Removed unused private data-members in G4Ma 1025 - Removed unused private data-members in G4Mag_UsualEqRhs and G4RKG3_Stepper. 1055 1026 1056 November 14th, 2012 P.Mato - field-V09-05-07 1027 November 14th, 2012 P.Mato - field-V09-05-07 1057 -------------------------- 1028 -------------------------- 1058 - G4QuadrupoleMagField: allow displaced origi 1029 - G4QuadrupoleMagField: allow displaced origin and rotation (Björn Riese) 1059 - Added G4SystemOfUnits.hh in unit tests 1030 - Added G4SystemOfUnits.hh in unit tests 1060 1031 1061 August 30th, 2012 P.Mato - field-V09-05-06 1032 August 30th, 2012 P.Mato - field-V09-05-06 1062 ------------------------ 1033 ------------------------ 1063 - Adapted CMakeLists.txt files to new unit te 1034 - Adapted CMakeLists.txt files to new unit tests 1064 1035 1065 June 11th, 2012 G.Cosmo - field-V09-05-05 1036 June 11th, 2012 G.Cosmo - field-V09-05-05 1066 ----------------------- 1037 ----------------------- 1067 - Explicitly use inclusion of headers for sys 1038 - Explicitly use inclusion of headers for system of units and physical 1068 constants, in plan to remove implicit inclu 1039 constants, in plan to remove implicit inclusion from globals.hh. 1069 1040 1070 May 14th, 2012 G.Cosmo - field-V09-05-04 1041 May 14th, 2012 G.Cosmo - field-V09-05-04 1071 ---------------------- 1042 ---------------------- 1072 - Fixed spurious case of hidden variable visi 1043 - Fixed spurious case of hidden variable visibility in G4NystromRK4, 1073 detected with '-Wshadow' compilation option 1044 detected with '-Wshadow' compilation option on gcc compiler. 1074 1045 1075 February 3rd, 2012 J.Apostolakis - field-V09 1046 February 3rd, 2012 J.Apostolakis - field-V09-05-03 1076 --------------------------------- 1047 --------------------------------- 1077 - G4FieldTrack: 1048 - G4FieldTrack: 1078 Added new (inline) method to set the Rest 1049 Added new (inline) method to set the Rest Mass. Needed in order to 1079 reset this - and keep reuse the same G 1050 reset this - and keep reuse the same G4FieldTrack in a client 1080 (across tracks.) 1051 (across tracks.) 1081 Made SetCurvePnt() method private. 1052 Made SetCurvePnt() method private. 1082 Simplified implementation of constructors 1053 Simplified implementation of constructors. Gain of 1 square root and 1083 1 division per call. 1054 1 division per call. 1084 1055 1085 February 3rd, 2012 G.Cosmo - field-V09-05-0 1056 February 3rd, 2012 G.Cosmo - field-V09-05-02 1086 ---------------------------- 1057 ---------------------------- 1087 - Removed tests in CMakeLists.txt causing cat 1058 - Removed tests in CMakeLists.txt causing catastrophic failure in system 1088 testing! 1059 testing! 1089 1060 1090 February 2nd, 2012 J.Apostolakis - field-V0 1061 February 2nd, 2012 J.Apostolakis - field-V09-05-01 1091 ---------------------------------- 1062 ---------------------------------- 1092 - G4Mag_UsualEqRhs: in SetChargeMomentumMass( 1063 - G4Mag_UsualEqRhs: in SetChargeMomentumMass() method, fixed problem with 1093 division by zero; stopped updating 'fInvCur 1064 division by zero; stopped updating 'fInvCurrentMomentumXc' (data member 1094 is obsolete). 1065 is obsolete). 1095 - Added tests in CMakeLists.txt 1066 - Added tests in CMakeLists.txt 1096 1067 1097 December 13th, 2011 G.Cosmo - field-V09-05-0 1068 December 13th, 2011 G.Cosmo - field-V09-05-00 1098 ---------------------------- 1069 ---------------------------- 1099 - Fixed Coverity defects in G4SimpleRunge (re 1070 - Fixed Coverity defects in G4SimpleRunge (removed spurious pointer 1100 data member) and G4FieldTrack (missing G4Ch 1071 data member) and G4FieldTrack (missing G4ChargeState::operator=()). 1101 - Synchronised unit tests to trunk (new test 1072 - Synchronised unit tests to trunk (new test field07 and minor updates). 1102 1073 1103 November 11th, 2011 J.Apostolakis - field-V0 1074 November 11th, 2011 J.Apostolakis - field-V09-04-06 1104 ---------------------------------- 1075 ---------------------------------- 1105 - Added G4Field.cc to list of files in source 1076 - Added G4Field.cc to list of files in sources.cmake 1106 1077 1107 November 4th, 2011 J.Apostolakis - field-V0 1078 November 4th, 2011 J.Apostolakis - field-V09-04-05 1108 ---------------------------------- 1079 ---------------------------------- 1109 - G4Field: revised to improve ability to dete 1080 - G4Field: revised to improve ability to detect gravity field: 1110 Added new data member to identify gravity f 1081 Added new data member to identify gravity field; 1111 Added new method IsGravityActive() to acces 1082 Added new method IsGravityActive() to access this data member; 1112 Created new source file: moving constructor 1083 Created new source file: moving constructors to it. 1113 - Changed G4UniformGravityField and G4Electro 1084 - Changed G4UniformGravityField and G4ElectroMagneticField 1114 to accomodate this refinement. 1085 to accomodate this refinement. 1115 1086 1116 November 2nd, 2011 P.Gumplinger - field-V09- 1087 November 2nd, 2011 P.Gumplinger - field-V09-04-04 1117 -------------------------------- 1088 -------------------------------- 1118 - update list of files in sources.cmake 1089 - update list of files in sources.cmake 1119 1090 1120 October 28th, 2011 P.Gumplinger - field-V09- 1091 October 28th, 2011 P.Gumplinger - field-V09-04-03 1121 -------------------------------- 1092 -------------------------------- 1122 - Added (uniform) gravity field capability. 1093 - Added (uniform) gravity field capability. 1123 New classes G4EqGravityField, G4UniformGrav 1094 New classes G4EqGravityField, G4UniformGravityField. 1124 1095 1125 *Required* for co-working tag in Transporta 1096 *Required* for co-working tag in Transportation 1126 1097 1127 October 12th, 2011 P.Gumplinger - field-V09- 1098 October 12th, 2011 P.Gumplinger - field-V09-04-02 1128 -------------------------------- 1099 -------------------------------- 1129 - replaced: omegac = 0.105658387*GeV/mass * 2 1100 - replaced: omegac = 0.105658387*GeV/mass * 2.837374841e-3*(rad/cm/kilogauss) 1130 with: omegac = (eplus/particleMass)*c_l 1101 with: omegac = (eplus/particleMass)*c_light 1131 in G4EqEMFieldWithEDM.cc, G4Mag_SpinEqRhs.c 1102 in G4EqEMFieldWithEDM.cc, G4Mag_SpinEqRhs.cc, G4EqEMFieldWithSpin.cc 1132 changed calculation: 1103 changed calculation: 1133 std::sqrt(kineticEnergy*kineticEnergy + 1104 std::sqrt(kineticEnergy*kineticEnergy + 2.0*restMass_c2*kineticEnergy); 1134 to: 1105 to: 1135 std::sqrt(kineticEnergy*(kineticEnergy+2 1106 std::sqrt(kineticEnergy*(kineticEnergy+2.0*restMass_c2)) 1136 in G4FieldTrack.cc 1107 in G4FieldTrack.cc 1137 1108 1138 August 11th, 2011 G.Cosmo - field-V09-04-01 1109 August 11th, 2011 G.Cosmo - field-V09-04-01 1139 -------------------------- 1110 -------------------------- 1140 - Migrated to new G4Exception scheme for warn 1111 - Migrated to new G4Exception scheme for warnings and errors. 1141 - Defined scheme for warnings/errors coding: 1112 - Defined scheme for warnings/errors coding: 1142 + 1xxx for warnings, 0xxx for errors. 1113 + 1xxx for warnings, 0xxx for errors. 1143 Code numbering: 1114 Code numbering: 1144 + 0001: not supported or implemented featur 1115 + 0001: not supported or implemented features; 1145 + 0002: invalid setup/construct; 1116 + 0002: invalid setup/construct; 1146 + 0003: invalid run condition; 1117 + 0003: invalid run condition; 1147 + 1001: incorrect setup; automatically adap 1118 + 1001: incorrect setup; automatically adapted. 1148 + 1002: notification. 1119 + 1002: notification. 1149 1120 1150 May 13th, 2011 J.Apostolakis 1121 May 13th, 2011 J.Apostolakis 1151 ---------------------------- 1122 ---------------------------- 1152 - Added new class G4TrialsCounter for keeping 1123 - Added new class G4TrialsCounter for keeping statistics of trials. 1153 - Avoid printing out pointer in G4CachedMagne 1124 - Avoid printing out pointer in G4CachedMagneticField::ReportStatistics(). 1154 - Updated unit tests. 1125 - Updated unit tests. 1155 1126 1156 May 12th, 2011 G.Cosmo - field-V09-04-00 1127 May 12th, 2011 G.Cosmo - field-V09-04-00 1157 ----------------------- 1128 ----------------------- 1158 - Fixed compilation warnings from gcc-4.6.0 f 1129 - Fixed compilation warnings from gcc-4.6.0 for variables set but not used. 1159 1130 1160 May 5th, 2011 J.Apostolakis 1131 May 5th, 2011 J.Apostolakis 1161 ---------------------------- 1132 ---------------------------- 1162 - Reordered data members to group invariants, 1133 - Reordered data members to group invariants, field parameters, etc... 1163 1134 1164 Sep 10th, 2010 J.Apostolakis - field-V09-03- 1135 Sep 10th, 2010 J.Apostolakis - field-V09-03-03 1165 ----------------------------- 1136 ----------------------------- 1166 - Revised constructor of G4MagErrorStepper to 1137 - Revised constructor of G4MagErrorStepper to add number of State variables 1167 - Corrected MagErrorStepper to copy State Var 1138 - Corrected MagErrorStepper to copy State Variable to output 1168 - Enable G4ConstRK4 to copy remaining State V 1139 - Enable G4ConstRK4 to copy remaining State Variables (must integrate 6) 1169 1140 1170 Sep 10th, 2010 J.Apostolakis - field-V09-03- 1141 Sep 10th, 2010 J.Apostolakis - field-V09-03-02 1171 ----------------------------- 1142 ----------------------------- 1172 - New class G4MonopoleEq for rhs of d(pc)/ds 1143 - New class G4MonopoleEq for rhs of d(pc)/ds propagation in field 1173 in SI units (V.Grichine). 1144 in SI units (V.Grichine). 1174 - Fixed passing of time in G4NystromRK4 1145 - Fixed passing of time in G4NystromRK4 1175 1146 1176 Jul 21st, 2010 T.Nikitina - field-V09-03-01 1147 Jul 21st, 2010 T.Nikitina - field-V09-03-01 1177 -------------------------- 1148 -------------------------- 1178 - Fixed cases of memory corruption in G4RKG3_ 1149 - Fixed cases of memory corruption in G4RKG3_Stepper. 1179 - Fixed case of unused array data member in G 1150 - Fixed case of unused array data member in G4ExactHelixStepper. 1180 - Removed useless code never executed in G4Co 1151 - Removed useless code never executed in G4ConstRK4::Stepper(). 1181 - Fixed initialization in G4NystromRK4 constr 1152 - Fixed initialization in G4NystromRK4 constructor. 1182 1153 1183 Jul 14th, 2010 G.Cosmo - field-V09-03-00 1154 Jul 14th, 2010 G.Cosmo - field-V09-03-00 1184 ----------------------- 1155 ----------------------- 1185 - Added dummy initialization of members in co 1156 - Added dummy initialization of members in constructors for G4CashKarpRKF45, 1186 G4ConstRK4, G4EqEMFieldWithEDM, G4EqEMField 1157 G4ConstRK4, G4EqEMFieldWithEDM, G4EqEMFieldWithSpin, G4ExactHelixStepper, 1187 G4FieldTrack, G4MagHelicalStepper, G4MagInt 1158 G4FieldTrack, G4MagHelicalStepper, G4MagInt_Driver, G4Mag_EqRhs, 1188 G4Mag_SpinEqRhs, G4Mag_UsualEqRhs, G4Nystro 1159 G4Mag_SpinEqRhs, G4Mag_UsualEqRhs, G4NystromRK4, G4RKG3_Stepper, 1189 G4UniformElectricField, G4UniformElectricFi 1160 G4UniformElectricField, G4UniformElectricField. 1190 1161 1191 Nov 12th, 2009 J.Apostolakis - field-V09-02- 1162 Nov 12th, 2009 J.Apostolakis - field-V09-02-09 1192 ----------------------------- 1163 ----------------------------- 1193 - G4MagIntegratorDriver: activate check on i 1164 - G4MagIntegratorDriver: activate check on integration error for spin. 1194 1165 1195 Nov 12th, 2009 J.Apostolakis - field-V09-02- 1166 Nov 12th, 2009 J.Apostolakis - field-V09-02-08 1196 ----------------------------- (fix only) 1167 ----------------------------- (fix only) 1197 - G4Nystrom: Corrected interface method getF 1168 - G4Nystrom: Corrected interface method getField: array now has explicit dimension[4] 1198 (Problem found by gcc 4.3 - i 1169 (Problem found by gcc 4.3 - it checked indices used in inline method! ) 1199 1170 1200 Nov 6th, 2009 P.Gumplinger - field-V09-02-07 1171 Nov 6th, 2009 P.Gumplinger - field-V09-02-07 1201 --------------------------- 1172 --------------------------- 1202 - bug fix in G4EqEMFieldWithSpin and G4EqEMFi 1173 - bug fix in G4EqEMFieldWithSpin and G4EqEMFieldWithEDM 1203 thanks to Hiromi Iinuma (KEK) see: 1174 thanks to Hiromi Iinuma (KEK) see: 1204 http://hypernews.slac.stanford.edu/HyperNew 1175 http://hypernews.slac.stanford.edu/HyperNews/geant4/get/emfields/161.html 1205 1176 1206 Nov 5th, 2009 J.Apostolakis - field-V09-02-0 1177 Nov 5th, 2009 J.Apostolakis - field-V09-02-06 1207 ---------------------------- 1178 ---------------------------- 1208 - G4MagIntegratorDriver.cc : Enabled call to 1179 - G4MagIntegratorDriver.cc : Enabled call to ComputeRightHandSide 1209 - G4NystromRK4.cc : Disabled auxilia 1180 - G4NystromRK4.cc : Disabled auxiliary code in Stepper (needed if 1210 ComputeRightHan 1181 ComputeRightHandSide is not called.) 1211 1182 1212 Nov 5th, 2009 J.Apostolakis - field-V09-02-0 1183 Nov 5th, 2009 J.Apostolakis - field-V09-02-05 1213 ---------------------------- 1184 ---------------------------- 1214 - Added new virtual method CalculateRightHand 1185 - Added new virtual method CalculateRightHandSide to G4MagIntegratorStepper for use 1215 in caching momentum (and field value) b 1186 in caching momentum (and field value) by G4NystromRK4 1216 Default implementation in G4MagIntegrat 1187 Default implementation in G4MagIntegratorStepper calls RightHandSide inline method. 1217 - G4Nystrom: New Set/Get method for cache di 1188 - G4Nystrom: New Set/Get method for cache distance. 1218 Changed private data members in 1189 Changed private data members in G4NystromRK4. 1219 - G4MagIntegratorDriver: alternative call to 1190 - G4MagIntegratorDriver: alternative call to ComputeRightHandSide is not used (in comment) 1220 As a result G4NystromRK4 operat 1191 As a result G4NystromRK4 operates without reusing 1221 1192 1222 Nov 5th, 2009 J.Apostolakis - field-V09-02-0 1193 Nov 5th, 2009 J.Apostolakis - field-V09-02-04 1223 ---------------------------- 1194 ---------------------------- 1224 - G4CachedMagneticField: New Simple class to 1195 - G4CachedMagneticField: New Simple class to cache value of Magnetic Field. 1225 Speeds up code when calculation of field 1196 Speeds up code when calculation of field value is complex. 1226 - G4NystromRK4 : New Stepper with Nys 1197 - G4NystromRK4 : New Stepper with Nystrom for magnetic field 1227 with analytic estimation of integration 1198 with analytic estimation of integration error. 1228 Greatly reduces number of field value pe 1199 Greatly reduces number of field value per step. 1229 - Revised testPropagateMagField to use Cached 1200 - Revised testPropagateMagField to use Cached Quadrupole field, 1230 and to cover G4NystromRK4 and G4ConstRK4 1201 and to cover G4NystromRK4 and G4ConstRK4. 1231 1202 1232 Nov 4th, 2009 P.Gumplinger - field-V09-02-03 1203 Nov 4th, 2009 P.Gumplinger - field-V09-02-03 1233 --------------------------- 1204 --------------------------- 1234 - (minor change) remove comment from G4EqEMFi 1205 - (minor change) remove comment from G4EqEMFieldWithSpin.cc 1235 add G4EqEMFieldWithEDM class: this is the R 1206 add G4EqEMFieldWithEDM class: this is the RHS of EofM in a combined 1236 electric and magnetic field, with spin trac 1207 electric and magnetic field, with spin tracking for both MDM and EDM terms. 1237 Thanks to Kevin Lynch, Phys. Dept. at Bosto 1208 Thanks to Kevin Lynch, Phys. Dept. at Boston University. 1238 1209 1239 May 18th, 2009 T.Nikitina - field-V09-02-02 1210 May 18th, 2009 T.Nikitina - field-V09-02-02 1240 ------------------------- 1211 ------------------------- 1241 - Enhanced algorithm G4ChordFinder::ApproxCur 1212 - Enhanced algorithm G4ChordFinder::ApproxCurvePointS() in order to speedup 1242 BrentLocator. 1213 BrentLocator. 1243 1214 1244 March 25th, 2009 G.Cosmo - field-V09-02-01 1215 March 25th, 2009 G.Cosmo - field-V09-02-01 1245 ------------------------ 1216 ------------------------ 1246 - Some code cleanup and formatting... 1217 - Some code cleanup and formatting... 1247 1218 1248 March 6th, 2009 P.Gumplinger - field-V09-02-0 1219 March 6th, 2009 P.Gumplinger - field-V09-02-00 1249 ---------------------------- 1220 ---------------------------- 1250 - Added 3rd term of BMT equation (Spin x Beta 1221 - Added 3rd term of BMT equation (Spin x Beta x Efield) to G4EqEMFieldWithSpin, 1251 addresses emfields forum posting #155 (bug 1222 addresses emfields forum posting #155 (bug report). Thanks to Kevin Lynch, 1252 Phys. Dept. at Boston University. 1223 Phys. Dept. at Boston University. 1253 - Moved renormalization of spin from G4EqEMFi 1224 - Moved renormalization of spin from G4EqEMFieldWithSpin and G4Mag_SpinEqRhs to 1254 G4ClassicalRK4 and G4SimpleHeum. 1225 G4ClassicalRK4 and G4SimpleHeum. 1255 - Added Spin propagation errors to the criter 1226 - Added Spin propagation errors to the criteria for 'OneGoodStep' in 1256 G4MagIntegratorDriver but actually don't ad 1227 G4MagIntegratorDriver but actually don't add it (yet) to the decision logic. 1257 1228 1258 November, 19th, 2008 P.Gumplinger - field-V0 1229 November, 19th, 2008 P.Gumplinger - field-V09-01-05 1259 ---------------------------------- 1230 ---------------------------------- 1260 - Renormalized the spin to 1 in G4EqEMFieldWi 1231 - Renormalized the spin to 1 in G4EqEMFieldWithSpin and G4Mag_SpinEqRhs. 1261 1232 1262 November, 7th, 2008 P.Gumplinger - field-V0 1233 November, 7th, 2008 P.Gumplinger - field-V09-01-04 1263 ---------------------------------- 1234 ---------------------------------- 1264 - Added SetAnomaly() and GetAnomaly() accesso 1235 - Added SetAnomaly() and GetAnomaly() accessors to G4EqEMFieldWithSpin. 1265 1236 1266 October, 28th, 2008 T.Nikitina - field-V09- 1237 October, 28th, 2008 T.Nikitina - field-V09-01-03 1267 -------------------------------- 1238 -------------------------------- 1268 - Added 'ApproxCurveV' to method G4ChordFinde 1239 - Added 'ApproxCurveV' to method G4ChordFinder::ApproxCurvePointS() in 1269 order to better calculate the curve length. 1240 order to better calculate the curve length. 1270 - Some code cleanup. 1241 - Some code cleanup. 1271 1242 1272 September, 18th, 2008 T.Nikitina 1243 September, 18th, 2008 T.Nikitina 1273 ---------------------------------- 1244 ---------------------------------- 1274 - Added new stepper class G4ConstRK4, perform 1245 - Added new stepper class G4ConstRK4, performing integration of one step 1275 with error calculation in constant magnetic 1246 with error calculation in constant magnetic field; implementation derived 1276 from G4ClassicalRK4. 1247 from G4ClassicalRK4. 1277 1248 1278 July, 15th, 2008 J.Apostolakis - field-V09- 1249 July, 15th, 2008 J.Apostolakis - field-V09-01-02 1279 -------------------------------- 1250 -------------------------------- 1280 - Revised signature of G4ChordFinder::FinderN 1251 - Revised signature of G4ChordFinder::FinderNextChord(), making 'FieldTrack' 1281 argument passed a reference. 1252 argument passed a reference. 1282 1253 1283 May, 28th, 2008 T.Nikitina 1254 May, 28th, 2008 T.Nikitina 1284 ---------------------------- 1255 ---------------------------- 1285 - G4ChordFinder: added new method ApproxCurve 1256 - G4ChordFinder: added new method ApproxCurvePointS() using Brent second order 1286 location mechanism. 1257 location mechanism. 1287 1258 1288 April 24th, 2008 T.Nikitina - field-V09-01- 1259 April 24th, 2008 T.Nikitina - field-V09-01-01 1289 ----------------------------- 1260 ----------------------------- 1290 - Fix 'unused' non-initialized values of dydx 1261 - Fix 'unused' non-initialized values of dydx in G4EqMagElectricField 1291 and G4EqEMFieldWithSpin. 1262 and G4EqEMFieldWithSpin. 1292 1263 1293 January 17th, 2008 G.Cosmo - field-V09-01-0 1264 January 17th, 2008 G.Cosmo - field-V09-01-00 1294 ---------------------------- 1265 ---------------------------- 1295 - G4CashKarpRKF45: deleted un-needed duplicat 1266 - G4CashKarpRKF45: deleted un-needed duplicate (and unused) instance variable 1296 'fNumberOfVariables', already defined in G4M 1267 'fNumberOfVariables', already defined in G4MagIntegratorStepper. (J.Ap.) 1297 - Some code cleanup. 1268 - Some code cleanup. 1298 1269 1299 December 7th, 2007 J.Apostolakis & T.Nikiti 1270 December 7th, 2007 J.Apostolakis & T.Nikitina - field-V09-00-03 1300 --------------------------------------------- 1271 ----------------------------------------------- 1301 - New class G4FieldManagerStore. It enables r 1272 - New class G4FieldManagerStore. It enables resetting of all chord 1302 finders' state. Needed to address problem r 1273 finders' state. Needed to address problem reported by user. 1303 1274 1304 September 9th, 2007 G.Cosmo - field-V09-00-0 1275 September 9th, 2007 G.Cosmo - field-V09-00-02a 1305 ---------------------------- 1276 ---------------------------- 1306 - Some code cleanup in G4MagHelicalStepper.cc 1277 - Some code cleanup in G4MagHelicalStepper.cc. 1307 1278 1308 August 30th, 2007 P.Gumplinger - field-V09 1279 August 30th, 2007 P.Gumplinger - field-V09-00-02 1309 --------------------------------- 1280 --------------------------------- 1310 - Add G4EqEMFieldWithSpin class to allow trac 1281 - Add G4EqEMFieldWithSpin class to allow tracking of spin also in 1311 G4ElectroMagneticFields 1282 G4ElectroMagneticFields 1312 1283 1313 August 21st, 2007 T.Nikitina - field-V09-0 1284 August 21st, 2007 T.Nikitina - field-V09-00-01 1314 ------------------------------- 1285 ------------------------------- 1315 - Fix to DistChord() method for Helical Stepp 1286 - Fix to DistChord() method for Helical Steppers: adopt 'special' case 1316 also for Ang<2pi not only for Ang<pi; use c 1287 also for Ang<2pi not only for Ang<pi; use cos() in place of tan(), to 1317 improve CPU performance. 1288 improve CPU performance. 1318 - Improved AdvanceHelix() to be able to make 1289 - Improved AdvanceHelix() to be able to make half step and full step 1319 in one call. 1290 in one call. 1320 - In G4HelixMixedStepper added possibility to 1291 - In G4HelixMixedStepper added possibility to call different steppers for 1321 small steps and add some statistics how off 1292 small steps and add some statistics how offen different steppers are called. 1322 - G4RKG3_Stepper: improved internal algorithm 1293 - G4RKG3_Stepper: improved internal algorithm to use pre-computed values; 1323 the stepper now gives comparable CPU perfor 1294 the stepper now gives comparable CPU performance as ClassicalRK4. 1324 - Updated unit tests. 1295 - Updated unit tests. 1325 1296 1326 August 17th, 2007 G.Cosmo - field-V09-00-0 1297 August 17th, 2007 G.Cosmo - field-V09-00-00 1327 ---------------------------- 1298 ---------------------------- 1328 - Changed FatalException to EventMustBeAborte 1299 - Changed FatalException to EventMustBeAborted in AccurateAdvance() 1329 if proposed integration step is negative. 1300 if proposed integration step is negative. 1330 1301 1331 June 8th, 2007 T.Nikitina - field-V08-03-0 1302 June 8th, 2007 T.Nikitina - field-V08-03-03 1332 ---------------------------- 1303 ---------------------------- 1333 - Relaxed FatalException to Warning in G4MagI 1304 - Relaxed FatalException to Warning in G4MagIntegratorDriver::AccurateAdvance() 1334 for case of step zero and return previous v 1305 for case of step zero and return previous value. This fixes problem 1335 observed by ATLAS in release 8.3 when requi 1306 observed by ATLAS in release 8.3 when requiring very accurate propagation 1336 -- ie using very small values for acceptabl 1307 -- ie using very small values for acceptable integration error. 1337 1308 1338 May 18th, 2007 T.Nikitina - field-V08-03-0 1309 May 18th, 2007 T.Nikitina - field-V08-03-02 1339 ---------------------------- 1310 ---------------------------- 1340 - New class G4HelixMixedStepper, mixing helic 1311 - New class G4HelixMixedStepper, mixing helical stepper and RK 1341 G4MagHelicalStepper 1312 G4MagHelicalStepper 1342 - Keep values of inverse Radius, .. 1313 - Keep values of inverse Radius, .. 1343 - New calculation of DistChord for SteppingAn 1314 - New calculation of DistChord for SteppingAngle > pi 1344 G4RKG3Stepper 1315 G4RKG3Stepper 1345 - New calculation of DistChord for SteppingAn 1316 - New calculation of DistChord for SteppingAngle > pi 1346 1317 1347 May 16th, 2007 G.Cosmo - field-V08-03-01 1318 May 16th, 2007 G.Cosmo - field-V08-03-01 1348 ------------------------- 1319 ------------------------- 1349 - Introduced new class G4ErrorMag_UsualEqRhs 1320 - Introduced new class G4ErrorMag_UsualEqRhs used to reverse the magnetic 1350 field when propagation is backwards for err 1321 field when propagation is backwards for error propagation (by P.Arce). 1351 - Coworks with tag "global-V08-03-02". 1322 - Coworks with tag "global-V08-03-02". 1352 1323 1353 May 11th, 2007 G.Cosmo - field-V08-03-00 1324 May 11th, 2007 G.Cosmo - field-V08-03-00 1354 ------------------------- 1325 ------------------------- 1355 - Use call to G4GeometryTolerance instead of 1326 - Use call to G4GeometryTolerance instead of kCarTolerance constant in 1356 G4MagIntegratorDriver. 1327 G4MagIntegratorDriver. 1357 - Requires tag "global-V08-03-00" and related 1328 - Requires tag "global-V08-03-00" and related tag set. 1358 1329 1359 May 10th, 2007 J.Apostolakis - field-V08-0 1330 May 10th, 2007 J.Apostolakis - field-V08-02-01 1360 ------------------------------- 1331 ------------------------------- 1361 - G4MagIntegratorDriver: 1332 - G4MagIntegratorDriver: 1362 * added protections against zero initial 1333 * added protections against zero initial or internal step h=0, (exceptions) 1363 * revised (re)calculation of h, and quit 1334 * revised (re)calculation of h, and quit loop if h/length < smallest-fraction (~ 10^-12) 1364 1335 1365 April 26th, 2007 T.Nikitina - field-V08-02-0 1336 April 26th, 2007 T.Nikitina - field-V08-02-00 1366 ---------------------------- 1337 ---------------------------- 1367 - Corrected integration constants in G4MagHel 1338 - Corrected integration constants in G4MagHelicalStepper 1368 - Added implementation of G4RKG3_Stepper, ste 1339 - Added implementation of G4RKG3_Stepper, stepper derived from Geant3. 1369 - Updated NTST unit test. New unit test "fiel 1340 - Updated NTST unit test. New unit test "field06" for comparison of steppers. 1370 1341 1371 November 14th, 2006 J.Apostolakis - field-V0 1342 November 14th, 2006 J.Apostolakis - field-V08-01-02 1372 ---------------------------------- 1343 ---------------------------------- 1373 - G4MagIntegratorDriver 1344 - G4MagIntegratorDriver 1374 * Made first argument of GetDerivatives a r 1345 * Made first argument of GetDerivatives a reference - avoid copy 1375 - G4MagIntegratorStepper 1346 - G4MagIntegratorStepper 1376 * Include the SetEquationOfMotion() method 1347 * Include the SetEquationOfMotion() method in G4MagIntegratorStepper 1377 (for Geant4e, as in field-V08-01-00) 1348 (for Geant4e, as in field-V08-01-00) 1378 * Update of disclaimers. 1349 * Update of disclaimers. 1379 1350 1380 November 13th, 2006 G.Cosmo - field-V08-01-0 1351 November 13th, 2006 G.Cosmo - field-V08-01-01 1381 ---------------------------- 1352 ---------------------------- 1382 - G4FieldTrack: 1353 - G4FieldTrack: 1383 o Implemented missing definition for GetCha 1354 o Implemented missing definition for GetCharge(). 1384 o Corrected 'const' qualifier for accessors 1355 o Corrected 'const' qualifier for accessors in the subclass. 1385 o Cleanup ... 1356 o Cleanup ... 1386 - NOTE: this tag is NOT including the change 1357 - NOTE: this tag is NOT including the change below in G4MagIntegratorStepper. 1387 1358 1388 June 21st, 2006 J.Apostolakis - field-V08-01 1359 June 21st, 2006 J.Apostolakis - field-V08-01-00 1389 ------------------------------ 1360 ------------------------------ 1390 - Including the SetEquationOfMotion() method 1361 - Including the SetEquationOfMotion() method in G4MagIntegratorStepper 1391 1362 1392 June 22nd, 2006 J.Apostolakis - field-V08-00 1363 June 22nd, 2006 J.Apostolakis - field-V08-00-07 1393 ----------------------------- 1364 ----------------------------- 1394 - G4ExactHelixStepper: reintroduced corrected 1365 - G4ExactHelixStepper: reintroduced corrected class 1395 --> testPropagateMagField now tests it al 1366 --> testPropagateMagField now tests it also (added) 1396 - G4MagHelicalStepper: made Stepper virtual ( 1367 - G4MagHelicalStepper: made Stepper virtual (for now) 1397 to enable G4ExactHelixStepper to 1368 to enable G4ExactHelixStepper to override it 1398 1369 1399 June 21st, 2006 J.Apostolakis - field-V08-00 1370 June 21st, 2006 J.Apostolakis - field-V08-00-06 1400 ----------------------------- 1371 ----------------------------- 1401 - G4ExactHelixStepper: taking out class 1372 - G4ExactHelixStepper: taking out class 1402 (provisional tag in case of difficulties w 1373 (provisional tag in case of difficulties with class, revisions) 1403 1374 1404 --- The field-V08-00-0x , x > 6, tags do not 1375 --- The field-V08-00-0x , x > 6, tags do not include the change below 1405 1376 1406 May 27th, 2006 J.Apostolakis - field-V08-00- 1377 May 27th, 2006 J.Apostolakis - field-V08-00-05 1407 ----------------------------- 1378 ----------------------------- 1408 - G4FieldTrack: Fix for simple compilation er 1379 - G4FieldTrack: Fix for simple compilation error on Sun. 1409 1380 1410 May 23rd, 2006 J.Apostolakis - field-V08-00- 1381 May 23rd, 2006 J.Apostolakis - field-V08-00-04 1411 ----------------------------- 1382 ----------------------------- 1412 - G4FieldTrack: Fix for memory leak for Charg 1383 - G4FieldTrack: Fix for memory leak for ChargeState 1413 Made G4ChargeState a data member (has an i 1384 Made G4ChargeState a data member (has an instance) 1414 1385 1415 May 18th, 2006 J.Apostolakis - field-V08-00- 1386 May 18th, 2006 J.Apostolakis - field-V08-00-03 1416 ----------------------------- 1387 ----------------------------- 1417 - G4FieldTrack: Fix for issue with gcc 4.0 ( 1388 - G4FieldTrack: Fix for issue with gcc 4.0 (mac) 1418 1389 1419 May 16th, 2006 J.Apostolakis - field-V08-00- 1390 May 16th, 2006 J.Apostolakis - field-V08-00-02 1420 ----------------------------- 1391 ----------------------------- 1421 - G4ExactHelixStepper 1392 - G4ExactHelixStepper 1422 Taken out alpha version - it was included 1393 Taken out alpha version - it was included in error 1423 1394 1424 May 11th, 2006 J.Apostolakis - field-V08-00- 1395 May 11th, 2006 J.Apostolakis - field-V08-00-01 1425 ----------------------------- 1396 ----------------------------- 1426 - G4FieldTrack 1397 - G4FieldTrack 1427 Significant, provisional change: 1398 Significant, provisional change: 1428 * Added charge and moments to FieldTrack 1399 * Added charge and moments to FieldTrack 1429 (SetMethods, and pointer to embedde 1400 (SetMethods, and pointer to embedded class G4ChargeState) 1430 Technical revisions: 1401 Technical revisions: 1431 * New constructor, with charge and witho 1402 * New constructor, with charge and without velocity 1432 * New almost-default constructor (taking 1403 * New almost-default constructor (taking a character) 1433 Also: 1404 Also: 1434 * New constructor to take const referenc 1405 * New constructor to take const reference to Spin 1435 * New implementation method UpdateFourMo 1406 * New implementation method UpdateFourMomentum 1436 * Streaming operator takes const referen 1407 * Streaming operator takes const reference, 1437 and outputs momentum magnitude & dir 1408 and outputs momentum magnitude & direction magn. 1438 1409 1439 - G4ExactHelixStepper 1410 - G4ExactHelixStepper 1440 Included in error 1411 Included in error 1441 1412 1442 Apr 6th, 2006 J.Apostolakis - field-V08-00-0 1413 Apr 6th, 2006 J.Apostolakis - field-V08-00-00 1443 ---------------------------- 1414 ---------------------------- 1444 - In G4FieldManager 1415 - In G4FieldManager 1445 Added missing const GetChordFinder() method 1416 Added missing const GetChordFinder() method -- Problem report #847 1446 Corrected description (at top of include fil 1417 Corrected description (at top of include file hh): 1447 - It is possible to set the field manager o 1418 - It is possible to set the field manager of a logical volume (since long) 1448 1419 1449 1420 1450 Nov 9th, 2005 G.Cosmo - field-V07-01-00 1421 Nov 9th, 2005 G.Cosmo - field-V07-01-00 1451 ---------------------- 1422 ---------------------- 1452 - Archived source code of field01 unit test, 1423 - Archived source code of field01 unit test, now moved to examples/extended. 1453 - Migrated unit test NTST to use <sstream> an 1424 - Migrated unit test NTST to use <sstream> and std:: namespace. Up-to-date 1454 with G4VParticleChange new interface. 1425 with G4VParticleChange new interface. 1455 1426 1456 Dec 2nd, 2004 G.Cosmo - field-V06-02-02 1427 Dec 2nd, 2004 G.Cosmo - field-V06-02-02 1457 ---------------------- 1428 ---------------------- 1458 - Implemented migration to <cmath> for standa 1429 - Implemented migration to <cmath> for standard mathematical functions. 1459 1430 1460 Dec 2nd, 2004 J.Apostolakis - field-V06-02-0 1431 Dec 2nd, 2004 J.Apostolakis - field-V06-02-01 1461 ---------------------------- 1432 ---------------------------- 1462 - Improvements to comments in key Field class 1433 - Improvements to comments in key Field classes 1463 - Changes to test/NTST, renaming 'main()' fil 1434 - Changes to test/NTST, renaming 'main()' file & modifying input files 1464 - Several improvements to test files 1435 - Several improvements to test files 1465 testProElectroMagField.cc 1436 testProElectroMagField.cc 1466 * updating for new Electric Field inheri 1437 * updating for new Electric Field inheritance (& need for 1467 different ChordFinder creation ) 1438 different ChordFinder creation ) 1468 * adding columns to print-outs in spin c 1439 * adding columns to print-outs in spin case for better diagnosis 1469 testPropagateMagField.cc 1440 testPropagateMagField.cc 1470 * Added verbosity level 1 to field Propa 1441 * Added verbosity level 1 to field Propagator, relabelled old method. 1471 testPropagateSpin.cc 1442 testPropagateSpin.cc 1472 * Added more printout of parameters (sta 1443 * Added more printout of parameters (state) of G4PropagatorInField 1473 and G4FieldManager before running each 1444 and G4FieldManager before running each test. 1474 test/NTST 1445 test/NTST 1475 * Renamed main() file to testNTST.cc and 1446 * Renamed main() file to testNTST.cc and added G4UItcsh terminal. 1476 1447 1477 1448 1478 Oct 20th, 2004 P.Gumplinger - field-V06-02-0 1449 Oct 20th, 2004 P.Gumplinger - field-V06-02-00 1479 ---------------------------- 1450 ---------------------------- 1480 - Added Set/GetAnomaly() methods in G4Mag_Spi 1451 - Added Set/GetAnomaly() methods in G4Mag_SpinEqRhs. 1481 1452 1482 Feb 9th, 2004 G.Cosmo - field-V06-00-00 1453 Feb 9th, 2004 G.Cosmo - field-V06-00-00 1483 ---------------------- 1454 ---------------------- 1484 - G4UniformMagField.cc: added missing impleme 1455 - G4UniformMagField.cc: added missing implementation for 1485 GetConstantFieldValue(). Fixes bug report # 1456 GetConstantFieldValue(). Fixes bug report #575. 1486 1457 1487 Nov 13th, 2003 J.Apostolakis - field-V05-02- 1458 Nov 13th, 2003 J.Apostolakis - field-V05-02-08 1488 ----------------------------- 1459 ----------------------------- 1489 - G4ChordFinder: 1460 - G4ChordFinder: 1490 o extended the arguments of AdvanceChordLim 1461 o extended the arguments of AdvanceChordLimited and FindNextChord 1491 adding the current safety sphere (origin, 1462 adding the current safety sphere (origin, radius), for use in optimising. 1492 o fixed set functions which had side effect 1463 o fixed set functions which had side effect (on first fraction.) 1493 - Added new class G4ChordFinderSaf (using abo 1464 - Added new class G4ChordFinderSaf (using above) 1494 o which uses safety to create longer chords 1465 o which uses safety to create longer chords, so enabling 1495 propagation in fewer steps --> performa 1466 propagation in fewer steps --> performance optimisation 1496 - G4FieldManager: 1467 - G4FieldManager: 1497 Changed default accuracy parameters to mu 1468 Changed default accuracy parameters to much better values: 1498 Epsilon Min Default to 5.0e-5 from 1469 Epsilon Min Default to 5.0e-5 from 5.0e-7 (too small) 1499 Epsilon Max Default to 0.001 from 1470 Epsilon Max Default to 0.001 from 0.05 (far too big) 1500 1471 1501 Nov 7th, 2003 J.Apostolakis - field-V05-02- 1472 Nov 7th, 2003 J.Apostolakis - field-V05-02-07 1502 ----------------------------- 1473 ----------------------------- 1503 - G4ChordFinder 1474 - G4ChordFinder 1504 o Made this a base class 1475 o Made this a base class 1505 * to enable specialised implementations 1476 * to enable specialised implementations 1506 * virtual methods: FindNextChord, PrintSt 1477 * virtual methods: FindNextChord, PrintStatistics) 1507 * new method AccumulateStatistics to aid 1478 * new method AccumulateStatistics to aid in this 1508 1479 1509 o New default value of 1480 o New default value of Accuracy!! 1510 Delta Chord to 0.25 mm (from 1481 Delta Chord to 0.25 mm (from 3.00 mm) <----- 1511 1482 1512 - G4FieldManager 1483 - G4FieldManager 1513 o Changed default values of 1484 o Changed default values of 1514 Delta One Step to 0.010 mm (from 1485 Delta One Step to 0.010 mm (from 0.25 mm) <----- 1515 Delta Intersection to 0.001 mm (from 1486 Delta Intersection to 0.001 mm (from 0.10 mm) <----- 1516 for increased default accuracy 1487 for increased default accuracy 1517 o Use field's DoesFieldChangesEnergy method 1488 o Use field's DoesFieldChangesEnergy method to set relevant member variable 1518 1489 1519 Nov 7th, 2003 J.Apostolakis - field-V05-02-0 1490 Nov 7th, 2003 J.Apostolakis - field-V05-02-06 1520 ---------------------------- 1491 ---------------------------- 1521 - G4ChordFinder 1492 - G4ChordFinder 1522 Created new class members for parameters u 1493 Created new class members for parameters used in heuristics: 1523 fFirstFraction for first st 1494 fFirstFraction for first step 1524 fFractionLast fraction of 1495 fFractionLast fraction of last step, if redoing 1525 fFractionNextEstimate confidence i 1496 fFractionNextEstimate confidence in step est from chord 1526 fMultipleRadius for small ra 1497 fMultipleRadius for small radii of curve 1527 New method to Print Statistics. 1498 New method to Print Statistics. 1528 Verbosity to enable optional printing of s 1499 Verbosity to enable optional printing of stats in destructor. 1529 1500 1530 Nov 7th, 2003 J.Apostolakis - field-V05-02-0 1501 Nov 7th, 2003 J.Apostolakis - field-V05-02-05 1531 ---------------------------- 1502 ---------------------------- 1532 - G4ChordFinder 1503 - G4ChordFinder 1533 o Added simple statistics (with access meth 1504 o Added simple statistics (with access methods) 1534 - test/NTST 1505 - test/NTST 1535 o Added new test, taken from D. Williams' e 1506 o Added new test, taken from D. Williams' exampleNTST 1536 modified and maintained by J. Apostolaki 1507 modified and maintained by J. Apostolakis 1537 1508 1538 Nov 5th, 2003 J.Apostolakis - field-V05-02-0 1509 Nov 5th, 2003 J.Apostolakis - field-V05-02-04 1539 ---------------------------- 1510 ---------------------------- 1540 - G4FieldManager 1511 - G4FieldManager 1541 o Added Get/Set Min/Max imumEpsilonStep 1512 o Added Get/Set Min/Max imumEpsilonStep 1542 o Added fEpsilonMin fEpsilonMax & default t 1513 o Added fEpsilonMin fEpsilonMax & default to member variables. 1543 >> Now these can be tailored for different 1514 >> Now these can be tailored for different parts of a detector or setup 1544 1515 1545 - G4Field G4ElectroMagneticField G4MagneticFi 1516 - G4Field G4ElectroMagneticField G4MagneticField 1546 o Adding the virtual method DoesFieldChan 1517 o Adding the virtual method DoesFieldChangeEnergy() [to be used later] 1547 o So that G4ElectroMagneticField derives fr 1518 o So that G4ElectroMagneticField derives from G4Field 1548 and G4MagneticField derives from G4Electr 1519 and G4MagneticField derives from G4ElectroMagneticField 1549 1520 1550 - G4MagErrorStepper and derived classes 1521 - G4MagErrorStepper and derived classes 1551 (G4ClassicalRK4 G4SimpleRunge G4ExplicitE 1522 (G4ClassicalRK4 G4SimpleRunge G4ExplicitEuler G4ImplicitEuler G4SimpleHeum) 1552 o the constructors take G4EquationOfMotion 1523 o the constructors take G4EquationOfMotion in place of a G4Mag_EqRhs 1553 as it these applicable to all types of eq 1524 as it these applicable to all types of equations 1554 (not just ones for Magnetic field) 1525 (not just ones for Magnetic field) 1555 1526 1556 - G4EqMagElectricField 1527 - G4EqMagElectricField 1557 o derives from G4EquationOfMotion 1528 o derives from G4EquationOfMotion 1558 1529 1559 - G4ChordFinder 1530 - G4ChordFinder 1560 o Moved simple constructor to .cc file (tog 1531 o Moved simple constructor to .cc file (together with 'complex' one) 1561 o Changed fDefaultDeltaChord to a constant 1532 o Changed fDefaultDeltaChord to a constant member variable (from class var.) 1562 1533 1563 Nov 4th, 2003 G.Cosmo - field-V05-02-03 1534 Nov 4th, 2003 G.Cosmo - field-V05-02-03 1564 ---------------------- 1535 ---------------------- 1565 Undocumented. 1536 Undocumented. 1566 1537 1567 Nov 4th, 2003 G.Cosmo - field-V05-02-02 1538 Nov 4th, 2003 G.Cosmo - field-V05-02-02 1568 ---------------------- 1539 ---------------------- 1569 - G4ChordFinder.cc: 1540 - G4ChordFinder.cc: 1570 o Fixed compilation problem occuring when G 1541 o Fixed compilation problem occuring when G4DEBUG_FIELD was set. 1571 1542 1572 Oct 31st, 2003 G.Cosmo - field-V05-02-01 1543 Oct 31st, 2003 G.Cosmo - field-V05-02-01 1573 ----------------------- 1544 ----------------------- 1574 - Code cleanup and removal of redundant heade 1545 - Code cleanup and removal of redundant header includes, replaced 1575 where necessary by forward declarations. 1546 where necessary by forward declarations. 1576 1547 1577 Oct 24th, 2003 G.Cosmo - field-V05-02-00 1548 Oct 24th, 2003 G.Cosmo - field-V05-02-00 1578 ----------------------- 1549 ----------------------- 1579 - Migrated to use new G4Exception scheme. 1550 - Migrated to use new G4Exception scheme. 1580 - Updated outputs of unit tests. 1551 - Updated outputs of unit tests. 1581 1552 1582 Jun 25th, 2003 J.Apostolakis - field-V05-01- 1553 Jun 25th, 2003 J.Apostolakis - field-V05-01-06 1583 ----------------------------- 1554 ----------------------------- 1584 - Suppressed printing of statistics (by defau 1555 - Suppressed printing of statistics (by default) in MagIntegrationDriver. 1585 - Fix for unused variables warning in ChordFi 1556 - Fix for unused variables warning in ChordFinder. 1586 1557 1587 Jun 24th, 2003 J.Apostolakis - field-V05-01- 1558 Jun 24th, 2003 J.Apostolakis - field-V05-01-05 1588 ----------------------------- 1559 ----------------------------- 1589 - Fix for problems introduced in field-V05-01 1560 - Fix for problems introduced in field-V05-01-03: 1590 o G4ChordFinder: 1561 o G4ChordFinder: 1591 - Fixed unitialised variable for next ste 1562 - Fixed unitialised variable for next step (now used for optimisation). 1592 - Protected assignment of 'fLastStepEstim 1563 - Protected assignment of 'fLastStepEstimate_Unconstrained' in case of 1593 unitialised value. 1564 unitialised value. 1594 1565 1595 Jun 21st, 2003 J.Apostolakis - field-V05-01- 1566 Jun 21st, 2003 J.Apostolakis - field-V05-01-04 1596 ----------------------------- 1567 ----------------------------- 1597 - G4FieldManager: 1568 - G4FieldManager: 1598 o Revised into 'slightly' abstract class wi 1569 o Revised into 'slightly' abstract class with one (new) virtual method: 1599 ConfigureForTrack( const G4Track *) 1570 ConfigureForTrack( const G4Track *) 1600 to enable the user to configure it with d 1571 to enable the user to configure it with different accuracy parameters 1601 depending on energy, particle id, volume, 1572 depending on energy, particle id, volume, or other track state. 1602 Currently by default, no such configurati 1573 Currently by default, no such configuration action is undertaken. 1603 1574 1604 Jun 21st, 2003 J.Apostolakis - field-V05-01- 1575 Jun 21st, 2003 J.Apostolakis - field-V05-01-03 1605 ----------------------------- 1576 ----------------------------- 1606 - Revised G4ChordFinder: 1577 - Revised G4ChordFinder: 1607 * FindNextChord now provides next Step esti 1578 * FindNextChord now provides next Step estimate (for accuracy in Integr.) 1608 * AdvanceChordLimited to use 1579 * AdvanceChordLimited to use 1609 - above extra argument to FindNextChord 1580 - above extra argument to FindNextChord 1610 - the next Step argument as initial-step 1581 - the next Step argument as initial-step suggested to Accurate Advance 1611 - G4MagIntegratorDriver: 1582 - G4MagIntegratorDriver: 1612 * Added extra argument to Accurate Advance: 1583 * Added extra argument to Accurate Advance: 1613 hinitial: suggested initial step size 1584 hinitial: suggested initial step size 1614 - Note: 1585 - Note: 1615 * Purpose: performance boost with small/li 1586 * Purpose: performance boost with small/limited changes, 1616 including minor revisions of interfaces. 1587 including minor revisions of interfaces. 1617 1588 1618 Jun 20th, 2003 J.Apostolakis - field-V05-01- 1589 Jun 20th, 2003 J.Apostolakis - field-V05-01-02 1619 ----------------------------- 1590 ----------------------------- 1620 - G4MagIntegratorDriver Quick Advance: 1591 - G4MagIntegratorDriver Quick Advance: 1621 o Took out two unneccessary square roots an 1592 o Took out two unneccessary square roots and two divisions. 1622 - Notes: 1593 - Notes: 1623 1) Pure magnetic, electric, spin field test 1594 1) Pure magnetic, electric, spin field test are completed. 1624 2) Purpose: performance boost with small c 1595 2) Purpose: performance boost with small changes. 1625 1596 1626 Jun 20th, 2003 J.Apostolakis - field-V05-01- 1597 Jun 20th, 2003 J.Apostolakis - field-V05-01-01 1627 ----------------------------- 1598 ----------------------------- 1628 - G4MagIntegratorDriver: 1599 - G4MagIntegratorDriver: 1629 o Corrected neglected conversion to <std> f 1600 o Corrected neglected conversion to <std> from "G4std". 1630 - Migrated unit tests to <std>. 1601 - Migrated unit tests to <std>. 1631 1602 1632 Jun 19th, 2003 J.Apostolakis - field-V05-01- 1603 Jun 19th, 2003 J.Apostolakis - field-V05-01-00 1633 ----------------------------- 1604 ----------------------------- 1634 - G4ChordFinder: 1605 - G4ChordFinder: 1635 o Corrected simple constructor to initialis 1606 o Corrected simple constructor to initialise several member variables 1636 including LastStepEstimate_Unconstrained. 1607 including LastStepEstimate_Unconstrained. 1637 - G4MagIntegratorDriver: 1608 - G4MagIntegratorDriver: 1638 o Keep simple statistics on number of steps 1609 o Keep simple statistics on number of steps, total error and step size. 1639 o Took out an unneccessary square root (in 1610 o Took out an unneccessary square root (in loop). 1640 - NOTE: tests field0X are to be migrated. 1611 - NOTE: tests field0X are to be migrated. 1641 Purpose: fixes, small performance boost, si 1612 Purpose: fixes, small performance boost, simple statistics. 1642 1613 1643 Apr 2nd, 2003 G. Cosmo - field-V05-00-01 1614 Apr 2nd, 2003 G. Cosmo - field-V05-00-01 1644 --------------------------- 1615 --------------------------- 1645 - Created .cc files for G4MagneticField and G 1616 - Created .cc files for G4MagneticField and G4ElecroMagneticField. 1646 - Fixed definition of copy constructors in fi 1617 - Fixed definition of copy constructors in fields inheritance chain. 1647 - Moved obsolete method StepWithEst() to priv 1618 - Moved obsolete method StepWithEst() to private in G4RKG3_Stepper, 1648 G4CashKarpRKF45 and G4ClassicalRK4. 1619 G4CashKarpRKF45 and G4ClassicalRK4. 1649 - Cleared strict pedantic warnings. 1620 - Cleared strict pedantic warnings. 1650 1621 1651 Feb 5th, 2003 G. Cosmo - field-V05-00-00 1622 Feb 5th, 2003 G. Cosmo - field-V05-00-00 1652 --------------------------- 1623 --------------------------- 1653 - Removed redundant inclusions of PhysicalCon 1624 - Removed redundant inclusions of PhysicalConstants.h or SystemOfUnits.h. 1654 Now using directly CLHEP's headers. 1625 Now using directly CLHEP's headers. 1655 1626 1656 Dec 12th, 2002 G. Cosmo - field-V04-01-06 1627 Dec 12th, 2002 G. Cosmo - field-V04-01-06 1657 --------------------------- 1628 --------------------------- 1658 - Moved unused variable 'nStpPr' to debug sec 1629 - Moved unused variable 'nStpPr' to debug section in G4MagIntegratorDriver.cc, 1659 method AccurateAdvance(). 1630 method AccurateAdvance(). 1660 1631 1661 Dec 06th, 2002 G. Cosmo - field-V04-01-05 1632 Dec 06th, 2002 G. Cosmo - field-V04-01-05 1662 --------------------------- 1633 --------------------------- 1663 - Merged changes by Makoto for migration to n 1634 - Merged changes by Makoto for migration to new G4ApplicationState in 1664 messengers of unit tests. 1635 messengers of unit tests. 1665 1636 1666 Nov 29th, 2002 J. Apostolakis - field-V04 1637 Nov 29th, 2002 J. Apostolakis - field-V04-01-04 1667 --------------------------------- 1638 --------------------------------- 1668 Further fixes for unitialised variable - in o 1639 Further fixes for unitialised variable - in other steppers: 1669 G4ExplicitEuler, G4ImplicitEuler, G4ImplicitE 1640 G4ExplicitEuler, G4ImplicitEuler, G4ImplicitEuler 1670 1641 1671 Large memory leak fix for G4ImplicitEuler, sm 1642 Large memory leak fix for G4ImplicitEuler, small for ExplicitEuler. 1672 Test accuracy requirements for spin adjusted. 1643 Test accuracy requirements for spin adjusted. 1673 1644 1674 Nov 20th, 2002 J. Apostolakis - field-V04 1645 Nov 20th, 2002 J. Apostolakis - field-V04-01-03 1675 --------------------------------- 1646 --------------------------------- 1676 Further fixes for unitialised variables: 1647 Further fixes for unitialised variables: 1677 1648 1678 * G4MagIntegratorStepper 1649 * G4MagIntegratorStepper 1679 - Created instance variables for number of 1650 - Created instance variables for number of Integration, State variables 1680 1651 1681 * G4MagErrorStepper 1652 * G4MagErrorStepper 1682 - Utilise number of State variables to ini 1653 - Utilise number of State variables to initialise full state of Output. 1683 1654 1684 * G4Mag_SpinEqRhs 1655 * G4Mag_SpinEqRhs 1685 - Initialise the values of dydx that we do 1656 - Initialise the values of dydx that we do not update. 1686 1657 1687 Note: Undoing these changes and the ones belo 1658 Note: Undoing these changes and the ones below would enable the user to see 1688 if undefined values are used in varia 1659 if undefined values are used in variables that he/she expects to 1689 have integrated. 1660 have integrated. 1690 BUT the fix assists us to find truly un 1661 BUT the fix assists us to find truly undefined values elsewhere 1691 -- if they exist -- using valgrind. 1662 -- if they exist -- using valgrind. 1692 1663 1693 Nov 9th, 2002 J. Apostolakis - field-V04 1664 Nov 9th, 2002 J. Apostolakis - field-V04-01-02 1694 --------------------------------- 1665 --------------------------------- 1695 Fixes to address use of uninitialised variabl 1666 Fixes to address use of uninitialised variable in seting values of FieldTrack 1696 (this was done by design, but was neither ide 1667 (this was done by design, but was neither ideal or always well-behaved.) 1697 Changed: 1668 Changed: 1698 1669 1699 * G4MagIntegratorDriver 1670 * G4MagIntegratorDriver 1700 - Added instance variables for number of In 1671 - Added instance variables for number of Integration, State variables 1701 - Initialise all State variables of Output 1672 - Initialise all State variables of Output with values from initial variables. 1702 - Only the Integration variables will be in 1673 - Only the Integration variables will be integrated 1703 1674 1704 * G4ClassicalRK4 and G4MagErrorStepper 1675 * G4ClassicalRK4 and G4MagErrorStepper 1705 - Copy the initial time to intermediate and 1676 - Copy the initial time to intermediate and output C-vectors, 1706 in order to provide a zero-eth estimate 1677 in order to provide a zero-eth estimate value. 1707 Note1: Should clean-up this fix, making it 1678 Note1: Should clean-up this fix, making it similar to Driver (above) 1708 Note2: Should *not* be used for time varyin 1679 Note2: Should *not* be used for time varying field unless created 1709 with at least 8 integration variab 1680 with at least 8 integration variables 1710 --------------------------------- 1681 --------------------------------- 1711 G4ChordFinder.cc 1682 G4ChordFinder.cc 1712 - Correction from zero dChord 1683 - Correction from zero dChord 1713 which is does not update the Unconstrai 1684 which is does not update the Unconstrained step estimate (state) 1714 - Added instance variables to store number 1685 - Added instance variables to store number of calls and chord-trials 1715 and new print method for 'debugging' 1686 and new print method for 'debugging' 1716 1687 1717 G4Mag_UsualEqRhs.cc 1688 G4Mag_UsualEqRhs.cc 1718 - Attempted approximations for speedup *ov 1689 - Attempted approximations for speedup *overwritten* by full inverse sqrt. 1719 1690 1720 1691 1721 Oct 29th, 2002 J. Apostolakis - test-V04-0 1692 Oct 29th, 2002 J. Apostolakis - test-V04-01-02 1722 -------------------------------- 1693 -------------------------------- 1723 - Changed output of tests for small output ch 1694 - Changed output of tests for small output change (GeV->MeV) 1724 1695 1725 Oct 29th, 2002 J. Apostolakis - test-V04-0 1696 Oct 29th, 2002 J. Apostolakis - test-V04-01-02 1726 -------------------------------- 1697 -------------------------------- 1727 - (Only changed and tagged test subdirectory) 1698 - (Only changed and tagged test subdirectory) 1728 Changed tests to use the new method SetChar 1699 Changed tests to use the new method SetChargeMomentumMass of 1729 PropagatorInField in order to be ready for 1700 PropagatorInField in order to be ready for its full use in 1730 G4PropagatorInField. 1701 G4PropagatorInField. 1731 (A key problem at end-July was this non-pre 1702 (A key problem at end-July was this non-preparedness of the unit tests.) 1732 1703 1733 Jul 24th, 2002 G. Cosmo - field-V04-01-01 1704 Jul 24th, 2002 G. Cosmo - field-V04-01-01 1734 -------------------------- 1705 -------------------------- 1735 - G4FieldManager[.hh.cc]: made fDefault_Delta 1706 - G4FieldManager[.hh.cc]: made fDefault_Delta_One_Step_Value and 1736 fDefault_Delta_Intersection_Val normal cons 1707 fDefault_Delta_Intersection_Val normal constants (not static) to 1737 resolve initialisation problems. Coworks wi 1708 resolve initialisation problems. Coworks with tag "geomvol-V04-01-01". 1738 Fixes problem report #383. 1709 Fixes problem report #383. 1739 1710 1740 Jul 23rd, 2002 G. Cosmo - field-V04-01-00 1711 Jul 23rd, 2002 G. Cosmo - field-V04-01-00 1741 -------------------------- 1712 -------------------------- 1742 - G4MagIntegratorDriver.cc: cleared warning o 1713 - G4MagIntegratorDriver.cc: cleared warning of unused variable. 1743 Protected variable 'nStpPr' with G4DEBUG_FI 1714 Protected variable 'nStpPr' with G4DEBUG_FIELD. 1744 - Updated reference outputs and some other up 1715 - Updated reference outputs and some other updates to unit tests. 1745 1716 1746 Jun 25th, 2002 J. Apostolakis - field-V04- 1717 Jun 25th, 2002 J. Apostolakis - field-V04-00-05 1747 -------------------------------- 1718 -------------------------------- 1748 - G4ChordFinder.cc 1719 - G4ChordFinder.cc 1749 In NewStep: fixed case of stepTrial >> ste 1720 In NewStep: fixed case of stepTrial >> stepTrialOld, to take large multiple - not small; 1750 (it was treated the same as stepTrial 1721 (it was treated the same as stepTrial << old) 1751 Added guard for stepTrial==0.0 in FindNextC 1722 Added guard for stepTrial==0.0 in FindNextChord 1752 - G4MagIntegratorDriver.cc 1723 - G4MagIntegratorDriver.cc 1753 Added protection against error of 0.0 in Co 1724 Added protection against error of 0.0 in ComputeNewStepSize. 1754 1725 1755 - G4EquationOfMotion 1726 - G4EquationOfMotion 1756 Made RightHandSide an inline method 1727 Made RightHandSide an inline method 1757 In GetFieldValue signature of Point is doub 1728 In GetFieldValue signature of Point is double[4], instead of double[3] 1758 Defined G4maximum_number_of_field_component 1729 Defined G4maximum_number_of_field_components as enum 1759 1730 1760 Jun 7th, 2002 J. Apostolakis - field-V04- 1731 Jun 7th, 2002 J. Apostolakis - field-V04-00-04 1761 -------------------------------- 1732 -------------------------------- 1762 - G4Mag_SpinEqRhs.cc 1733 - G4Mag_SpinEqRhs.cc 1763 o Fix to momentum component of Rhs. 1734 o Fix to momentum component of Rhs. 1764 1735 1765 May 31st, 2002 J. Apostolakis - field-V04- 1736 May 31st, 2002 J. Apostolakis - field-V04-00-03 1766 -------------------------------- 1737 -------------------------------- 1767 - G4MagHelicalStepper.icc 1738 - G4MagHelicalStepper.icc 1768 o Fix to LinearStep (correcting previous 1739 o Fix to LinearStep (correcting previous fix/cosmetic) 1769 - G4ChordFinder.cc 1740 - G4ChordFinder.cc 1770 o Corrective behaviour for very small or 1741 o Corrective behaviour for very small or large changes of 'new step' 1771 [observed in complex 3-d fields (purgi 1742 [observed in complex 3-d fields (purging magnet), or 1772 approximate equations of 1743 approximate equations of motion ] 1773 - G4MagIntegratorDriver 1744 - G4MagIntegratorDriver 1774 o More information in debug printing (tan 1745 o More information in debug printing (tangent cosine, norm) 1775 1746 1776 May 7th, 2002 J. Apostolakis 1747 May 7th, 2002 J. Apostolakis 1777 -------------------------------- 1748 -------------------------------- 1778 - G4MagIntegratorDriver - ( on trunk ) 1749 - G4MagIntegratorDriver - ( on trunk ) 1779 * Fix to update the field track for steps s 1750 * Fix to update the field track for steps smaller than the chord finder's 1780 minstep. 1751 minstep. 1781 1752 1782 1753 1783 April 19th, 2002 J. Apostolakis (not inclu 1754 April 19th, 2002 J. Apostolakis (not included in tag field-V04-00-02) 1784 -------------------------------- 1755 -------------------------------- 1785 - G4MagIntegratorDriver.hh,cc (on trunk) 1756 - G4MagIntegratorDriver.hh,cc (on trunk) 1786 * Bug fix: last step can now only be trigg 1757 * Bug fix: last step can now only be triggerred if x+h > x2. 1787 * Debugging methods improved. 1758 * Debugging methods improved. 1788 1759 1789 May 7th, 2002 J. Apostolakis - field-V04- 1760 May 7th, 2002 J. Apostolakis - field-V04-00-02 1790 -------------------------------- 1761 -------------------------------- 1791 Tag including only two changes below: 1762 Tag including only two changes below: 1792 - Putting aside the other fixes/changes (as 1763 - Putting aside the other fixes/changes (as the one above) to 1793 G4MagIntegratorDriver, tagging only the fix t 1764 G4MagIntegratorDriver, tagging only the fix to update the field track 1794 for steps smaller than the chord finder's min 1765 for steps smaller than the chord finder's minstep. 1795 1766 1796 May 7th, 2002 J. Apostolakis 1767 May 7th, 2002 J. Apostolakis 1797 -------------------------------- 1768 -------------------------------- 1798 - G4MagIntegratorDriver - ** branch ** on 1769 - G4MagIntegratorDriver - ** branch ** on 1.20 ** 1799 * Fix to update the field track for steps s 1770 * Fix to update the field track for steps smaller than the chord finder's 1800 minstep. 1771 minstep. 1801 1772 1802 May 7th, 2002 J. Apostolakis 1773 May 7th, 2002 J. Apostolakis 1803 -------------------------------- 1774 -------------------------------- 1804 - G4MagIntegratorStepper 1775 - G4MagIntegratorStepper 1805 * Changed RightHandSide from a virtual meth 1776 * Changed RightHandSide from a virtual method to an inline (non-virtual) 1806 method -- it is not and should not be c 1777 method -- it is not and should not be changed by derived classes. 1807 1778 1808 Mar 28th, 2002 J. Apostolakis - field-V04-00 1779 Mar 28th, 2002 J. Apostolakis - field-V04-00-01 1809 ----------------------- 1780 ----------------------- 1810 - Fixed LinearStep in G4MagHelicalStepper (ex 1781 - Fixed LinearStep in G4MagHelicalStepper (expected unit direction), 1811 that had not been updated for new integra 1782 that had not been updated for new integration variable (momentum). 1812 --> found in testing helical steppers in 1783 --> found in testing helical steppers in BaBar setup, 1813 in region of negligible field. 1784 in region of negligible field. 1814 1785 1815 - Changed maximum number of steps in driver, 1786 - Changed maximum number of steps in driver, 1816 halving from 500/order to 250/order. 1787 halving from 500/order to 250/order. 1817 1788 1818 Mar 28th, 2002 J. Apostolakis 1789 Mar 28th, 2002 J. Apostolakis 1819 ----------------------- 1790 ----------------------- 1820 - Committed directory "OtherField" with examp 1791 - Committed directory "OtherField" with examples of fields, 1821 Delphi, Quadropole etc. 1792 Delphi, Quadropole etc. 1822 1793 1823 - Updated outputs of testPropagateMagField fo 1794 - Updated outputs of testPropagateMagField for new version of source, 1824 that has 3rd test case. 1795 that has 3rd test case. 1825 1796 1826 - Added new runs and outputs for testProElect 1797 - Added new runs and outputs for testProElectroMagField, with 1827 several steppers, and modified test scrip 1798 several steppers, and modified test script test.sh accordingly. 1828 1799 1829 1800 1830 Feb 2nd, 2002 V. Grichine 1801 Feb 2nd, 2002 V. Grichine 1831 ------------------------ 1802 ------------------------ 1832 Update of test/field02 to utilise new feature 1803 Update of test/field02 to utilise new features 1833 - for Electric Field, to signal that a fiel 1804 - for Electric Field, to signal that a field modifies the energy; 1834 - updating of time by integration, for time 1805 - updating of time by integration, for time dependent fields. 1835 1806 1836 Jan 10th, 2002 G. Cosmo - field-V04-00-00 1807 Jan 10th, 2002 G. Cosmo - field-V04-00-00 1837 ------------------------ 1808 ------------------------ 1838 - Activated G4DEBUG_FIELD in GNUmakefile. 1809 - Activated G4DEBUG_FIELD in GNUmakefile. 1839 1810 1840 Jan 7th, 2002 J. Apostolakis 1811 Jan 7th, 2002 J. Apostolakis 1841 ----------------------------- 1812 ----------------------------- 1842 - G4MagHelicalStepper.cc: renamed local varia 1813 - G4MagHelicalStepper.cc: renamed local variables "*Momentum*" to "*Velocity*". 1843 1814 1844 Dec 4th, 2001 G. Cosmo - field-V03-02-08 1815 Dec 4th, 2001 G. Cosmo - field-V03-02-08 1845 ----------------------- 1816 ----------------------- 1846 - Fixed interface to virtual functions in the 1817 - Fixed interface to virtual functions in the inheritance chain. 1847 Added 'virtual' qualifier to destructor and 1818 Added 'virtual' qualifier to destructor and GetFieldValue() for subclasses 1848 of G4Field which may act as base class for 1819 of G4Field which may act as base class for user-defined fields. 1849 Modified files: G4MagneticField.hh, G4Unifo 1820 Modified files: G4MagneticField.hh, G4UniformElectricField[.hh.cc], 1850 G4UniformMagField.hh. 1821 G4UniformMagField.hh. 1851 - G4ChordFinder.cc: the unphysical curve leng 1822 - G4ChordFinder.cc: the unphysical curve length exception has been moved to 1852 inside #ifdef G4DEBUG_FIELD. Other #ifdef r 1823 inside #ifdef G4DEBUG_FIELD. Other #ifdef renamed to G4DEBUG_FIELD. 1853 - G4LineSection[.hh.cc]: correction for A=B w 1824 - G4LineSection[.hh.cc]: correction for A=B when the distance from P to A 1854 is returned (V.Grichine). 1825 is returned (V.Grichine). 1855 1826 1856 Nov 28th, 2001 J. Apostolakis - field-V03-02 1827 Nov 28th, 2001 J. Apostolakis - field-V03-02-07 1857 ------------------------------ 1828 ------------------------------ 1858 G4FieldManager 1829 G4FieldManager 1859 - Added fFieldChangesEnergy data member and g 1830 - Added fFieldChangesEnergy data member and get/set methods 1860 ( required to allow transportation to know h 1831 ( required to allow transportation to know how to calculate end-time, 1861 enabling the integration of time only for 1832 enabling the integration of time only for electric fields. ) 1862 1833 1863 Nov 28th, 2001 J. Apostolakis - field-V03-02 1834 Nov 28th, 2001 J. Apostolakis - field-V03-02-06 1864 ------------------------------ 1835 ------------------------------ 1865 Small fixes only: 1836 Small fixes only: 1866 1837 1867 G4CashKarpRKF45 1838 G4CashKarpRKF45 1868 - fixed deletion of unassigned pointer/array 1839 - fixed deletion of unassigned pointer/array in destructor. (-> Volodya Velev) 1869 1840 1870 G4EqMagElectricField 1841 G4EqMagElectricField 1871 - bug fixed in the formula for inverse veloci 1842 - bug fixed in the formula for inverse velocity (-> V. Grichine) 1872 1843 1873 Nov 21st, 2001 G. Cosmo - field-V03-02-05 1844 Nov 21st, 2001 G. Cosmo - field-V03-02-05 1874 ------------------------ 1845 ------------------------ 1875 - Protected verbose warnings with G4FIELD_DEB 1846 - Protected verbose warnings with G4FIELD_DEBUG flag in G4ChordFinder.cc 1876 (V.Grichine). 1847 (V.Grichine). 1877 - Replaced G4DEBUG with G4DEBUG_FIELD in G4Ma 1848 - Replaced G4DEBUG with G4DEBUG_FIELD in G4MagIntegratorDriver.cc. 1878 - Updates to unit test field02. 1849 - Updates to unit test field02. 1879 1850 1880 Nov 13th, 2001 G. Cosmo - field-V03-02-04 1851 Nov 13th, 2001 G. Cosmo - field-V03-02-04 1881 ------------------------ 1852 ------------------------ 1882 - Removed warnings on gcc-2.95.2. 1853 - Removed warnings on gcc-2.95.2. 1883 - Included unit tests field01, field02, field 1854 - Included unit tests field01, field02, field03. 1884 1855 1885 Nov 9th, 2001 J. Apostolakis - field-V03-02- 1856 Nov 9th, 2001 J. Apostolakis - field-V03-02-03 1886 ----------------------------- 1857 ----------------------------- 1887 Motivated by the use case of an Electric Fiel 1858 Motivated by the use case of an Electric Field, 1888 - in order to achieve reasonable accuracy in 1859 - in order to achieve reasonable accuracy in time integration, 1889 - and to enable fields that vary with the gl 1860 - and to enable fields that vary with the global time) 1890 we (John Ap. and V. Grichine) changed the fol 1861 we (John Ap. and V. Grichine) changed the following: 1891 1862 1892 - Modified G4Field to allow the time in the G 1863 - Modified G4Field to allow the time in the GetFieldValue method 1893 - as 4th component of the "position" arr 1864 - as 4th component of the "position" array. 1894 1865 1895 - Modified EquationOfMotion to provide the ti 1866 - Modified EquationOfMotion to provide the time to the GetFieldValue method 1896 of G4Field 1867 of G4Field 1897 * as the 4th component of a position / 1868 * as the 4th component of a position / time 4-array 1898 * in place of only position as a 3-arry 1869 * in place of only position as a 3-arry 1899 1870 1900 - Added the global time as variable to be int 1871 - Added the global time as variable to be integrated over in the 1901 case of an Electric Field 1872 case of an Electric Field 1902 1873 1903 Support for these modifications is required i 1874 Support for these modifications is required in G4Transportation. 1904 1875 1905 (Better support will require either 1876 (Better support will require either 1906 - a modification in G4FieldTrack to indicate 1877 - a modification in G4FieldTrack to indicate whether the time has been 1907 integrated or not. 1878 integrated or not. 1908 - or additionally making the time calculatio 1879 - or additionally making the time calculation a property of G4FieldTrack, 1909 bring in code to do it in from G4Transpor 1880 bring in code to do it in from G4Transportation.) 1910 1881 1911 1882 1912 Nov 8th, 2001 J. Apostolakis - field-V03-02 1883 Nov 8th, 2001 J. Apostolakis - field-V03-02-02 1913 ------------------------ 1884 ------------------------ 1914 - Introduced several changes in G4MagIntegrat 1885 - Introduced several changes in G4MagIntegratorDriver. 1915 1886 1916 It now respects its minimum driver step si 1887 It now respects its minimum driver step size in AccurateAdvance. 1917 * whereas before it did not. 1888 * whereas before it did not. 1918 1889 1919 Modified maximum number of steps, lowering 1890 Modified maximum number of steps, lowering by factor of 10. 1920 -> it should reduce the time spent integ 1891 -> it should reduce the time spent integrating low energy particles, 1921 in some cases where it is unneccessary. 1892 in some cases where it is unneccessary. 1922 1893 1923 Protected printing of (nearly?) all warnin 1894 Protected printing of (nearly?) all warnings with a G4DEBUG_FIELD #ifdef. 1924 1895 1925 1896 1926 Nov 05th, 2001 G. Cosmo - field-V03-02-01 1897 Nov 05th, 2001 G. Cosmo - field-V03-02-01 1927 ------------------------ 1898 ------------------------ 1928 - Fixed trivial warnings on Linux-g++. 1899 - Fixed trivial warnings on Linux-g++. 1929 1900 1930 Aug 27th, 2001 J. Apostolakis - field-V03-02 1901 Aug 27th, 2001 J. Apostolakis - field-V03-02-00 1931 ------------------------------ 1902 ------------------------------ 1932 Tagged last change. 1903 Tagged last change. 1933 This tag is utilised in transport-V03-02-01 ( 1904 This tag is utilised in transport-V03-02-01 (which requires it). 1934 1905 1935 Aug 16th, 2001 J. Apostolakis 1906 Aug 16th, 2001 J. Apostolakis 1936 ------------------------------ 1907 ------------------------------ 1937 G4ChordFinder: 1908 G4ChordFinder: 1938 Added method to erase/reset the state of the 1909 Added method to erase/reset the state of the StepEstimate. 1939 This is unwanted internal state that was car 1910 This is unwanted internal state that was carried between tracks and 1940 events as a side effect. 1911 events as a side effect. 1941 1912 1942 Calling this at the start of each track, it 1913 Calling this at the start of each track, it is now possible to 1943 eliminate a non-repeatability that was possi 1914 eliminate a non-repeatability that was possible due to this. 1944 ( It has been observed in particular in v 1915 ( It has been observed in particular in vaccuum. ) 1945 1916 1946 May 23rd, 2001 J. Apostolakis - field-V03-01 1917 May 23rd, 2001 J. Apostolakis - field-V03-01-02 1947 ------------------------------ 1918 ------------------------------ 1948 - Added Exception to G4RKG3Stepper constructo 1919 - Added Exception to G4RKG3Stepper constructor: the class does not work 1949 1920 1950 May 23rd, 2001 J. Apostolakis - field-V03-01 1921 May 23rd, 2001 J. Apostolakis - field-V03-01-01 1951 ------------------------------ 1922 ------------------------------ 1952 - Fixed G4FieldManager constructors to give d 1923 - Fixed G4FieldManager constructors to give default values to delta 1953 parameters. 1924 parameters. 1954 1925 1955 - Updated testPropagateSpin (it now compiles) 1926 - Updated testPropagateSpin (it now compiles), 1956 and some outputs of testPropagateMagField 1927 and some outputs of testPropagateMagField (1 to 5) 1957 1928 1958 1929 1959 Apr 12th, 2001 P. Gumplinger - field-V03-01- 1930 Apr 12th, 2001 P. Gumplinger - field-V03-01-00 1960 ----------------------------- 1931 ----------------------------- 1961 - Updated G4Mag_SpinEqRhs.hh and G4Mag_SpinEq 1932 - Updated G4Mag_SpinEqRhs.hh and G4Mag_SpinEqRhs.cc for correction 1962 to spin tracking. 1933 to spin tracking. 1963 1934 1964 Apr 04th, 2001 G. Cosmo - field-V03-00-05 1935 Apr 04th, 2001 G. Cosmo - field-V03-00-05 1965 ------------------------ 1936 ------------------------ 1966 - G4FieldTrack.icc: fixed pedantic warnings o 1937 - G4FieldTrack.icc: fixed pedantic warnings on Linux-g++. 1967 1938 1968 Mar 23rd, 2001 J. Apostolakis - field-V03-00 1939 Mar 23rd, 2001 J. Apostolakis - field-V03-00-04 1969 ------------------------------ 1940 ------------------------------ 1970 - Electric Field unit test now works: test ru 1941 - Electric Field unit test now works: test runs until completion. 1971 Test outputs saved (on Linux). 1942 Test outputs saved (on Linux). 1972 1943 1973 - Fixed src/G4UniformElectricField.cc to set 1944 - Fixed src/G4UniformElectricField.cc to set correct field components 1974 (compat 1945 (compatible with Equation of Motion 1975 G4EqMa 1946 G4EqMagElectricField ) 1976 1947 1977 - Tidied G4FieldTrack 1948 - Tidied G4FieldTrack 1978 * deleted obsolete methods Set/Get Momentu 1949 * deleted obsolete methods Set/Get MomentumModulus() and its data member. 1979 * in constructor to set the value of the s 1950 * in constructor to set the value of the spin to (0.0, 0.0, 0.0) 1980 if pSpin is null. (It was undefine 1951 if pSpin is null. (It was undefined.) 1981 1952 1982 Mar 23rd, 2001 J. Apostolakis - field-V03-00 1953 Mar 23rd, 2001 J. Apostolakis - field-V03-00-03 1983 ------------------------------ 1954 ------------------------------ 1984 - Fixed (hacked) CashKarp to work using Auxil 1955 - Fixed (hacked) CashKarp to work using Auxiliary Stepper. 1985 1956 1986 - Modified G4MagIntegratorStepper 1957 - Modified G4MagIntegratorStepper 1987 to use pointer to G4EquationOfMotion 1958 to use pointer to G4EquationOfMotion 1988 instead of G4Mag_EqRhs 1959 instead of G4Mag_EqRhs 1989 1960 1990 - Design iteration appears neccessary 1961 - Design iteration appears neccessary 1991 1962 1992 Mar 23rd, 2001 J. Apostolakis - field-V03-00 1963 Mar 23rd, 2001 J. Apostolakis - field-V03-00-02 1993 ------------------------------ 1964 ------------------------------ 1994 - Fixed G4MagHelicalStepper::AdvanceHelix for 1965 - Fixed G4MagHelicalStepper::AdvanceHelix for momentum, allowing 1995 the possibility of (correct) use of all H 1966 the possibility of (correct) use of all Helical Steppers. 1996 1967 1997 - test/testProElectroMagField.cc updated for 1968 - test/testProElectroMagField.cc updated for momentum. 1998 (Not yet updated: Spin tests) 1969 (Not yet updated: Spin tests) 1999 1970 2000 1971 2001 Mar 19th, 2001 J. Apostolakis - field-V03-00 1972 Mar 19th, 2001 J. Apostolakis - field-V03-00-01 2002 ------------------------------ 1973 ------------------------------ 2003 - Tagging the modification of several classes 1974 - Tagging the modification of several classes to integrate in momentum*c_light 2004 instead of velocity. 1975 instead of velocity. 2005 Reason for change: Velocity integration ca 1976 Reason for change: Velocity integration can result in superluminar 2006 velocities, due to arithmetic inaccuraci 1977 velocities, due to arithmetic inaccuracies. 2007 Classes modified: 1978 Classes modified: 2008 G4FieldTrack, (Changed components 3,4,5 1979 G4FieldTrack, (Changed components 3,4,5 of SixVector to Momentum, 2009 G4Mag_EqRhs, G4Mag_UsualEqRhs, G4EqMagEle 1980 G4Mag_EqRhs, G4Mag_UsualEqRhs, G4EqMagElectricField 2010 1981 2011 Feb 20th, 2001 J. Apostolakis 1982 Feb 20th, 2001 J. Apostolakis 2012 1983 2013 - Modified several classes to integrate in mo 1984 - Modified several classes to integrate in momentum instead of velocity. 2014 1985 2015 G4FieldTrack: 1986 G4FieldTrack: 2016 Changed components 3,4,5 of SixVector to 1987 Changed components 3,4,5 of SixVector to Momentum, 2017 Modified constructor 1988 Modified constructor 2018 Added energy calculation to "LoadFromArr 1989 Added energy calculation to "LoadFromArray" method 2019 GetEnergy method is now implemented. 1990 GetEnergy method is now implemented. 2020 Deleted obsolete (old) method names for 1991 Deleted obsolete (old) method names for Curve and Position. New have "Get" 2021 1992 2022 G4ChordFinder 1993 G4ChordFinder 2023 Renamed old-method names of Field Track 1994 Renamed old-method names of Field Track to new ones. 2024 1995 2025 Jan 29th, 2001 G. Cosmo - field-V03-00-00 1996 Jan 29th, 2001 G. Cosmo - field-V03-00-00 2026 ------------------------- 1997 ------------------------- 2027 1998 2028 - Minor fix to G4MagneticField.hh: added expl 1999 - Minor fix to G4MagneticField.hh: added explicit call to G4Field() in 2029 copy constructor. Fixes report #205. 2000 copy constructor. Fixes report #205. 2030 2001 2031 Nov 20th, 2000 G. Cosmo - field-V02-00-02 2002 Nov 20th, 2000 G. Cosmo - field-V02-00-02 2032 2003 2033 - Fixes to remove warnings from "-Wall -ansi 2004 - Fixes to remove warnings from "-Wall -ansi -pedantic" g++ compiler options: 2034 o commented out variables declared and not 2005 o commented out variables declared and not used. 2035 o fixed declaration of variables used befor 2006 o fixed declaration of variables used before being initialised. 2036 o fixed order of initialisation of member d 2007 o fixed order of initialisation of member data in constructors. 2037 o fixed usage of unsigned-int (size_t) for 2008 o fixed usage of unsigned-int (size_t) for array indeces. 2038 2009 2039 Nov 9th, 2000 G. Cosmo - field-V02-00-01 2010 Nov 9th, 2000 G. Cosmo - field-V02-00-01 2040 2011 2041 - G4FieldManager: added check on existence of 2012 - G4FieldManager: added check on existence of allocated fChordFinder 2042 in CreateChordFinder(G4MagneticField*) meth 2013 in CreateChordFinder(G4MagneticField*) method. 2043 2014 2044 Nov 1st, 2000 G. Cosmo - field-V02-00-00 2015 Nov 1st, 2000 G. Cosmo - field-V02-00-00 2045 2016 2046 - QA code revision and cleanup (+fixes from C 2017 - QA code revision and cleanup (+fixes from CodeWizard filtering): 2047 o Added (private) declarations of copy cons 2018 o Added (private) declarations of copy constructor and assignment operator 2048 where needed. 2019 where needed. 2049 o Added "const" qualifier to accessor metho 2020 o Added "const" qualifier to accessor methods, wherever needed. 2050 o Added equality check on operator= where n 2021 o Added equality check on operator= where needed. 2051 o Made destructor "virtual" for classes hav 2022 o Made destructor "virtual" for classes having virtual methods, 2052 wherever missing. 2023 wherever missing. 2053 o Changed virtual functions to non-inline w 2024 o Changed virtual functions to non-inline wherever's the case. 2054 o Changed return value to be "const" pointe 2025 o Changed return value to be "const" pointer to functions: 2055 - G4EquationOfMotion::GetFieldObj() 2026 - G4EquationOfMotion::GetFieldObj() 2056 - G4FieldManager::GetDetectorField() 2027 - G4FieldManager::GetDetectorField() 2057 - G4MagIntegratorDriver::GetStepper() 2028 - G4MagIntegratorDriver::GetStepper() 2058 o Fixed and corrected signature to G4MagInt 2029 o Fixed and corrected signature to G4MagIntegratorDriver::SetHmin(). 2059 o Added "inline" qualifier to methods' decl 2030 o Added "inline" qualifier to methods' declarations. 2060 o General cosmetics 2031 o General cosmetics 2061 2032 2062 Jun 2nd, 2000 J. Apostolakis 2033 Jun 2nd, 2000 J. Apostolakis 2063 - G4FieldManager[.hh.icc] 2034 - G4FieldManager[.hh.icc] 2064 o Added DeltaIntersection and DeltaOneStep 2035 o Added DeltaIntersection and DeltaOneStep to FieldManager: added 2065 Get/Set methods and SetAccuraciesWithDelt 2036 Get/Set methods and SetAccuraciesWithDeltaOneStep(). 2066 2037 2067 May 31st, 2000 J. Apostolakis - field-V01-01 2038 May 31st, 2000 J. Apostolakis - field-V01-01-03 2068 2039 2069 include/G4FieldManager.hh,icc 2040 include/G4FieldManager.hh,icc 2070 o Moved Delta Intersection and Delta One St 2041 o Moved Delta Intersection and Delta One Step to FieldManager 2071 (from Propagator in Field), to allow th 2042 (from Propagator in Field), to allow them to differ over the detector. 2072 2043 2073 May 11th, 2000 J. Apostolakis - field-V01-01 2044 May 11th, 2000 J. Apostolakis - field-V01-01-02 2074 2045 2075 - G4ChordFinder[.hh.cc] 2046 - G4ChordFinder[.hh.cc] 2076 o Modified method for finding new trial ste 2047 o Modified method for finding new trial step. 2077 New method assumes a quadratic relationsh 2048 New method assumes a quadratic relationship between step-length and d_chord: 2078 d_chord proportional to step-l 2049 d_chord proportional to step-lenght ^ 2 2079 o Added two small refinement in order to av 2050 o Added two small refinement in order to avoid unneccesary extra step due to 2080 small numerical inaccuracies in estimatio 2051 small numerical inaccuracies in estimation: 2081 FindNextChord 2052 FindNextChord 2082 to first step use (1-0.001) 2053 to first step use (1-0.001) * last-step-estimate 2083 New Step: 2054 New Step: 2084 to subsequent step use trial_st 2055 to subsequent step use trial_step = 0.98 * estimate 2085 2056 2086 May 10th, 2000 G. Cosmo 2057 May 10th, 2000 G. Cosmo 2087 2058 2088 - G4MagneticField.hh: minor fix to dummy impl 2059 - G4MagneticField.hh: minor fix to dummy implementation of assignment 2089 operator. 2060 operator. 2090 2061 2091 May 9th, 2000 J. Apostolakis - field-V01 2062 May 9th, 2000 J. Apostolakis - field-V01-01-01 2092 2063 2093 - G4MagErrorStepper: 2064 - G4MagErrorStepper: 2094 Modified DistChord to check whether the c 2065 Modified DistChord to check whether the chord endpoint are the same point. 2095 2066 2096 - G4RKG3_Stepper: 2067 - G4RKG3_Stepper: 2097 Deleted error message from StepNoErr, as 2068 Deleted error message from StepNoErr, as it is used in Stepper. 2098 2069 2099 - G4MagIntegratorDriver: 2070 - G4MagIntegratorDriver: 2100 Changed the condition for the debug outpu 2071 Changed the condition for the debug output (~cosmetic) 2101 2072 2102 2073 2103 April 27th, 2000 G. Cosmo 2074 April 27th, 2000 G. Cosmo 2104 2075 2105 - Reorganised comments for the Software Refer 2076 - Reorganised comments for the Software Reference Manual. 2106 - Moved inlined definition to .icc files, whe 2077 - Moved inlined definition to .icc files, where needed. 2107 Created: G4ChordFinder.icc and G4FieldManag 2078 Created: G4ChordFinder.icc and G4FieldManager.icc. 2108 2079 2109 April 13th, 2000 J. Apostolakis - field-V01 2080 April 13th, 2000 J. Apostolakis - field-V01-01-00 2110 2081 2111 - Modified signature to function DumbStepper( 2082 - Modified signature to function DumbStepper() in classes: 2112 G4HelixExplicitEuler, G4HelixHeum, G4HelixI 2083 G4HelixExplicitEuler, G4HelixHeum, G4HelixImplicitEuler, 2113 G4HelixSimpleRunge and G4MagHelicalStepper. 2084 G4HelixSimpleRunge and G4MagHelicalStepper. 2114 - Modified signature and implementation of fu 2085 - Modified signature and implementation of function MagFieldEvaluate() 2115 in G4MagHelicalStepper, to use Field (as Th 2086 in G4MagHelicalStepper, to use Field (as ThreeVector) in place of dydx. 2116 - Made Richardson extrapolation optional (it 2087 - Made Richardson extrapolation optional (it is unclear if 2117 it offers benefit) in G4MagHelicalStepper. 2088 it offers benefit) in G4MagHelicalStepper. 2118 - Updated unit test testPropagateMagField and 2089 - Updated unit test testPropagateMagField and reference output. 2119 - G4LineSection: fixes to prevent divisions b 2090 - G4LineSection: fixes to prevent divisions by 0. and sqrt(<0) 2120 (V.Grichine). 2091 (V.Grichine). 2121 2092 2122 January 19th, 2000 G. Cosmo - field-V01-00 2093 January 19th, 2000 G. Cosmo - field-V01-00-00 2123 2094 2124 Syncronized versioning of files with HEAD aft 2095 Syncronized versioning of files with HEAD after ISO-C++ migration 2125 (essentially CVS header changes). 2096 (essentially CVS header changes). 2126 2097 2127 December 7th, 1999 J. Apostolakis - field- 2098 December 7th, 1999 J. Apostolakis - field-V00-01-01a 2128 2099 2129 For negative or very small curve lengths (h) 2100 For negative or very small curve lengths (h) we suppress writing an error 2130 (about the distance of endpoints being furthe 2101 (about the distance of endpoints being further than the curve length), 2131 as it is meaningless. 2102 as it is meaningless. 2132 2103 2133 November 23rd, 1999 J. Apostolakis - field- 2104 November 23rd, 1999 J. Apostolakis - field-V00-01-01 2134 2105 2135 Tagged this sub-category's state in geometry- 2106 Tagged this sub-category's state in geometry-V00-01-01 2136 2107 2137 2108 2138 July 6th, 1999 J. Apostolakis - field- 2109 July 6th, 1999 J. Apostolakis - field-01-00-07 2139 2110 2140 These fixes and those in field-01-00-06 and f 2111 These fixes and those in field-01-00-06 and field-01-00-06a all come 2141 from the need to cope with the imprecision of 2112 from the need to cope with the imprecision of the integration, and its 2142 interaction with paths that are rather straig 2113 interaction with paths that are rather straight. 2143 2114 2144 G4MagIntegrationDriver: 2115 G4MagIntegrationDriver: 2145 i) AccurateAdvance now that the chord distan 2116 i) AccurateAdvance now that the chord distance is smaller than the curve len- 2146 gth (times 1+epsilon). 2117 gth (times 1+epsilon). 2147 2118 2148 ii) OneGoodStep and QuickAdvance considers th 2119 ii) OneGoodStep and QuickAdvance considers the error of the velocity as well as 2149 the error of the position - and ensure that b 2120 the error of the position - and ensure that both relative errors are within 2150 the "eps" maximum given. 2121 the "eps" maximum given. 2151 2122 2152 G4ChordFinder: 2123 G4ChordFinder: 2153 Having found that the curve_length vs ABdis 2124 Having found that the curve_length vs ABdist disrepancy has its basis in 2154 the imprecision of the integration: 2125 the imprecision of the integration: 2155 i) Modified the exception in this case to h 2126 i) Modified the exception in this case to happen only for very large 2156 relative disrepancies ( 10 * eps ). 2127 relative disrepancies ( 10 * eps ). 2157 ii) Undertaken a default corrective action i 2128 ii) Undertaken a default corrective action in all other cases 2158 Note that this disrepancy only happens for ve 2129 Note that this disrepancy only happens for very straight sections of track - 2159 ie step lengths much smaller than the curvatu 2130 ie step lengths much smaller than the curvature of the track. 2160 2131 2161 July 1st, 1999 J. Apostolakis - field- 2132 July 1st, 1999 J. Apostolakis - field-01-00-06a 2162 2133 2163 In order to cope with the anomalous condition 2134 In order to cope with the anomalous condition created by candidate fix 2164 in G4PropagatorInField, we ensure that the f 2135 in G4PropagatorInField, we ensure that the fraction_AE is always between 2165 0 and 1.0. (giving it a default value of 0.5 2136 0 and 1.0. (giving it a default value of 0.5 whenever it is wrong). 2166 ( in G4ChordFinder::ApproxCurvePointV ) 2137 ( in G4ChordFinder::ApproxCurvePointV ) 2167 2138 2168 June 29th, 1999 J. Apostolakis - field- 2139 June 29th, 1999 J. Apostolakis - field-01-00-06 2169 2140 2170 I re-instated a check on whether the input 2141 I re-instated a check on whether the input distance along the curve between 2171 the two input curve points is truly greater t 2142 the two input curve points is truly greater than their linear distance. 2172 ( in G4ChordFinder::ApproxCurvePointV ) 2143 ( in G4ChordFinder::ApproxCurvePointV ) 2173 2144 2174 The condition that prints out a warning messa 2145 The condition that prints out a warning message has been altered to 2175 take into account the case of a very small fi 2146 take into account the case of a very small final interval. 2176 ( in G4MagInt_Driver::AccurateAdvance ) 2147 ( in G4MagInt_Driver::AccurateAdvance ) 2177 2148 2178 June ??th, 1999 J. Apostolakis - field- 2149 June ??th, 1999 J. Apostolakis - field-01-00-05 2179 2150 2180 The condition that prints out a warning messa 2151 The condition that prints out a warning message was changed to delete 2181 an incorrect comparison. 2152 an incorrect comparison. 2182 ( in G4MagInt_Driver::AccurateAdvance ) 2153 ( in G4MagInt_Driver::AccurateAdvance ) 2183 2154 2184 April 19th, 1999 J. Apostolakis - field- 2155 April 19th, 1999 J. Apostolakis - field-01-00-04 2185 2156 2186 G4MagErrorStepper: Cosmetic changes to name o 2157 G4MagErrorStepper: Cosmetic changes to name of data members 2187 2158 2188 March 4th, 1999 J. Apostolakis - field- 2159 March 4th, 1999 J. Apostolakis - field-01-00-03 2189 2160 2190 Corrected delete statement of arrays to use ' 2161 Corrected delete statement of arrays to use 'delete[]' instead of simple delete 2191 in destructors of 2 steppers (G4CashKarpRKF45 2162 in destructors of 2 steppers (G4CashKarpRKF45, G4SimpleHeum) 2192 2163 2193 February 17th, 1999 J. Apostolakis - field 2164 February 17th, 1999 J. Apostolakis - field-01-00-02 2194 2165 2195 Moved G4PropagatorInField files to geometry/ 2166 Moved G4PropagatorInField files to geometry/volumes. 2196 Updated GNUmakefile not to depend on geometr 2167 Updated GNUmakefile not to depend on geometry/volumes anymore. 2197 -> the known circular dependency is remove 2168 -> the known circular dependency is removed 2198 2169 2199 2170 2200 February 12th, 1999 J. Apostolakis - field 2171 February 12th, 1999 J. Apostolakis - field-spin1-works1 (act Feb17) 2201 2172 2202 A tag that contains the first version that 2173 A tag that contains the first version that worked with spin (in Peter G.'s 2203 directory). G4PropagateInSpin is still in t 2174 directory). G4PropagateInSpin is still in this version. A small change 2204 in a branch of the header file was needed. 2175 in a branch of the header file was needed. 2205 2176 2206 2177 2207 February 10th, 1999 J. Apostolakis 2178 February 10th, 1999 J. Apostolakis 2208 2179 2209 All the following changes are needed for ener 2180 All the following changes are needed for energy integration also: 2210 2181 2211 G4ChordFinder now passes to the constructed d 2182 G4ChordFinder now passes to the constructed driver the number of variables. 2212 Because of the need for the stepper to know a 2183 Because of the need for the stepper to know about it in its Abstract interface 2213 2184 2214 -> Moved theNumberOfVariables from derived c 2185 -> Moved theNumberOfVariables from derived class G4MagErrorStepper 2215 to base class 2186 to base class G4MagIntegratorStepper 2216 2187 2217 As a consequense the classes that derived fro 2188 As a consequense the classes that derived from G4MagIntegratorStepper directly 2218 were changed: G4CashKarpRKF45, G4MagHelicalSt 2189 were changed: G4CashKarpRKF45, G4MagHelicalStepper, 2219 2190 2220 2191 2221 February 9th, 1999 J. Apostolakis 2192 February 9th, 1999 J. Apostolakis 2222 2193 2223 Equation of Motion: 2194 Equation of Motion: 2224 G4MagEqRhs.hh Made SetChargeMomentumMass vir 2195 G4MagEqRhs.hh Made SetChargeMomentumMass virtual, so that G4Mag_SpinEqRhs 2225 can initialise its constants 2196 can initialise its constants too. 2226 2197 2227 2198 2228 February 9th, 1999 P. Gumplinger 2199 February 9th, 1999 P. Gumplinger 2229 2200 2230 Added Equation of Motion for Spin in Magnetic 2201 Added Equation of Motion for Spin in Magnetic Field. 2231 2202 2232 2203 2233 February 17th, 1999 J. Apostolakis - fiel 2204 February 17th, 1999 J. Apostolakis - field-01-00-01 2234 ---> date is correct, made sure that tag d 2205 ---> date is correct, made sure that tag does not include above fixes! 2235 2206 2236 Moved G4PropagatorInField files to geometry/ 2207 Moved G4PropagatorInField files to geometry/volumes. 2237 Updated GNUmakefile not to depend on geometr 2208 Updated GNUmakefile not to depend on geometry/volumes anymore. 2238 -> the known circular dependency is remove 2209 -> the known circular dependency is removed 2239 2210 2240 2211 2241 --------------------------------------------- 2212 --------------------------------------------------------------------------- 2242 ------ Geant 4 Production Release - 2213 ------ Geant 4 Production Release ------------ 2243 --------------------------------------------- 2214 -------------------------------------------------------------------------- 2244 Nov 19th, 1998 J. Apostolakis - field-0 2215 Nov 19th, 1998 J. Apostolakis - field-00-04-01head ===> R+D version only 2245 2216 2246 G4PropagatorInField files modified: 2217 G4PropagatorInField files modified: 2247 2218 2248 - to store the last safety computed and it 2219 - to store the last safety computed and its origin. 2249 - to give them to a requester 2220 - to give them to a requester 2250 --------------------------------------------- 2221 ------------------------------------------------------------------ 2251 2222 2252 Nov 19th, 1998 J. Apostolakis - field-0 2223 Nov 19th, 1998 J. Apostolakis - field-00-03-03b 2253 2224 2254 Subtle fix to interface of G4UniformMagField 2225 Subtle fix to interface of G4UniformMagField::GetFieldValue 2255 ( that tripped Visual C++ ) 2226 ( that tripped Visual C++ ) 2256 2227 2257 G4PropagatorInField: added printing method 2228 G4PropagatorInField: added printing method for verboseness. 2258 2229 2259 Nov 19th, 1998 J. Apostolakis - field-0 2230 Nov 19th, 1998 J. Apostolakis - field-00-03-03a 2260 2231 2261 Steppers: Fixed instance variables constr 2232 Steppers: Fixed instance variables construction (SimpleRunge) 2262 and clash of names in CashKarp: 2233 and clash of names in CashKarp::StepWithEstimate 2263 2234 2264 Added post-const to all Field classes for 2235 Added post-const to all Field classes for 2265 void GetFieldValue(const G4double 2236 void GetFieldValue(const G4double yTrack[] , 2266 G4double B[] 2237 G4double B[] ) const ; 2267 2238 2268 Added SetFieldValue methods to UniformMagF 2239 Added SetFieldValue methods to UniformMagField 2269 2240 2270 Added GetConstantFieldValue() methods to U 2241 Added GetConstantFieldValue() methods to Uniform Mag & Electric Fields 2271 2242 2272 2243 2273 Nov 19th, 1998 J. Apostolakis - field-0 2244 Nov 19th, 1998 J. Apostolakis - field-00-03-03 2274 2245 2275 Fixes to Propagate and Steppers 2246 Fixes to Propagate and Steppers 2276 2247 2277 Nov 19th, 1998 J. Apostolakis - field-0 2248 Nov 19th, 1998 J. Apostolakis - field-00-03-02 2278 2249 2279 Minor corrections (???) 2250 Minor corrections (???) 2280 2251 2281 Nov 19th, 1998 J. Apostolakis - field-0 2252 Nov 19th, 1998 J. Apostolakis - field-00-03-02 2282 2253 2283 Major development to allow Electric Field 2254 Major development to allow Electric Field 2284 2255 2285 2256 2286 2257 2287 June 17th, 1998 J. Apostolakis - magfiel 2258 June 17th, 1998 J. Apostolakis - magfield-06-03 2288 2259 2289 Modified Files: 2260 Modified Files: 2290 include/G4PropagatorInField.hh 2261 include/G4PropagatorInField.hh 2291 src/G4PropagatorInField.cc 2262 src/G4PropagatorInField.cc 2292 test/testPropagateInField.cc 2263 test/testPropagateInField.cc 2293 --------------------------------------------- 2264 ---------------------------------------------------------------------- 2294 2265 2295 1) Added an assertion after each call to Lo 2266 1) Added an assertion after each call to LocateGlobalPointAndSetup. 2296 It checks that the located volume is equ 2267 It checks that the located volume is equal to the current volume. 2297 If this check fails, the Propagator does 2268 If this check fails, the Propagator does not know how to continue. 2298 2269 2299 2) Added an argument to ComputeStep method 2270 2) Added an argument to ComputeStep method of G4PropagatorInField. 2300 The new volume argument is used to check th 2271 The new volume argument is used to check the current volume during the step. 2301 2272 2302 3) When G4Navigator's ComputeStep returned 2273 3) When G4Navigator's ComputeStep returned stepLength==stepRequested, this 2303 used to be treated as a failure to intersect. 2274 used to be treated as a failure to intersect. This is incorrect. 2304 2275 2305 stepLength==stepRequested is an intersect 2276 stepLength==stepRequested is an intersection, 2306 so I am now treating it as such in each 2277 so I am now treating it as such in each comparison (of 3). 2307 Ignoring it causes problems, including 2278 Ignoring it causes problems, including volume being skipped. 2308 --> but treating it as an intersection 2279 --> but treating it as an intersection used to cause problems too ?? 2309 2280 2310 2281 2311 May 7th, 1998 J. Apostolakis - magfie 2282 May 7th, 1998 J. Apostolakis - magfield-06-02-helix01 2312 2283 2313 - Tag includes new version of G4ChordFinder ( 2284 - Tag includes new version of G4ChordFinder (not used by W.Wander). 2314 2285 2315 2286 2316 May 7th, 1998 W. Wander (recorded/c 2287 May 7th, 1998 W. Wander (recorded/commited by J. Apostolakis) 2317 2288 2318 - New "helical" RK steppers that move in heli 2289 - New "helical" RK steppers that move in helical segments, not linear. 2319 * Several changes to add steppers 2290 * Several changes to add steppers 2320 2291 2321 Modified Files: 2292 Modified Files: 2322 G4MagErrorStepper.hh 2293 G4MagErrorStepper.hh 2323 G4MagErrorStepper.cc 2294 G4MagErrorStepper.cc 2324 added Helical stepping methods to 2295 added Helical stepping methods to this general ABC. 2325 2296 2326 G4MagIntegratorStepper.hh 2297 G4MagIntegratorStepper.hh 2327 made RightHandSide virtual (this 2298 made RightHandSide virtual (this will be reversed very soon) 2328 2299 2329 testPropagateMagField.cc 2300 testPropagateMagField.cc 2330 Test of Helical stepping functiona 2301 Test of Helical stepping functionality added. 2331 2302 2332 Added Files for new Helical RK steppers, der 2303 Added Files for new Helical RK steppers, deriving from G4MagErrorStepper: 2333 G4HelixExplicitEuler.cc ( and .hh ) 2304 G4HelixExplicitEuler.cc ( and .hh ) 2334 G4HelixHeum.cc 2305 G4HelixHeum.cc 2335 G4HelixImplicitEuler.cc 2306 G4HelixImplicitEuler.cc 2336 G4HelixSimpleRunge.cc 2307 G4HelixSimpleRunge.cc 2337 2308 2338 Added File for implementation: 2309 Added File for implementation: 2339 G4MagErrorStepper.icc 2310 G4MagErrorStepper.icc 2340 2311 2341 2312 2342 May 7th, 1998 J. Apostolakis - magfi 2313 May 7th, 1998 J. Apostolakis - magfield-06-01 2343 2314 2344 - added small changes to 2315 - added small changes to 2345 * G4ChordFinder: methods to get 2316 * G4ChordFinder: methods to get/set IntegratorDriver 2346 * G4MagIntegratorDriver: made OneGoodSt 2317 * G4MagIntegratorDriver: made OneGoodStep method public 2347 - created the file. 2318 - created the file.