Geant4 Cross Reference |
1 # Example B2 History 2 3 See `CONTRIBUTING.rst` for details of **required** info/format for each entry, 4 which **must** added in reverse chronological order (newest at the top). 5 It must **not** be used as a substitute for writing good git commit messages! 6 7 ------------------------------------------------------------------------------- 8 9 ## 2024-01-22 Gabriele Cosmo (exampleB2-V11-02-00) 10 - Updated PrimaryGeneratorAction::GeneratePrimaries() in all B2 examples to 11 avoid nonsense placing of the initial position on the world boundary. 12 13 ## 2023-11-07 I. Hrivnacova (exampleB2-V11-01-03) 14 - Fixed and improved setting of G4VisAttribute 15 - Do not create vis attributes with new (causing memory leak) 16 - Use Geant4 predefined colours (for clarity) 17 18 ## 2023-11-07 I. Hrivnacova (exampleB2-V11-01-02) 19 - Removed unsused and unimplemented method declaration 20 PrimaryGeneratorAction::SetRandomFlag 21 22 ## 2023-11-03 I. Hrivnacova (exampleB2-V11-01-01) 23 - Applied auto in main where suitable and not done by clang-tidy 24 - Minor formatting changes 25 26 ## 2023-09-06 John Allison (exampleB2-V11-01-00) 27 - For the new flexible run-time graphics system options: 28 - B2a and B2b: 29 - main programs: 30 - Use constructor with arguments: new G4VisExecutive(argc, argv). 31 - EventAction.cc, TrackerSD.cc: 32 - Change G4int to std::size_t to eliminate precision loss warnings. 33 - vis.mac in B2a/, B2b/ and macros/: 34 - Change "/vis/open OGL 600x600-0+0" to "/vis/open" to allow run-time choices. 35 36 ## 2022-05-20 I. Hrivnacova (exampleB2-V11-00-01) 37 - Restore the top UI commands directory name ("B2") in B2a::DetectorMessenger 38 removed by mistake in exampleB2-V10-07-02 39 (https://github.com/Geant4/geant4/pull/46) 40 41 ## 2021-12-10 Ben Morgan (exampleB2-V11-00-00) 42 - Change to new Markdown History format 43 44 --- 45 46 # History entries prior to 11.0 47 48 13-07-21 I. Hrivnacova (exampleB2-V10-07-02) 49 - Introduced namespace instead of a class names prefix 50 - Declare overriding functions 'override' (and removed 'virtual' keyword) 51 52 31-05-21 I. Hrivnacova (exampleB2-V10-07-01) 53 - Use nullptr instead of 0, NULL 54 - Clean trailing whitespaces from all files 55 56 30-05-21 M.Maire (exampleB2-V10-07-00) 57 - exampleB2a,b.cc: use G4SteppingVerboseWithUnits 58 59 02/11/20 B.Morgan (exampleB2-V10-06-02) 60 - Support same CMake version range as core Geant4 61 62 30/06/20 G. Cosmo (exampleB2-V10-06-01) 63 - Migrated examples to use G4RunManagerFactory, therefore implicitly enabling 64 tasking by default in MT builds. 65 66 13/02/20 I. Hrivnacova (exampleB2-V10-06-00) 67 - Updated READMEs and added a comment in B2PrimaryGeneratorAction 68 that starting a primary particle on the world boundary 69 requires shooting in a direction towards inside the world 70 71 21/11/19 G. Cosmo (exampleB2-V10-05-00) 72 - Use default MixMax random engine. 73 74 13/03/18 I. Hrivnacova (exampleB2-V10-04-00) 75 - Modified exampleB2.in test to reduce the output 76 77 19/11/16 A. Dotti (exampleB2-V10-02-01) 78 - explitic set of SD to manager 79 80 01/11/16 L. Garnier (exampleB2-V10-02-00) 81 - Remove icons.mac. Automatically include since interfaces-V10-02-07 82 83 29/11/14 I. Hrivnacova 84 - Use G4endl instead of \n in G4cout; 85 this makes each new line in the output on threads preceded with 86 G4WTN > 87 88 06/11/14 I. Hrivnacova 89 - Finalized modifications in previous tags (02, 03): 90 - Removed G4UI_USE/G4VIS_USE tests and init.mac macro (not needed) 91 - Moved G4UIExecutive at the beginning of main() in all examples 92 - Perform run initialization in macros instead of main() 93 94 31/10/14 L. Garnier (exampleB2-V10-00-02 - exampleB2-V10-00-03) 95 exampleB2b : 96 - Fix a warning (perhaps a crash) 97 - Fix a warning "'ui' may be used uninitialized in this function" 98 99 31/10/14 L. Garnier (exampleB2-V10-00-01) 100 exampleB2a/exampleB2b : 101 - Remove old G4UI_USE/G4VIS_USE 102 - Move G4UIExecutive at the beginning of main() 103 104 02 December 2013 Ivana Hrivnacova 105 - Fixed gui.mac: 106 corrected wireframe parameter, removed run2.mac from gui 107 108 30/11/13 I. Hrivnacova 109 - Fixed B2a/gui.mac 110 111 28/11/13 I. Hrivnacova (exampleB2-V09-06-12) 112 - Clean-up macros (fixed B2a/gui.mac, removed obsolete comments) 113 114 26/11/13 I. Hrivnacova (exampleB2-V09-06-11) 115 - Fixed deleting fMagFieldMessenger with use of G4AutoDelete utility 116 117 12/11/13 I. Hrivnacova (exampleB2-V09-06-10) 118 - Avoid long lines 119 120 29/10/13 I. Hrivnacova (exampleB2-V09-06-09) 121 - Using G4RunManager::SetPrintProgress() 122 - Removed SetNumberOfThreads(4) from main (use Geant4 default) 123 - Fixed deleting fMagFieldMessenger in DetectorConstruction 124 - Updated README 125 126 10/09/13 I. Hrivnacova (exampleB2-V09-06-08) 127 - Removed "tcsh" selection from G4UIExecutive in exampleB2b.cc 128 (unwantedly introduced with previous update) 129 130 04/09/13 I. Hrivnacova (exampleB2-V09-06-07) 131 - Magnetic field classes (B2MagneticField, B2FieldMessenger) replaced 132 with use of new G4GlobalMagFieldMessenger class. 133 134 27/08/13 G.Cosmo (exampleB2-V09-06-06) 135 - Added G4Ellipsoid among solids enabled for parameterisation in B2b. 136 137 14/08/13 P. Gumplinger (exampleB2-V09-06-05) 138 - Removed static comment in B2MagneticField.hh for GetGlobalFieldManager. 139 140 26/06/13 G. Cosmo (exampleB2-V09-06-04) 141 - Fixed use of G4Random instead of HepRandom in B2b. 142 143 04/06/13 I. Hrivnacova (exampleB2-V09-06-03) 144 - Fixed reference to B2ActionInitialization in README and .README 145 146 04/06/13 P. Gumplinger (exampleB2-V09-06-02) 147 - add section about ACTION INITALIZATION to README and .README 148 149 10/05/13 I. Hrivnacova (exampleB2-V09-06-01) 150 - Minor fixes in documentation 151 - Added initialization of base class in constructors where missing 152 153 09/05/13 M. Asai 154 - Migration to multi-threading 155 156 28/02/13 I. Hrivnacova 157 - When building materials with NistManager 158 do not set fromIsotopes argument (which was set to false), 159 as since 9.6 all materials have to be built from isotopes. 160 Thanks to V. Ivantchenko for pointing at this. 161 162 02/02/13 V.Ivanchenko (exampleB2-V09-06-00) 163 - Renamed G4StepLimiterBuilder by G4StepLimiterPhysics 164 - minor fix of GNUmakefile 165 166 18/09/12 I. Hrivnacova 167 - Updated vis.mac (on suggestions by John Al.): 168 - Activating drawing hits in vis.mac macros 169 - Increased hit screen size (from 2 to 4) 170 - In TrackerSD: removing obsolete line with 171 //newHit->Draw(); 172 - General changes (see basic/History) 173 174 15/11/11 I. Hrivnacova 175 - Migration to new G4Exception in B2aDetectorConstruction.cc 176 and B2bChamberParameterisation.cc. 177 178 14/11/11 I. Hrivnacova 179 - The first tagged version of the new B2 example created from N02 180 example by P. Gumplinger (tagged in basic). 181 Started from novice/N03. 182 183 05-07-11 gum 184 migrate to new novice example code guidelines 185 186 03-06-11 mma (exampleN02-V09-04-02) 187 PhysicsList migrated to new scheme G4PhysListHelper 188 189 10-02-11 mma (exampleN02-V09-04-01) 190 - update SteppingVerbose 191 192 01-02-11 mma (exampleN02-V09-04-00) 193 - /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 1 194 195 04-06-10 J.Perl (exampleN02-V09-03-01) 196 - Updated vis usage 197 198 22-01-10 mma (exampleN02-V09-03-00) 199 - DetectorConstruction::SetMagField() : fpMagField->SetMagFieldValue() 200 201 15-11-09 mma (exampleN02-V09-02-01) 202 - Use G4MuMultipleScattering for muons 203 - Separate alpha from GenericIon 204 205 30 October 2009 John Allison (exampleN02-V09-02-00) 206 - Introduced G4UIExecutive. 207 208 17-12-08 mma 209 - vis.mac : /vis/scene/add/trajectories smooth 210 211 31-10-08 mma (exampleN02-V09-01-04) 212 - Use G4hMultipleScattering for muons and protons 213 214 26-10-08 mma (exampleN02-V09-01-03) 215 - Update PhysicsList for proton and ions 216 217 22-09-08 mma (exampleN02-V09-01-02) 218 - PhysicsList : AddStepMax() for G4StepLimiter 219 - DetectorConstruction : SetMaxStep(value) 220 - DetectorMessenger : /N02/det/stepMax 221 222 07-05-08 J.Allison (exampleN02-V09-01-01) 223 - Protected "/control/execute vis.mac" with G4VIS_USE flag. 224 225 03-05-08 mma (exampleN02-V09-01-00) 226 - PhysicsList : replace G4MultipleScattering by G4eMultipleScattering 227 228 17-10-07 G.Cosmo (exampleN02-V09-00-02) 229 - Explicitely delete allocated parameterisation and step-limit objects 230 in ExN02DetectorConstruction class. 231 232 22-08-07 G.Cosmo (exampleN02-V09-00-01) 233 - Fixed implementation of ExN02MagneticField class in way field is set... 234 235 25-06-07 M.Maire (exampleN02-V08-03-01, exampleN02-V09-00-00) 236 - Cosmetics in main(). 237 238 11-05-07 G.Cosmo (exampleN02-V08-03-00) 239 - Show usage of G4GeometryTolerance tuned for the geometry topology. 240 241 12-12-06 G.Cosmo (exampleN02-V08-01-01) 242 - Commented out drawing of hits in vis.mac. 243 244 06-11-06 J.Allison (exampleN02-V08-01-00) 245 - Improved vis.mac to vis best practice. 246 247 16-06-06 G.Cosmo (exampleN02-V08-00-03) 248 - Use coherent allocation scheme for user-classes and 249 initialisation in main(). 250 251 15-06-06 G.Cosmo (exampleN02-V08-00-02) 252 - Separate instantiation of the user-stepping-verbose class from 253 initialisation of the G4VSteppingVerbose singleton. 254 255 02-06-06 mma (exampleN02-V08-00-01) 256 - ExN02TrackerSD.cc: replace Touchable by TouchableHandle 257 258 31-03-06 mma (exampleN02-V08-00-00) 259 - Add a sentence in README for G4UserLimits and G4StepLimiter. 260 261 01-06-05 J.Allison (exampleN02-V07-00-03) 262 - ExN02TrackerHit.cc: Changed screen size to 2 pixels. 263 264 31-05-05 mma (exampleN02-V07-00-02) 265 - G4UserLimits + G4StepLimiter become uncommented 266 267 30-05-05 J.Allison (exampleN02-V07-00-01) 268 - Completed replacement of vis manager with G4VisExecutive. 269 270 3rd May 2005 J.Allison (examples-V07-00-03) 271 - Replaced vis manager with G4VisExecutive. 272 273 28-01-05 mma (exampleN02-V07-00-00) 274 - PhysicsList: add G4StepLimiter (in a commented line) 275 276 16-09-04 mma (exampleN02-V06-02-01) 277 - DetectorConstruction: modify a comment in PVPlacement. // copy number 278 279 08-09-04 J.Allison (exampleN02-V06-02-00) 280 - Removed trajectory printing from ExN02EventAction - now available 281 with /vis/scene/add/trajectories, which is now included in vis.mac. 282 283 05-04-04 mma (exampleN02-V06-01-00) 284 - ExN02DetectorConstruction: correct definition of XenonGas 285 286 19-03-04 mma (exampleN02-V06-00-01) 287 - ExN02PhysicsList: cleanup of include 288 289 08-03-04 mma (exampleN02-V06-00-00) 290 - ExN02RunAction: removed ApplyCommand("/vis/...") statements. 291 292 10-11-03 G.Cosmo (exampleN02-V05-02-03) 293 - Removed OPACS driver from vis-manager. 294 - Cleared warnings for parameterised detectors. 295 296 30-10-03 G.Cosmo (exampleN02-V05-02-02) 297 - Cleared compilation warnings due to new class G4Orb. 298 299 24-10-03 mma (exampleN02-V05-02-01) 300 - PhysicsList: AddProcess(Bremsstrahlung,-1,3,3) ..etc.. 301 302 06-10-03 mma (exampleN02-V05-02-00) 303 - cosmetic cleanup in material definitions 304 305 28-05-03 G.Cosmo (exampleN02-V05-01-00) 306 - Get rid of pedantic warnings... 307 308 25-03-03 mma (exampleN02-V05-00-02) 309 - Use G4PVPlacement and G4PVParametrised constructors in logical mother. 310 311 11-02-03 mma (exampleN02-V05-00-00) 312 - a blank in SteppingVerbose 313 314 27-11-01 mma (exampleN02-V03-02-04) 315 - vis.mac: /vis/viewer/set/viewpointThetaPhi 316 317 19-11-01 J.Allison (exampleN02-V03-02-03) 318 - Updated ExN02VisManager.cc for new graphics systems and defaults. 319 320 07-11-01 S.Tanaka (exampleN02-V03-02-02) 321 - vis.mac: /vis/viewer/refresh + /vis/viewer/update is replaced 322 with their equivalent command /vis/viewer/flush. 323 324 24-10-01 mma (exampleN02-V03-02-01) 325 - initInter.mac renamed vis.mac 326 327 19-10-01 S.O'Neale (examples-V03-02-00) 328 - Update reference output 329 330 11-10-01 mma (exampleN02-V03-02-00) 331 - adapted to new visualisation commands (initInter and EventAction) 332 - 80 columns max everywhere 333 334 12-07-01 mma 335 - DetectorMessenger: setField, help: magnetic field in X dirction 336 337 20-02-01 S.O'Neale (exampleN02-V03-00-03) update reference outputs following 338 materials-V03-00-04 (tagset 268) 339 340 09-02-01 M.Asai (exampleN02-V03-00-02) 341 - Migration to STL vector classes 342 affected file : ExN02SteppingVerbose.cc 343 344 31-02-05 S.O'Neale (exampleN02-V03-00-01) 345 - update reference output for Batch Mode system testing for 346 exampleN02-V03-00-00 and recent EM Physics tags. 347 348 31-01-01 G.Cosmo (exampleN02-V03-00-00) 349 - fix to ExN02ChamberParameterisation and ExN02DetectorConstruction 350 to cope with bug report #186. Parameterisation of chambers was not 351 taking into account that copyNo starts from 0, therefore dimensions 352 of the first chamber (parametrised G4Box) were set to negative values (!). 353 This was causing the side-effect of visualising a "ghost" chamber (the 354 first one close to the target), which was correctly not seen by tracking. 355 Therefore, number of chambers is now reduced to 5 but global positioning 356 and parameters have been preserved. 357 358 06-12-00 S.O'Neale (exampleN02-V02-00-03) 359 - update reference output for Batch Mode system testing 360 in this context 0 trajectories stored is normal. 361 362 03-12-00 M.Maire (exampleN02-V02-00-02) 363 - README updated 364 - prerun.g4mac updated for new vis commands, and renamed initInter.mac 365 - new examples of macro: run1.mac, ruN2.mac 366 - G4UItcsh in the main, under the control of G4UI_USE_TCSH (for Linux) 367 - visualisation on interactive mode 368 - DetectorConstruction: tracker region in the centre of the world. 369 default target material: Pb, chamber material: Xenon 370 - interactive commands to change the materials and to setup a magnetic field 371 - the magnetic field is transverse to the beam (i.e. along x) 372 - PhysicsList: copy of N03. defaultCut = 1 cm 373 - PrimaryGenerator: default momentum direction corrected: along z. 374 Suppress the possibility of random impact and the associated messenger. 375 - RunAction and EventAction updated for vis commands 376 - SteppingAction: cleanup because no specific actions 377 - SteppingVerbose: see README 378 - TrackerHit: a Hit = 4 informations: trackID, chamberNb, edep, position. 379 Draw and Print 380 - TrackerSD: ProcessHits. 381 Print HitsCollection at end of event 382 383 25th November 2000 Steve O'Neale (tagset210) 384 - Update test outputs for min.delta energy cut 385 - Update test outputs for emlowen-V02-00-22 and stand,muon,xray,utils. 386 387 Nov 09, 2000 V.Grichine (exampleN02-V02-00-00) 388 - Fix in ExN02MagneticField constructors: added call to SetDetectorField() 389 to activate user-defined magnetic-field. 390 - Updated exampleN02.out. 391 392 June 24, 2000 John Allison (exampleN02-V01-01-03) 393 - Updated exampleN02.out for stand-V01-01-05 and utils-V01-01-03. 394 395 June 17, 2000 John Allison (exampleN02-V01-01-02) 396 - Updated exampleN02.out for exampleN02-V01-01-01. 397 398 June 19, 2000 G.Cosmo (exampleN02-V01-01-01) 399 - Fixed length of detector box to include tracker in ExN02DetectorConstruction. 400 - Cosmetic changes to comments. 401 402 June 17, 2000 John Allison (exampleN02-V01-01-00) 403 - Updated exampleN02.out for geant4-01-01-ref-06. 404 405 25-02-00 H.Kurashige 406 - removed RhoZeroDefinition from PhysicsList 407 408 15-11-99 M.Maire 409 - example of user SteppingVerbose class: verbose with units 410 411 16th April 1999 H.Kurashige 412 - modify ExN02SteppingAction::UserSteppingAction 413 - modify ExN02PhysicsList::SetCuts 414 415 4th December 1998 John Apostolakis 416 417 - corrected the Magnetic Field SetField methods 418 - cosmetic change to the name of a volume (chamber), as it was too long. 419 420 12th Sptember 1998 Michel Maire 421 - removed the function SetEmProcess() ( contained cin) 422 and the class ExN02PhysicsListMessenger 423 424 Interchanged N02 and N03. 425 426 9th August 1998 John Allison 427 - Removed trackerChamber_logVisAtt->SetForceWireframe(true); 428 - Removed G4_SOLVE_TEMPLATES macros (now done in architecture.gmk). 429 - Change G4UIterminal to G4UIGAG. 430 431 16th July 1998 John Allison 432 - Changed /vis~/Draw... to /vis~/draw. 433 434 9th July 1998 John Allison 435 - Added G4VIS_USE_DAWNFILE and G4VIS_USE_OPENGLWIN32 to ExN03VisManager.cc. 436 437 8th July 1998 G.Cosmo 438 - Protected visualization code with G4VIS_USE. 439 440 6th July 1998 John Allison 441 - Simplified ExN03VisManager. 442 443 June 29 , 98 H.Kurashige 444 - Modified ExN03PhysicsList. 445 446 May 15, 98 G. Cosmo 447 448 - Added #ifdef protection to ExN03MagneticField.hh. Header now 449 included explicitly in ExN03DetectorConstruction.hh. Example now 450 links. 451 452 May 07, 98 J. Apostolakis 453 454 - Created Physical Volume Parameterisation for Tracker Chambers. 455 - Copied from example6: 456 MyTrackerHit into ExN03TrackerHit 457 458 May 05, 98 J. Apostolakis 459 460 - Changed the geometry in DetectorConstruction. 461 - Created the Magnetic Field 462 463 May 01, 98 J. Apostolakis 464 465 - Files created by copying from exampleEmPhys2, renaming the files 466 and the classes within them, changing the string "My" into 467 468 - Major changes made: 469 * Event action: deleted energy counting. 470 471 472 April 09, 98 G. Cosmo 473 474 - Created.