-
Notifications
You must be signed in to change notification settings - Fork 24
/
history
1441 lines (1242 loc) · 58.1 KB
/
history
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
------------------------------------------------
The Geant4 Virtual Monte Carlo package
Copyright (C) 2007 - 2017 Ivana Hrivnacova
All rights reserved.
For the licensing terms see geant4_vmc/LICENSE.
Contact: root-vmc@cern.ch
-------------------------------------------------
Tags (history):
===============
09/02/2024
v6-6:
Geant4 VMC:
- Make the 'PFIS' process control switch on/off "photonNuclear" process(es)
- Added special treatment of gamma processes if G4GeneralGammaProcess is in use:
the 'PFIS' control can be still applied, for the other gamma related controls
a warning is issued inviting users to switch G4GeneralGammaProcess off
(#58)
Examples:
- Removed pythia6 dependent libraries from g3libs.C (#57)
- Added comments that demonstrate switching off the 'PFIS' control and
Gamma General Process in E03 config files
Tested with VMC 2.0, Geant4 11.2 (with embedded CLHEP 2.4.7.1)
Root 6.30/02, VGM 5.2, Garfield 4.0
11/12/2023
v6-5:
Geant4 VMC:
- Migration to Geant4 11.2: (#55)
- Update TG4RootNavigator, TG4StepManager for changes in G4VTouchable
and G4Touchable*Handle
- Replaced /mcPhysics/g4NeutronHPVerbose with
/mcPhysics/g4ParticleHPVerbose as G4NeutronHPManager was removed
- Setting a cross section scale factor for hadronic processes update:
Take into account hadronic process sub-types fNu* (new in Geant4 11.2)
- Updated physics lists in test_physics_lists.sh
- Updated process map for new process sub-types
- Implemented setting productions cuts per energy (#56):
- Introduced TG4VRegionsManager base class with common implementation
and new TG4RegionManager2 using new G4ProductionCutsTable::SetEnergyCutVector function
- Added an option 'IsSpecialCutsOld' in TG4RunConfiguration that allows
to switch to old way of computation of production cuts
Examples:
- In E03: updates in cuts setting (#56):
- SetCuts: Set 100 keV cut everywhere to make easier to test that the cuts
are applied
- In E03/g4[TGeo]Config4[seq].C - added a commented line that can be used
to activate the old regions manager that sets production thresholds by ranges
Tested with VMC 2.0, Geant4 11.2 (with embedded CLHEP 2.4.7.1)
Root 6.30/02, VGM 5.2, Garfield 4.0
08/12/2023
v6-4:
Geant4 VMC:
- Allow to invoke random seed propagations to Geant4 (#45)
(Thanks to S. Wenzel, CERN)
- Updated TG4BiasingOperations for changes in Geant4 11.1 (#48)
- Improvements for (cached) magnetic fields and clean-up (#49) (#50)
- Replacing divisions by multiplications in functions that are called often
from the G4 engine, particular true for TG4CachedMagneticField
- Added InverseLength in TG4G3Units
- Fix the dispatch to PrintStatistics from TG4GeometryManager
- Remove virtual keyword when not necessary
(Thanks to S. Wenzel, CERN)
- Added inverse units in TG4G3Units (#51)
and apply inverse units systematically for all units defined
in TG4G3Units
- Removed virtual declarations of destructors where not needed (#52)
- Implemented setting a cross section scale factor for hadronic processes
(#53)(#54)
- New UI command:
/mcPhysics/setCrossSectionFactor particleName processDef factor [isProcessName]
- Process can be defined by its Geant4 name (default) or its Geant4 sub type
name.
Fixes:
Geant4 VMC:
- Fixes in VMC cuts to ranges conversion: (#44)
- Do not skip materials which regions have been defined before processing VMC cuts
(what happens in the ALICE simulation where special EM models are defined for
selected tracking media)
- Clear temporary data sets
Tested with VMC 2.0, Geant4 11.1.p3 (with embedded CLHEP 2.4.6.2)
Root 6.30/02, VGM 5.2, Garfield 4.0
13/03/2023
v6-3:
Geant4 VMC:
Improvements and fixes in VMC cuts to ranges conversion (#43)
- Added new functions in TG4RegionsManager for saving/loading region data
- Added DumpRegionStore() function to dump all region properties: production cuts,
volumes list and material list
- Increased the default number of iterations in TG4RegionsManager::DefineRegions
to 5 (was 2)
- Improved CheckRegions() and changed the default value of the energy tolerance
for checking regions to 0.01, aded a function/UI command to set this value
- New UI commands:
/mcRegions/save [true|false]
/mcRegions/load [true|false]
/mcRegions/setFileName fileName
/mcRegions/setEnergyTolerance value
/mcRegions/fromG4Table [true|false]
Fixes:
Geant4 VMC:
- In TG4RegionsManager::DefineRegions: skip evaluation of cuts when the production cuts
are already defined (this significantly speeds up the procedure)
- Fixed iteration limits in TG4RegionsManager::Iterate() - do not skip the last bin
Tested with VMC 2.0, Geant4 11.1.p1 (with embedded CLHEP 2.4.6.2)
Root 6.28/00, VGM 5.1, Garfield 4.0
18/01/2023
v6-2:
Geant4 VMC:
- Migration to Geant4 11.1:
- Added support for G4NeutronGeneralProcess
- Added handling of CoatedDielectric* optical boundary processes
(new in Geant4 11.1)
- Explicitly set CMAKE_CXX_STANDARD from Geant4 setting
- Added "hyperNuclei" option to the extra physics constructor (#37)
(This allows to activate hyper-nuclei processes at the physics list
constructor.)
G4Root:
- Faster TGeo<->G4 geometry lookups (#40)
(Thanks to S. Wenzel, CERN)
- Change of type map --> unordered_map for the G4 <-> TGeo
translation.
This is advantageous since the structures are read-only (random key access)
and so we go from O(log(N)) to O(1) scaling on average.
In tests for the ALICE detector, pp events, this commit results
in a noticable speed increase (~5%) in the overall G4 runtime.
Examples:
- Use ROOT::EnableThreadSafety() in examples and test programs (#41)
instead of the usage of TThread (now obsolete)
Fixes:
Geant4 VMC:
- Fix in applying cuts - apply productions cuts only in the first step
- Added support for G4GammaGeneralProcess:
When new general gamma process is active (default in Geant4 11),
the gamma produced secondaries creator process needs to be updated
in the user application.
(Code provided by M. Novak)
Examples:
- Make examples test suites working on macOS Monterey with SIP enabled
Tested with VMC 2.0, Geant4 11.1 (with embedded CLHEP 2.4.6.2)
Root 6.24/10, VGM 5.1, Garfield 4.0
17/03/2022
v6-1:
Geant4 VMC:
- Replaced usage of G4 process names with process sub type codes (#31):
- Added new TMCProcessMap and TMCProcessMapPhysics classes and removed
TG4ProcessControlMap, TG4ProcessMCMap and corresponding physics constructor
classes
- Improved TG4G3CutVector - added data to save information
if the extra BCUT*/DCUT* are different from CUTGAM/ELE
and if the *CUTM and *CUTE differ; this allows to skip
additional evaluation of creator process/particle type
when not needed
All packages:
- Added GitHub action for Doxygen deployment
Fixes:
Geant4 VMC:
- Fix merging user data in MT:
Do not call MCApplication::Merge() on master
- Fix compilation with Geant4 11.0.p1 (#30)
- Fixes in applying cuts and processes maps: (#29)
- Fixed mapping of some hadronic processes
- Fixed applying PPCUTM:
Using G4Step::GetSecondaryInCurrentStep() instead of GetSecondary(),
as the second one provides accumulated secondaries since the first step
- CMake: Fix G4Root_BUILD_TEST option in main CMakeLists. (#28)
(thanks to Oliver Freyermuth (Physics Institute of the University of Bonn))
- Fixed locking in TG4ModelConfigurationManager (#23)
Tested with VMC 2.0, Geant4 11.0 (with embedded CLHEP 2.4.5.1)
Root 6.24/06 and 6.26/00, VGM 5.0, Garfield 4.0
10/02/2022
v6-0:
Geant4 VMC:
- Migration to Geant4 11.0:
- Extended methods in vmc for setting optical material properties
and implemented new parameters setting in geant4_vmc
- Removed obsolete TG4OpticalPhysics.h
- Updated E06 example for changes in the OpNovice code from v 11.0
- Removed usage of deprecated TVirtualMCApplication functions:
- virtual void InitForWorker() const;
- virtual void BeginWorkerRun() const;
- virtual void FinishWorkerRun() const;
- Removed fallback to ROOT's internal VMC and added fatal error
if VMC is found in ROOT (PR #36)
G4Root:
- Updated test geometry to be identical to Geant4 OpNovice example
- Added OpNoviceGeom.C macro (generated from the old geometry file
and updated) and OpNoviceGeom.root
MTRoot:
- Removed
- TMCRootManager was moved in the VMC core library package
Examples:
- Updated all MCApplication classes for removal of deprecated
TVirtualMCApplication functions for MT
- Added 'control/verbose 2' to g4config.in in all examples
Fixes:
- Fixed applying special cuts:
- Pass the CUTELE/CUTGAM values set to tracking medium to
DCUT*/BCUT* values instead of using the default global values
- Fixed process activation in TG4PhysicsManager
- Fixed incrementing static counter in the TG4Verbose constructor
- Fixed data race in MT in TG4ModelConfigurationManager and TG4BiasingManager
Tested with VMC 2.0, Geant4 11.0 (with embedded CLHEP 2.4.5.1)
Root 6.24/06, VGM 5.0, Garfield 4.0
03/12/2021
v5-4:
Geant4 VMC:
- Updates in cmake:
- Export install prefix
(Thanks to Ch. Tacke, GSI)
- Build aganst VMC standalone library by default,
keep compiling with VMC in ROOT with a deprecation warning
Examples, G4Root/test:
- Updated CMake minimum version to 2.8.12
- Updated ExGarfield for changes in Garfield 4.0 API
Fixes:
Geant4 VMC:
- Fixed compilation error when using Geant4 with VecGeom solids
(Thanks to Andrea Capra, TRIUMF)
Tested with VMC 1.1.0, Geant4 10.7.p3 (with embedded CLHEP 2.4.4.0.)
Root 6.24/06, VGM 4.8, Garfield 4.0
11/12/2020
v5-3:
All packages:
- Migration to Geant4 10.7
- Added G4Threading.hh includes where G4MULTITHREADED is used
- Updated process maps
- Update commands for setting optical parameters in E06/g4config.in
and take into account new value of the PDG encoding for opticalphoton
(-22, was 0 in 10.6.px)
Tested with VMC 1.0.p3, Geant4 10.7 (with embedded CLHEP 2.4.4.0.)
Root 6.22/06, VGM 4.8, Garfield master at 17a26cca556f50f16
24/07/2020
v5-2:
Geant4 VMC:
- Added geometry option geomVMC+RootToGeant4:
For geometries defined with both VMC and ROOT and Geant4 native navigation.
- Added commands for user control of the parameters for killing looping
particles:
/mcPhysics/useLowLooperThresholds
/mcPhysics/useHighLooperThresholds
/mcRun/setLooperThresholdWarningEnergy value unit
/mcRun/setLooperThresholImportantEnergy value unit
/mcRun/setNumberOfLooperThresholdTrials value
- Increase RunAction verbosity level to 3
Level 2 just adds printing of summary of looping thresholds;
level 3 adds all other debug printings
Fixes:
Geant4 VMC:
- Fixed caching pointers in TG4PrimaryGeneratorAction
- Fix in applying zero magnetic fields
Geant4 VMC, Examples:
- Fixed generation of root dictionary maps
- Restored the dictionaries relocability, improve security and clean up for packaging
(Thanks to Christian Tacke, GSI.)
Tested with VMC 1.0.p3, Geant4 10.6.p02 (with embedded CLHEP 2.4.1.3)
Root 6.22/00, VGM 4.8, Garfield master at 17a26cca556f50f16
11/03/2020
v5-1:
All packages:
- Migration to Geant4 10.6.p01
- Removed G4VIS_USE, G4UI_USE pre-processor options
- Updated CMake for using Geant4 cmake use file and removed UseGeant4.cmake.
- Updated size_t types in loops, process maps, TG4BiasingOperation
Tested with VMC 1.0, Geant4 10.6.p01 (with embedded CLHEP 2.4.1.3)
Root 6.20/00, VGM 4.8, Garfield master at 940d64b1a5be99a64
24/02/2020
v5-0:
All packages:
- Added support for building against VMC stand-alone
- Updated CMake to make the installation relocatable:
- Removed the obsolete find modules for Geant4 and require CMake config for all required packages
- Avoid hard-coded library paths in the targets:
- Added the list of selected ROOT libraries which we depend on (ROOT_DEPS)
- Added target_include_directories
- Added script and configuration file for clang-format and applied formatting
to all .h, .icc, .cxx files in examples, g4root, mtroot, source
(except files for Doxygen)
- Removed trailing whitespaces from all .h, .hh, .icc, .cxx, .cc, .C, .sh, -README-, history, CMake files
- Upgraded license to GPL 3.0
Geant4 VMC:
- Implemented Multiple-engine usage: with this update GEANT4_VMC becomes capable
of running together with other engines sharing the simulation of one event.
- Implemented special biasing that allows to activate INCLXX hadronic model in selected media.
- Improved commands for setting special physics models:
- Added "setOneRegion" command to supports names with spaces
- Added support for abc* pattern
For example:
/mcPhysics/biasing/setRegions ITS*
# set biasing to all media starting with ITS
/mcPhysics/biasing/setOneRegion ITS_SPD-BUS CU KAPTON$
#set biasing to "ITS_SPD-BUS CU KAPTON$" medium
- Added recent magnetic field steppers and set the default to G4DormandPrince745 (as in Geant4)
- Added steppers:
G4BogackiShampine[23,45], G4DormandPrince[745,RK56,RK78], G4TsitourasRK45
and FSAL steppers: G4RK547FEq[1,2,3]
- Code clean-up in TG4MagneticField
- Fixed deleting objects in TG4Field
- Take into account new TVirtualMCApplication::EndOfEvent(), called by MC at the end of
event before SD's end of event
- Implemented TGeant4::ProcessEvent() and added TGeant4::FinishEvent()
This allows event-by-event processing in TGeant4. The FinishEvent() function has to be called by the user after all events have been processed.
- Added a new command
/mcPrimaryGenerator/skipUnknownParticles true|false:
it permits to skip unknown particles (not defined in Geant4) instead of aborting the execution with an exception
- Simplified TG4Verbose class
Examples:
- E01: Added test for gMC->Mixture(.. Float_t) to control a recent bug fix in TGeoMCGeometry
- Added new E03 example variant: E03c to demonstrate/test multiple engine mode
- Improved E03: Added [b,c] to the names of classes specific to the example variants
- Modularise examples test suites and added new command line args of test_suite.sh:
--examples, --debug, --cmp-ref
Fixes:
Geant4 VMC:
- Fixes in applying cuts:
- Do not let neutron decay if it is stopped with a specialCut and has assigned the neutron
killer process.
- Removed special cut processes which never apply a cut (ForEplus, ForOther).
- Removed creating Root UI at initialisation :
this should hopefully fix the break when running in batch mode without GUI observed in ALICE tests on MAC OSX
- Fixed resetting the primary particles ids
(thanks to B. Volkel (CERN) for reporting this problems)
- Fixed stopping a track if called from MCApplication::PreTrack()
(thanks to B. Volkel, CERN, for reporting this problem)
- Allow compiling with non Apple Clang on macOS
G4Root
- OpNovice: Use "UseGeant4" instead of ${Geant4_USE_FILE}
(thanks to Oliver Freyermuth (Physics Institute of the University of Bonn))
Examples:
- Test suites:
- Add missing "export" of LD_LIBRARY_PATH in test_suite.sh
- Use correct path to executables for E03 sub-examples
(thanks to Oliver Freyermuth (Physics Institute of the University of Bonn))
- E03:
- Fixed cut values: Applied the low limit 10keV (the minimal value accepted by Geant3)
- Fixed generation of dictionary map files
- ExGarfield: Fixed G3 macros
- Monopole: Fixed failure when built with Geant4 MT
Tested with VMC 1.0 (*), Geant4 10.5.p01 (with embedded CLHEP 2.4.1.0)
Root 6.18/04 (*), VGM 4.6, Garfield master at c5efc3e352101b59e
(*) VMC 1.0 is ahead of the vmc in ROOT 6.18/04,
it includes fixes scheduled for the next ROOT tags 6.18/06 and 6.20/00.
For this reason, the new multiple engine mode works correctly only with the
VMC stand-alone or with vmc in ROOT master or v6-18-patches or v6-20-patches.
18/12/2018
v4-0:
All packages:
- Migration to Geant4 10.5
- Stopped support for Root 5.x version.
Geant4 VMC:
- Added support for user defined sensitive detectors and new TVirtualMC…::NIELEdep():
- Implemented new functions in TVirtualMC:
void SetSensitiveDetector(const TString &volName, TVirtualMCSensitiveDetector *sd);
TVirtualMCSensitiveDetector *GetSensitiveDetector(const TString &volName) const;
void SetExclusiveSDScoring(Bool_t exclusiveSDScoring);
TVirtualMC::NIELEdep() function
- Added new UI commands:
/mcDet/setExclusiveSDScoring true|false
/mcDet/printUserSDs
- Updated field classes for changes in Geant4 10.5:
- Added new TG4Field base class for magnetic, electromagnetic and gravity
fields which strength is defined via TVirtualMagField.
- Added new commands to select a field type and activate monopole field:
/mcMagField/fieldType fieldType
fieldType = Magnetic | ElectroMagnetic | Gravity
/mcMagField/setIsMonopole true|false
- Added monopole physics classes extracted from the Geant4 monopole
example in a new sub-category, physics_monopole
- Added TG4RunConfiguration::SetParameter(const TString& name, Double_t value)
for setting special parameters which need to be set before creating TGeant4,
actually used for monopole properties:
monopoleMass, monopoleElCharge, monopoleMagCharge
- Allow to proceed empty events:
In TG4PrimaryGeneratorAction: issue just a warning (instead of an exception)
when there are no particles to be tracked.
(Requested by ALICE)
- Added a new command to (in)activate special stacking mechanism:
/mcTracking/waitPrimary true|false
(The command is available only when the special stacking action is activated
in TG4RunConfiguration constructor (in g4Config.C))
MTRoot:
- Merged classes in a single TMCRootManager class and removed locking of
Root IO operations except for creating and deleting Root files.
Examples:
- Splitting E03 in two options:
E03a - scoring via sensitive volumes and MCApplication::Stepping (old way)
E03b - scoring via sensitive detectors derived from new TVirtualMCSensitiveDetector
interface
- Added Monopole example (working only with Geant4)
Fixes:
Geant4 VMC:
- Fixed creating regions with special physics via the command:
/mcPhysics/emModel/setRegions regionName
It was failing when the medium name was associated with a material
with a different name.
- Process the extra boundary step only for alive tracks.
(Thanks to Benedikt Volkel for pointing at this inconsistency.)
- Fixes in application of VMC cuts:
the DCUTE, DCUTM, BCUTE, BCUTM cuts are applied only in the track first step
what emulates a production cut
(This fixes the problem reported by ALICE, JIRA ALIROOT-7121)
- Fix in implementation of TVirtualMC::VolName(Int_t volId)
(Thank to A. Morsch, CERN for reporting the problem.)
- Fix in CMake:
Comparing the ROOT version with LESS instead of LESS_EQUAL, as it is not available
in CMake minimum version declared
- Fix for excluding TMCAutoLock in MTRoot installation.
TMCAutoLock was excluded from the library but TMCAutoLock.h was still present in
the installed include
Tested with Geant4 10.05 (with embedded CLHEP 2.4.1.0)
Root 6.14/06, VGM 4.4, Garfield master at 07c0ec50a0d3086b3 (*)
(*) with fixes in MR #1 in https://gitlab.cern.ch/garfield/garfieldpp
22/01/2018
v3-6:
All packages:
- Migration to Geant4 10.4
Geant4 VMC:
- Improved VGM messenger: the VGM objects are created only when processing a
command. (This prevents from creating an empty ROOT geometry named VGM which
name may then persist in a user real geometry.)
Tested with Geant4 10.04 (with embedded CLHEP 2.4.0.0)
Root 6.12/04 and 5.34/36, VGM 4.4, Garfield v1.0
27/10/2017
v3-5:
Geant4 VMC:
- Implemented new TVirtualMC functions TrackPosition|Momentum(Float_t& ...)
- Added calls to new TVirtualMCApplication non-const functions for MT
- Let execute at rest processes when stopping a particle via user tracking cut:
this makes the behavior as in Geant3
- Added a new command which allows to activate skipping neutrinos in external decayer
(this feature is switched off by default since this version):
/mcPhysics/skipExtDecayerNeutrino true|false
- Take into account tracking medium parameter 'ifield = 0':
- Set zero magnetic field to logical volumes assoiciated with tracking medium
with 'ifield = 0' if global magnetic field is defined.
- The feature must be activated with a new command:
/mcDet/setIsZeroMagField true
- Added new command for setting gamma to muons cross section factor:
/mcPhysics/setGammaToMuonsCrossSectionFactor value
MTRoot
- Do not include TMCAutoLock in MTRoot installation since Root version 6.08/06;
the class was moved in Root since this version
Fixes:
All packages:
- Fixes in CMake build:
- Handle also a case when -std flag is not defined in root-config --cflags
- Do not override CMAKE_INSTALL_LIBDIR (thanks to Dennis Klein, GSI)
- Add support for ROOT compiled with C++14 (thanks to Dario Berzano, CERN)
Geant4 VMC:
- Fixed implementations for performance optimization applied in 3.4:
- Do not cache pointer to stepping action as this made calls to VMC functions
inavailable in initialization.
- Added new function TG4RunManager::CacheMCStack() called from
TG4PrimaryGeneratorAction::GeneratePrimaries so that the stack can
be defined by the user up to MCApplication::BeginEvent at latest
- Do not skip neutrinos in TG4ExtDecayer by default;
(requirement from Thomas Ruf, ShipSoft)
- Added AnnihiToMuPair, ee2hadr, GammaToMuPair processes in the VMC process maps
which were missing
Examples:
- Exclude ExGarfield from compilation and tests with Root 6
(as Garfield++ requires Root 5x)
Tested with Geant4 10.03.p03 (with embedded CLHEP 2.3.4.3.)
Root 5.34/36, 6.11/02 and 6.10/08(*), VGM 4.4, Garfield v1.0
(*) + fix in TGeoManager required when running in Geant4 multi-threaded mode
(git commit 971ef8af82)
08/03/2017
v3-4:
All packages:
- Migration to Geant4 10.3.p01
Geant4 VMC:
- Implemented new commands to define radiator properties:
and removed hard-coded values from TG4TransitionRadiationPhysics.
- Changes for performance optimization (according to suggestion by S, Wenzel, CERN):
- Cache pointers to the thread-local static in data members of client classes
- Set the default build mode to RelWithDebInfo (thanks to S. Wenzel, CERN)
Examples:
- Example Garfield renamed to ExGarfield
- Example TR: Define radiator via new commands
- Example E03:
Changes for performance optimization (according to suggestion by S, Wenzel, CERN):
- Cache pointers to the thread-local static in data members of client classes
Fixes:
Geant4 VMC:
- Fix in transforming primaries from TParticle to G4PrimaryParticle:
do not override the user defined mass with the PDG mass
- thanks to Oliver Freyermuth (Physics Institute of the University of Bonn).
- Fixed in applying stack popper process
Do not force the exclusive step when the parent track is suspended;
this fixes the problem observed in ALICE simulation.
- Fixed compilation with gcc 4.9.3 and 5.3.0
- thanks to Oliver Freyermuth (Physics Institute of the University of Bonn).
- Fixed CMake warning (policy CMP0042)
- Fixed handling the default zero value for argv in TG4RunManager:
(JIRA bug report VMC-7)
Tested with Geant4 10.03.p01 (with embedded CLHEP 2.3.4.3.)
Root 5.34/36 and Root 6.08/06, VGM 4.4, Garfield v1.0
15/01/2016
v3-3:
All packages:
- Migration to Geant4 10.2
Geant4 VMC:
- Integration of fast simulation based on the Geant4 framework:
- Added TG4VUserFastSimulation base class for user defined
fast simulation models
- Added TG4GflashFastSimulation and its messenger:
this makes possible to activate Gflash fast simulation via an option in
the configuration macro
- Added support for transition radiation physics:
- Added TG4TransitionRadiation physics builder, according to
the Geant4 extended example TestEm10
- Added new command to define a radiator:
/mcDet/setRadiator ...
- Implemented command to override the default G4 production cuts table energy range:
- /mcPhysics/productionCutsTableEnergyRange
(used in the Garfield example)
Examples:
- Added new examples:
- Gflash - use of Geant4 GFlash fast simulation
- Garfield - integration of Garfield++ using Geant4 fast simulation framework
- TR - use of Geant4 transition radiation physics
- All new examples use features of Geant4; when run with Geant3 the Geant3
standard configuration & physics is used
- The examples should be run in sequential mode.
Fixes:
Geant4 VMC:
- Fix in TG4ParticlesManager::CreateDynamicParticle(TParticle*):
the particle polarization was not propagated from TParticle to Geant4;
this affected the particles added to tracking by the user via stackPopper
- Fixed deleting TG4SpecialControlsV2 instance in MT mode
Examples:
- In E06: fixed in cloning MCApplication on workers
Tested with Geant4 10.02 (with embedded CLHEP 2.3.1.1.)
Root 5.34/34 and Root 6.06/00, VGM 4.3, Garfield v1.0
17/08/2015
v3-2:
Geant4 VMC:
- Added support for local magnetic fields.
- Added cached magnetic field and a related UI command :
/mcMagneticField/setConstDistance value unit
The cached magnetic field is created automatically when
the ConstDistance parameter is set to a non zero value.
- Added a possibility to include a user defined magnetic field equation of motion
and its integrator
- Integrated a new special UrbanMsc model adapted for ALICE EMCAL by V. Ivantchenko
and introduced a new set of commands (which do not allow invalid configurations):
/mcPhysics/emModel/setEmModel modelName
/mcPhysics/emModel/setParticles particleName1 particleName2 ...
/mcPhysics/emModel/setRegions regionName1 regionName2 ...
Examples:
- E03: Added a test configuration for including a user defined magnetic field equation
of motion and its integrator in example E03 and included the test in test suites
- E06: Added test for adding tracks in VMC stack by user (in E06 example)
- A01: Implemented option for use of local magnetic field and
added a test with use of local fields in test suites
Fixes:
Geant4 VMC:
- Fixed TG4StackPopper class handling adding particles on the stack
from the user application. The user tracks generated at the last step of parent track
were not popped to the stack.
- Fixed implementation of TVirtualMC::IsTrackDisappeared():
return false if fSuspend, true if fStopAndKill.
- Use G4PAIPhotModel instead of G4PAIPhotonModel (recommended since Geant4 10.00)
- Fixed the expected names of output-files from rootcint (required by CMake 3.2.x):
- thanks to Oliver Freyermuth (Physics Institute of the University of Bonn).
G4Root (A. Gheata):
Fixed boundary crossing errors (by A. Gheata)
- This error was due to the G4 field propagator which was exiting
some volume inside the mother and expecting a non-zero step, but in fact
was entering a daughter volume right away.
This fixes killing tracks by G4PropagatorInField as:
*** G4Exception : GeomNav1002
issued by : G4PropagatorInField::ComputeStep()
Particle is stuck; it will be killed.
Zero progress for 51 attempted steps.
Proposed Step is 1.78471e-05 but Step Taken is 1.78471e-05
in volume TPC_Drift
*** This is just a warning message. ***
Known problems:
- On MAC OSX, a build option for Root VMC library has to be activated
for running in MT mode
o At present, this requires a customised ROOT installation with a
modification of TMCtls.h in root/montecarlo/vmc/include
Tested with Geant4 10.01.p02 (with embedded CLHEP 2.2.0.4)
Root 5.34/26 and Root 6.04/02, VGM 4.3
19/12/2014
v3-1:
All packages:
- Migration to Geant4 10.1 and Root 6.02/02
Geant4 VMC:
Improved implementation of range cuts:
- The range cut calculated per region for electron is now by default applied
also to positron and proton
- Implemented commands which allow to inactivate applying range cuts
per particle:
/mcRegions/applyForXYZ true|false where XYZ=Gamma, Electron,Positron,Proton
- Added a command for setting the range cut for proton:
/mcPhysics/rangeCutForProton
- Implemented commands to reduce Geant4 output from Geant4 hadronics physics:
/mcPhysics/g4NeutronHPVerbose
/mcPhysics/g4HadronicProcessStoreVerbose
Known problems:
- The problems listed in v3-0 (related to MT only) are remaining.
- test_suite_exe.sh fails for example A01 (during loading geometry from a file)
with Root 6.02/02 - the problem requires a fix in Root
Tested with Geant4 10.01 (with embedded CLHEP 2.2.0.4)
Root 5.34/23 and Root 6.02/02, VGM 4.2
17/11/2014
v3-0:
All packages:
- Consolidated migration to Geant4 multi-threading
o Added an option to select to run an application in sequential mode
also with Geant4 libraries built in MT mode
o Made setting defined via Geant4 actions available in PreInit phase
- Migration to Root 6.02/xx
(note that this involves building against C++11 standard)
- Migration to CMake build system (and removed "old" Makefiles)
o see new installation instructions at:
http://root.cern.ch/drupal/content/installing-geant4vmc-cmake
- Made use of G4Root package optional
Geant4 VMC:
- Removed obsolete "interfaces" category
G4Root (A. Gheata):
- Replaced old g4root test based on Geant4 N06 example with a new one based
on Geant4 OpNovice example (A. Gheata)
- Enabled Geant4 visualization of bounding box in TG4RootSolid.
Examples:
- Separated macros for loading libraries (load_g3|4.C) from run macros
(run_g3|4.C) - required for cling (Root6)
- Improved examples test suites:
o Possibility to select g3/g4 test via arguments
o Added summary message and return code
o Possibility to define build dir via arguments
Fixes:
- Fixed optional compilation without Geant4 G3toG4 package
- Fixed TG4GeometryManager destructor
- Fix in TG4RegionsManager to restore optional regions printing (was affected
by changes in Geant4 10.0)
- Fixed description of /mcPhysics/printAllProcess and /mcPhysics/dumpAllProcess
commands
- Fixed g4root test geometry (Andrei Gheata)
- Fixed TG4RootNavigator: added missing include and forward declarations
- Fix in G4Root for MT mode (by A. Gheata):
set G4Root navigator also to G4SteppingManager
- Fixed returning names via const char* (was failing on Mac)
- Fixed incorrectly used G4cout (instead of G4endl) in TG4SDConstruction.cxx,
TG4Medium.cxx
Known problems:
- Problem at exit in E02 example in MT mode
- On MAC OSX, a build option for Root VMC library has to be activated
for running in MT mode
o At present, this requires a customised ROOT installation with a
modification of TMCtls.h in root/montecarlo/vmc/include
Aknowledgment:
Thanks to Oliver Freyermuth, Physics Institute of the University of Bonn
for testing CMake build and examples test suites and his contributions.
Tested with Geant4 10.00.p03 (with embedded CLHEP 2.1.4.1)
Root 5.34/23 and Root 6.02/01, VGM 4.2
14/03/2014
v3-00-b01:
Migration to Geant4 10.00 MT (beta release)
Geant4 VMC:
Developments:
- Migration to Geant4 multi-threading
Fixes:
- Fixed SetDecayMode(): do not fill empty channels (as this causes
problems in MT)
- Added protection for zero return from G4ParticleTable::GetParticle(i)
- Fixed implementation of special controls
- Fixed compilation with NO_G3TOG4
Examples:
Developments:
- Migration to Geant4 multi-threading
- Added examples and examples tests main functions and CMake
configuration files for bulding programs linked with all libraries
Tested with Geant4 10.00.p01 (with embedded CLHEP 2.1.4.1)
Root 5.34/18 (+patch in TCint class), VGM 3.06
10/12/2013
v2-15:
Migration to Geant4 10.00
Geant4 VMC:
Developments:
- Applying step limit in low density materials made optional;
the default step value changed to 10m
- Added commands:
/mcDet/setIsUserMaxStep true|false
/mcDet/setIsMaxStepInLowDensityMaterials true|false
- TG4SpecialStackingAction adapted for G4SmartTrackStack
(in Geant4 since 9.6.x); secondaries are not ordered even
when the special stacking is activated
- Added filtering of Geant4 compiler flags in makefiles
(needed for Geant4 10.0)
Fixes:
- Fixed filling optical photon status in TVirtualMC::StepProcess()
- Fixed setting of PAI model to selected particles in TG4EmModelPhysics
- Fixed missing initialization in TG4RegionsManager
(thanks to O. Freyermuth)
- Fixed g4libs.C to handle correctly using external CLHEP
(thanks to I. Das)
- Fixed TG4TrackingAction to work properly with the default stacking of
optical photons
- Fixed compiler warnings issued with Geant4 compiler flags not
enabled by default (mainly shadowed variables)
Tested with Geant4 10.00 (with embedded CLHEP 2.1.4.1)
+ patch provided at http://bugzilla-geant4.kek.jp/show_bug.cgi?id=1537,
Root 5.34/13, VGM 3.06
14/12/2012
v2-14:
Migration to Geant4 9.6
Geant4 VMC:
Developments:
- Implemented commands for activating saving random number status
and restoring it from a file:
- Improved TG4VSpecialCuts: reorganized code to avoid unnecessary
calculations before tests
- Removed obsolete features:
classes TG4LVStructure, TG4LVTree, TG4LVTreeMessenger;
methood TG4EventAction::DisplayEvent; command /mcEvent/drawTracks
- Added an option to exclude G3toG4 dependent code which can be activated
by setting NO_G3TOG4 environment variable
G4Root:
- Added TG4RootNavigator::GetGlobalExitNormal(), required with Geant4 9.6.
(A. Gheata)
Fixes:
- Fixed mapping between Rootino and geantino;
user can now introduce chargedgeantino by setting the title
"ChargedRootino" to Rootino particle.
- Fixed bug in TVirtualMC::Gdtom() implementation
- Fixed units in stacking particles
- Fix in TVirtualMC::GetSecondary implementation: get track global time
instead of the local one
- Fixes to support Geant4 native geometries: handling copyNo, taking into
account the user limits
- Fixed units in material optical properties
Examples:
- Added new A01 example
- Improved g4vis.in macros and removed use of gean4_vmc commands
(now removed)
- In E02, E03: Default physics list changed to FTFP_BERT to be consistent
with the examples in Geant4 9.6
Tested with Geant4 9.6 (with embedded CLHEP 2.1.3.1),
Root 5.34/03, VGM 3.06
13/12/2011
v2-13:
Migration to Geant4 9.5:
In Makefiles: use of geant4-config if G4INSTALL is not defined
Geant4 VMC:
Developments:
- Implemented a possibility to select sensitive volumes by the user;
in this case TVirtualMCApplication::Stepping() function is called only when
track is located in a sensitive volume.
- Added the user physics selection in the TGeant4 title, so that
it can be retrievable in a user application.
- Migration to changes in G4PhysListFactory
(now all hadronic lists can be combined with all EM options)
- Modified building of physics list:
Added TG4ExtraPhysicsList with the following optional Geant4 builders:
G4ExtraPhysics - moved from TG4EmPhysicsList;
G4OpticalPhysics - which has replaced TG4OpticalPhysics;
this implies the changes of commands for configuring optical processes
G4RadioactiveDecayBuilder - new
- Faster implementation of TVirtualMC::GetMediumID()
(the medium ID is now added in TG4SensitiveDetector object)
Fixes:
- Fix in GetSecondary(..) (bug reported by L. Zambelli)
there was missing conversion of units in the returned value of particle
momentum.
- Fixing compilation with G4UI_NONE and G4VIS_NONE
Examples:
- new g4libs.C macro with use of geant4-config;
the macro based on liblist renamed to g4libs_old.C;
previous g4libs_old.C (explicit loading) removed
- E06:
- Added setting parameters for Optical Mie Scattering (according N06)
- Updated configuration optical processes using G4 commands
- Removed special setting for G3 (it was causing G4 exception
and seems not to be needed for G3)
Tested with Geant4 9.5 (with embedded CLHEP 2.1.1.0),
Root 5.30/04 and Root 5.32/00 + patch in root/etc from rev.42474,
VGM 3.05
14/07/2011
v2-12:
Migration to Root v5.30/00 and Geant4 9.5.b01
Geant4 VMC:
Developments:
- Implemented new TVirtualMC functions:
Bool_t GetMaterial(Int_t imat, ...);
... which replaced the current Gfmate(...) functions
- Mapping physics processes from 9.4.p02
- Adding light anti-ions (ani_deuteron, anti_triton, anti_alpha, anti_He3)
so that users do not to define them themselves via
TVirtualMC::DefineParticle.
Fixes:
- Coverity defects
- Fix in TG4ParticlesManager for handling particles which have
no equivalent in TDatabasePDG: the particle is now added in TDatabasePDG
without issuing an exception
Examples:
- Adding a test for testing all available G4 physics lists
- Adding a test for the new function GetMaterial() in E01
- Removing code calling Geant3 visualization functions from all
examples code and macros
- Adding a primary generator with anti_nuclei in E03 and added this test
in test_suite
Tested with Geant4 9.4.p02 and 9.5.b01, CLHEP 2.1.0.1,
Root 5.28/00e and Root 5.30/00, VGM 3.04
22/12/2010
v2-11:
Migration to Geant4 9.4 release.
Tested with Geant4 9.4, CLHEP 2.1.0.1, Root 5.28/00, VGM 3.04
02/10/2010
v2-10:
Geant4 VMC:
Improvements:
- Implemented new TVirtualMC functions:
virtual void SetCollectTracks(...);
virtual Bool_t IsCollectTracks() const;
virtual Bool_t CurrentBoundaryNormal(...) const;
- Added new TG4EmModelPhysics which allows user selection of an extra
EM energy loss and fluctuations models.
- Adding a utility class, TG4ParticlesChecker, for comparing particles
properties defined in Root and Geant4 and its messenger
TG4ParticlesCheckerMessenger.
- Implemented commands to allow user to customise the setting of the
the max allowed step in materials with a density below a limit value
- Added a possbility to switch off passing the random number seed from
TRandom in CLHEP::HepRandom; this allows using standard Geant4 commands
for saving and restoring the random number generator status
- Mapped processed used in CHIPS and QBBC physics lists
- Migration to Geant4 9.4.b01:
- updated TG4UserParticlesPhysics, mapped processes present in new
Fixes:
- Fixed the time of flight returned via TVirtualMC::TrackPosition():
return the global track time (= time since the event in which the track
belongs is created) instead of local track time (= the local time since
the current track is created) in order to be consistent with Geant3.
Tested with Geant4 9.3.p02, CLHEP 2.0.4.5, Root 5.27/06, VGM 3.03
and Geant4 9.4.b01, CLHEP 2.0.4.6
Examples:
Removed macros for running examples with Fluka
Tested with Geant3 1.11, Geant4 VMC 2.10
20/05/2010
v2-9:
G4Root
- Moved from Root in Geant4 VMC
Geant4 VMC:
Improvements:
- Added new class TG4FieldParameters which allows customization of Geant4
magnetic field integrator and accuracy parameters.
(See E02/g4config.in an example of new commands.)
- Added new class TG4CrossSectionManager which allows inspecting
hadronic cross sections.
(See: http://root.cern.ch/drupal/content/physics-list)
- The available hadron physics lists names are now taken directly from
G4PhysListFactory.
Fixes:
- In TG4RegionsManager:
- set the range cuts to result always to an energy cut below the user
cut value.
- set ranges also for the world volume
- increased the maximum order of search ranges (to 1km)
- fixed CheckCut method (the cut from range must be <= VMC cut)
- In TG4StepManager:
- Adding its own G4Navigator object, which is used for LocateGlobalPoint...
calls in pre-track phase.
(Fixes the problem reported by A. Robert.)
- In TG4OpGeometryManager, TG4OpticalPhysics
- Do not set RINDEX material property if defined with zero values.
(The zero value is a Geant3 convention to define material as metal
which was not adopted in Geant4, where 0 values cause unpredictable
behavior in G4OpBoundary process.)
- The Raileigh and boundary processes were not added to opticalphoton
process manager.
- Fix in applying MCApplication::TrackingRMax,TrackingZMax.
Examples:
- Frozen testing examples with Fluka.