Ignore:
Timestamp:
Sep 30, 2010, 2:47:17 PM (15 years ago)
Author:
garnier
Message:

tag geant4.9.4 beta 1 + modifs locales

Location:
trunk/examples/extended/electromagnetic/TestEm16
Files:
25 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/extended/electromagnetic/TestEm16/History

    r807 r1337  
    1 $Id: History,v 1.6 2007/01/18 10:24:35 vnivanch Exp $
     1$Id: History,v 1.13 2010/06/07 05:40:46 perl Exp $
    22-------------------------------------------------------------------
    33
     
    1515     * Reverse chronological order (last date on top), please *
    1616     ----------------------------------------------------------
     17     
     1806-06-10 J.Perl (testem16-V09-03-02)
     19- Remove unused variable in EventAction
     20
     2103-06-10 J.Perl (testem16-V09-03-01)
     22- Updated vis usage
     23
     2420-05-10 mma (testem16-V09-03-00)
     25- TestEm16.cc : introduction of G4UIExecutive
     26     
     2719-11-09 mma (testem16-V09-02-00)
     28- PhysicsList : introduce eMultipleScattering and MuMultipleScattering
     29
     3024-09-08 mma (testem16-V09-01-02)
     31- HistoManager : root as default format
     32
     3312-06-08 mma (testem16-V09-01-01)
     34- Remove AIDA from GNUmakefile
     35     
     3607-05-08 mma (testem16-V09-01-00)
     37- README : update Aida informations     
    1738
    183918-01-07 V.Ivant (testem16-V08-02-00)
  • trunk/examples/extended/electromagnetic/TestEm16/README

    r807 r1337  
    1 $Id: README,v 1.3 2007/01/18 09:07:20 hbu Exp $
     1$Id: README,v 1.5 2008/09/26 20:05:13 maire Exp $
    22-------------------------------------------------------------------
    33
     
    120120        make
    121121
    122   By default the histograms are saved as testem16.hbook
     122  By default the histograms are saved as testem16.root
    123123  It is possible to choose the format of the histogram file (hbook, root, XML)
    124124  and the binning using /testem/histo/ command, see run01.mac
     125         
     126  To use histograms, at least one of the AIDA implementations should be
     127  available. See InstallAida.txt
  • trunk/examples/extended/electromagnetic/TestEm16/TestEm16.cc

    r1230 r1337  
    2424// ********************************************************************
    2525//
    26 // $Id: TestEm16.cc,v 1.3 2007/01/18 09:07:20 hbu Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     26// $Id: TestEm16.cc,v 1.4 2010/05/20 21:38:19 maire Exp $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
     
    3232#include "G4RunManager.hh"
    3333#include "G4UImanager.hh"
    34 #include "G4UIterminal.hh"
    35 #include "G4UItcsh.hh"
    3634#include "Randomize.hh"
    3735
     
    4846#ifdef G4VIS_USE
    4947 #include "G4VisExecutive.hh"
     48#endif
     49
     50#ifdef G4UI_USE
     51#include "G4UIExecutive.hh"
    5052#endif
    5153
     
    6971  runManager->SetUserAction(new PrimaryGeneratorAction(det));
    7072
    71 #ifdef G4VIS_USE
    72   //visualization manager
    73   G4VisManager* visManager = new G4VisExecutive;
    74   visManager->Initialize();
    75 #endif
    76 
    7773  HistoManager*  histo = new HistoManager();
    7874
     
    8783  G4UImanager* UI = G4UImanager::GetUIpointer();
    8884
    89   if (argc==1)   // Define UI terminal for interactive mode
    90     {
    91      G4UIsession* session = 0;
    92 #ifdef G4UI_USE_TCSH
    93       session = new G4UIterminal(new G4UItcsh);
    94 #else
    95       session = new G4UIterminal();
    96 #endif
    97      session->SessionStart();
    98      delete session;
    99     }
    100   else           // Batch mode
     85  if (argc!=1)   // batch mode 
    10186    {
    10287     G4String command = "/control/execute ";
     
    10489     UI->ApplyCommand(command+fileName);
    10590    }
     91   
     92  else           //define visualization and UI terminal for interactive mode
     93    {
     94#ifdef G4VIS_USE
     95   G4VisManager* visManager = new G4VisExecutive;
     96   visManager->Initialize();
     97#endif   
     98     
     99#ifdef G4UI_USE
     100      G4UIExecutive * ui = new G4UIExecutive(argc,argv);     
     101      ui->SessionStart();
     102      delete ui;
     103#endif
     104         
     105#ifdef G4VIS_USE
     106     delete visManager;
     107#endif     
     108    }
    106109
    107110  //job termination
    108 #ifdef G4VIS_USE
    109   delete visManager;
    110 #endif
    111 
     111  //
     112  delete histo;
    112113  delete runManager;
    113114
  • trunk/examples/extended/electromagnetic/TestEm16/TestEm16.out

    r807 r1337  
     1
     2        ############################################
     3        !!! WARNING - FPE detection is activated !!!
     4        ############################################
    15
    26*************************************************************
    3  Geant4 version Name: global-V09-00-03    (9-May-2008)
     7 Geant4 version Name: geant4-09-03-ref-06    (25-June-2010)
    48                      Copyright : Geant4 Collaboration
    59                      Reference : NIM A 506 (2003), 250-303
     
    1014***** Table : Nb of materials = 4 *****
    1115
    12  Material: Beryllium     density:  1.848 g/cm3   RadL:  35.276 cm   Imean:  63.600 eV
     16 Material: Beryllium     density:  1.848 g/cm3   RadL:  35.276 cm   Nucl.Int.Length:  39.413 cm   Imean:  63.700 eV
    1317   --->  Element: Beryllium ( )   Z =  4.0   N =   9.0   A =   9.01 g/mole  ElmMassFraction: 100.00 %  ElmAbundance 100.00 %
    1418
    15  Material:   Carbon     density:  2.265 g/cm3   RadL:  18.851 cm   Imean:  78.000 eV
     19 Material:   Carbon     density:  2.265 g/cm3   RadL:  18.851 cm   Nucl.Int.Length:  35.388 cm   Imean:  81.000 eV
    1620   --->  Element: Carbon ( )   Z =  6.0   N =  12.0   A =  12.01 g/mole  ElmMassFraction: 100.00 %  ElmAbundance 100.00 %
    1721
    18  Material:     Iron     density:  7.870 g/cm3   RadL:   1.759 cm   Imean: 286.000 eV
    19    --->  Element: Iron ( )   Z = 26.0   N =  55.9   A =  55.85 g/mole  ElmMassFraction: 100.00 %  ElmAbundance 100.00 %
    20 
    21  Material:   Vacuum     density:  0.000 mg/cm3  RadL: 25050962965.731 km   Imean:  81.900 eV   temperature: 296.15 K  pressure:   0.00 atm
     22 Material:     Iron     density:  7.870 g/cm3   RadL:   1.759 cm   Nucl.Int.Length:  16.999 cm   Imean: 286.000 eV
     23   --->  Element: Iron ( )   Z = 26.0   N =  55.8   A =  55.85 g/mole  ElmMassFraction: 100.00 %  ElmAbundance 100.00 %
     24
     25 Material:   Vacuum     density:  0.000 kg/m3   RadL: 25050955080.963 km   Nucl.Int.Length: 55627598682.933 km   Imean:  82.000 eV   temperature: 296.15 K  pressure:   0.00 atm
    2226   --->  Element: Vacuum ( )   Z =  7.0   N =  14.0   A =  14.01 g/mole  ElmMassFraction: 100.00 %  ElmAbundance 100.00 %
    2327
    24 
    25 Visualization Manager instantiating...
    26 Visualization Manager initialising...
    27 Registering graphics systems...
    28 
    29 You have successfully registered the following graphics systems.
    30 Current available graphics systems are:
    31   ASCIITree (ATree)
    32   DAWNFILE (DAWNFILE)
    33   G4HepRep (HepRepXML)
    34   G4HepRepFile (HepRepFile)
    35   RayTracer (RayTracer)
    36   VRML1FILE (VRML1FILE)
    37   VRML2FILE (VRML2FILE)
    38   OpenGLImmediateX (OGLIX)
    39   OpenGLStoredX (OGLSX)
    40 
    41 Registering model factories...
    42 
    43 You have successfully registered the following model factories.
    44 Registered model factories:
    45   generic
    46   drawByCharge
    47   drawByParticleID
    48   drawByOriginVolume
    49   drawByAttribute
    50 
    51 Registered filter factories:
    52   chargeFilter
    53   particleFilter
    54   originVolumeFilter
    55   attributeFilter
    5628
    5729/run/verbose 2
     
    6638physicsList->Construct() start.
    6739physicsList->Construct() start.
     40physicsList->CheckParticleList() start.
    6841physicsList->setCut() start.
    6942CutLength : 1 km
     
    9669/run/beamOn 100
    9770
    98 phot:  Total cross sections from Sandia parametrisation.
    99       Sampling according PhotoElectric model
    100 
    101 compt:  Total cross sections has a good parametrisation from 10 KeV to (100/Z) GeV
    102       Sampling according Klein-Nishina model
    103       tables are built for  gamma
    104       Lambda tables from 100 eV  to 100 GeV in 90 bins.
    105 
    106 conv:  Total cross sections has a good parametrisation from 1.5 MeV to 100 GeV for all Z;
    107       sampling secondary e+e- according Bethe-Heitler model
    108       tables are built for  gamma
    109       Lambda tables from 1.022 MeV to 100 GeV in 100 bins.
    110 
    111 msc:  Model variant of multiple scattering for e-
    112       Lambda tables from 100 eV  to 100 TeV in 120 bins.
    113       LateralDisplacementFlag=  1   Skin= 0
    114       Boundary/stepping algorithm is active with RangeFactor= 0.02  Step limit type 1
    115 
    116 eIoni:   tables are built for  e-
    117       dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
    118       Lambda tables from threshold to 100 TeV in 120 bins.
    119       Delta cross sections and sampling from MollerBhabha model
    120       Good description from 1 KeV to 100 GeV.
    121 
    122 eBrem:   tables are built for  e-
    123       dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
    124       Lambda tables from threshold to 100 TeV in 120 bins.
    125       Total cross sections and sampling from StandBrem model (based on the EEDL data library)
    126       Good description from 1 KeV to 100 GeV, log scale extrapolation above 100 GeV. LPM flag 1
    127       Step function: finalRange(mm)= 1, dRoverRange= 0.2, integral: 1, fluct: 1
     71phot:   for  gamma    SubType= 12
     72      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
     73       PhotoElectric :     Emin=          0 eV         Emax=   10 TeV
     74
     75compt:   for  gamma    SubType= 13
     76      Lambda tables from 100 eV  to 10 TeV in 77 bins, spline: 1
     77      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
     78       Klein-Nishina :     Emin=          0 eV         Emax=   10 TeV
     79
     80conv:   for  gamma    SubType= 14
     81      Lambda tables from 1.022 MeV to 10 TeV in 77 bins, spline: 1
     82      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
     83       Bethe-Heitler :     Emin=          0 eV         Emax=   10 TeV
     84
     85msc:   for e-    SubType= 10
     86      Lambda tables from 100 eV  to 10 TeV in 77 bins, spline: 1
     87      RangeFactor= 0.04, stepLimitType: 1, latDisplacement: 1
     88      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
     89          UrbanMsc93 :     Emin=          0 eV         Emax=   10 TeV
     90
     91eIoni:   for  e-    SubType= 2
     92      dE/dx and range tables from 100 eV  to 10 TeV in 77 bins
     93      Lambda tables from threshold to 10 TeV in 77 bins, spline: 1
     94      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
     95        MollerBhabha :     Emin=          0 eV         Emax=   10 TeV
     96
     97eBrem:   for  e-    SubType= 3
     98      dE/dx and range tables from 100 eV  to 10 TeV in 77 bins
     99      Lambda tables from threshold to 10 TeV in 77 bins, spline: 1
     100      finalRange(mm)= 1, dRoverRange= 0.2, integral: 1, fluct: 1, linLossLimit= 0.01
     101      LPM flag: 1 for E > 1 GeV
     102      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
     103               eBrem :     Emin=          0 eV         Emax=   1 GeV
     104            eBremRel :     Emin=          1 GeV        Emax=   10 TeV
    128105
    129106SynRad:  Incoherent Synchrotron Radiation
    130107      good description for long magnets at all energies
    131108
    132 eIoni:   tables are built for  e+
    133       dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
    134       Lambda tables from threshold to 100 TeV in 120 bins.
    135       Delta cross sections and sampling from MollerBhabha model
    136       Good description from 1 KeV to 100 GeV.
    137 
    138 eBrem:   tables are built for  e+
    139       dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
    140       Lambda tables from threshold to 100 TeV in 120 bins.
    141       Total cross sections and sampling from StandBrem model (based on the EEDL data library)
    142       Good description from 1 KeV to 100 GeV, log scale extrapolation above 100 GeV. LPM flag 1
    143       Step function: finalRange(mm)= 1, dRoverRange= 0.2, integral: 1, fluct: 1
    144 
    145 annihil:       Sampling according eplus2gg model
    146       tables are built for  e+
    147       Lambda tables from 100 eV  to 100 TeV in 120 bins.
    148 
    149 msc:  Model variant of multiple scattering for mu+
    150       Lambda tables from 100 eV  to 100 TeV in 120 bins.
    151       LateralDisplacementFlag=  1   Skin= 0
    152       Boundary/stepping algorithm is active with RangeFactor= 0.02  Step limit type 1
    153 
    154 muIoni:   tables are built for  mu+
    155       dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
    156       Lambda tables from threshold to 100 TeV in 120 bins.
    157       Bether-Bloch model for E > 0.2 MeV, parametrisation of Bragg peak below,
    158       radiative corrections for E > 1 GeV
    159       Step function: finalRange(mm)= 1, dRoverRange= 0.2, integral: 1, fluct: 1
    160 
    161 muBrems:   tables are built for  mu+
    162       dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
    163       Lambda tables from threshold to 100 TeV in 120 bins.
    164       Parametrised model
    165 
    166 muPairProd:   tables are built for  mu+
    167       dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
    168       Lambda tables from threshold to 100 TeV in 120 bins.
    169       Parametrised model
    170 
    171 muIoni:   tables are built for  mu-
    172       dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
    173       Lambda tables from threshold to 100 TeV in 120 bins.
    174       Bether-Bloch model for E > 0.2 MeV, parametrisation of Bragg peak below,
    175       radiative corrections for E > 1 GeV
    176       Step function: finalRange(mm)= 1, dRoverRange= 0.2, integral: 1, fluct: 1
    177 
    178 muBrems:   tables are built for  mu-
    179       dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
    180       Lambda tables from threshold to 100 TeV in 120 bins.
    181       Parametrised model
    182 
    183 muPairProd:   tables are built for  mu-
    184       dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
    185       Lambda tables from threshold to 100 TeV in 120 bins.
    186       Parametrised model
     109eIoni:   for  e+    SubType= 2
     110      dE/dx and range tables from 100 eV  to 10 TeV in 77 bins
     111      Lambda tables from threshold to 10 TeV in 77 bins, spline: 1
     112      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
     113        MollerBhabha :     Emin=          0 eV         Emax=   10 TeV
     114
     115eBrem:   for  e+    SubType= 3
     116      dE/dx and range tables from 100 eV  to 10 TeV in 77 bins
     117      Lambda tables from threshold to 10 TeV in 77 bins, spline: 1
     118      finalRange(mm)= 1, dRoverRange= 0.2, integral: 1, fluct: 1, linLossLimit= 0.01
     119      LPM flag: 1 for E > 1 GeV
     120      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
     121               eBrem :     Emin=          0 eV         Emax=   1 GeV
     122            eBremRel :     Emin=          1 GeV        Emax=   10 TeV
     123
     124annihil:   for  e+    SubType= 5
     125      Lambda tables from 100 eV  to 10 TeV in 77 bins, spline: 1
     126      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
     127            eplus2gg :     Emin=          0 eV         Emax=   10 TeV
     128
     129muMsc:   for mu+    SubType= 10
     130      Lambda tables from 100 eV  to 10 TeV in 77 bins, spline: 1
     131      RangeFactor= 0.2, step limit type: 0, lateralDisplacement: 1, polarAngleLimit(deg)= 0
     132      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
     133          UrbanMsc90 :     Emin=          0 eV         Emax=   10 TeV
     134
     135muIoni:   for  mu+    SubType= 2
     136      dE/dx and range tables from 100 eV  to 10 TeV in 77 bins
     137      Lambda tables from threshold to 10 TeV in 77 bins, spline: 1
     138      finalRange(mm)= 1, dRoverRange= 0.2, integral: 1, fluct: 1, linLossLimit= 0.01
     139      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
     140               Bragg :     Emin=          0 eV         Emax=   200 keV
     141          BetheBloch :     Emin=        200 keV        Emax=   1 GeV
     142        MuBetheBloch :     Emin=          1 GeV        Emax=   10 TeV
     143
     144muBrems:   for  mu+    SubType= 3
     145      dE/dx and range tables from 100 eV  to 10 TeV in 77 bins
     146      Lambda tables from threshold to 10 TeV in 77 bins, spline: 1
     147      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
     148              MuBrem :     Emin=          0 eV         Emax=   10 TeV
     149
     150muPairProd:   for  mu+    SubType= 4
     151      dE/dx and range tables from 100 eV  to 10 TeV in 77 bins
     152      Lambda tables from threshold to 10 TeV in 77 bins, spline: 1
     153      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
     154          muPairProd :     Emin=          0 eV         Emax=   10 TeV
     155
     156muIoni:   for  mu-    SubType= 2
     157      dE/dx and range tables from 100 eV  to 10 TeV in 77 bins
     158      Lambda tables from threshold to 10 TeV in 77 bins, spline: 1
     159      finalRange(mm)= 1, dRoverRange= 0.2, integral: 1, fluct: 1, linLossLimit= 0.01
     160      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
     161            ICRU73QO :     Emin=          0 eV         Emax=   200 keV
     162          BetheBloch :     Emin=        200 keV        Emax=   1 GeV
     163        MuBetheBloch :     Emin=          1 GeV        Emax=   10 TeV
     164
     165muBrems:   for  mu-    SubType= 3
     166      dE/dx and range tables from 100 eV  to 10 TeV in 77 bins
     167      Lambda tables from threshold to 10 TeV in 77 bins, spline: 1
     168      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
     169              MuBrem :     Emin=          0 eV         Emax=   10 TeV
     170
     171muPairProd:   for  mu-    SubType= 4
     172      dE/dx and range tables from 100 eV  to 10 TeV in 77 bins
     173      Lambda tables from threshold to 10 TeV in 77 bins, spline: 1
     174      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
     175          muPairProd :     Emin=          0 eV         Emax=   10 TeV
    187176
    188177Region <DefaultRegionForTheWorld> -- appears in <Vacuum> world volume
     
    190179 Pointers : G4VUserRegionInformation[0], G4UserLimits[0], G4FastSimulationManager[0], G4UserSteppingAction[0]
    191180 Materials : Vacuum
    192  Production cuts :  gamma 1 km     e- 1 km     e+ 1 km
     181 Production cuts :   gamma 1 km      e- 1 km      e+ 1 km  proton 0 fm
    193182
    194183========= Table of registered couples ==============================
     
    196185Index : 0     used in the geometry : Yes     recalculation needed : No
    197186 Material : Vacuum
    198  Range cuts        :  gamma 1 km     e- 1 km     e+ 1 km
    199  Energy thresholds :  gamma 990 eV     e- 990 eV     e+ 990 eV
     187 Range cuts        :  gamma  1 km     e-  1 km     e+  1 km  proton 0 fm
     188 Energy thresholds :  gamma  990 eV     e-  990 eV     e+  990 eV  proton -1 MeV
    200189 Region(s) which use this couple :
    201190    DefaultRegionForTheWorld
     
    227216Run Summary
    228217  Number of events processed : 100
    229   User=0.93s Real=1.19s Sys=0.04s
     218  User=0.61s Real=0.89s Sys=0s
    230219Summary for synchrotron radiation :
    231220  Number of photons = 64554
     
    239228 Current couple of seeds = 1554742231, 6856043
    240229----------------------------------------
    241 Graphics systems deleted.
    242 Visualization Manager deleting...
    243230UserDetectorConstruction deleted.
    244231UserPhysicsList deleted.
     
    247234G4 kernel has come to Quit state.
    248235EventManager deleted.
    249 Default detector region deleted.
    250236UImanager deleted.
    251237Units table cleared.
     
    253239RunManagerKernel is deleted.
    254240RunManager is deleting.
     241
  • trunk/examples/extended/electromagnetic/TestEm16/include/DetectorConstruction.hh

    r1230 r1337  
    2525//
    2626// $Id: DetectorConstruction.hh,v 1.4 2007/01/18 09:07:20 hbu Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm16/include/DetectorMessenger.hh

    r1230 r1337  
    2525//
    2626// $Id: DetectorMessenger.hh,v 1.4 2007/01/18 09:07:20 hbu Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm16/include/EventAction.hh

    r1230 r1337  
    2525//
    2626// $Id: EventAction.hh,v 1.2 2006/06/29 16:47:31 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm16/include/EventActionMessenger.hh

    r1230 r1337  
    2525//
    2626// $Id: EventActionMessenger.hh,v 1.2 2006/06/29 16:47:33 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm16/include/PhysicsList.hh

    r1230 r1337  
    2525//
    2626// $Id: PhysicsList.hh,v 1.4 2006/06/29 16:47:35 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm16/include/PhysicsListMessenger.hh

    r1230 r1337  
    2525//
    2626// $Id: PhysicsListMessenger.hh,v 1.4 2006/06/29 16:47:37 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm16/include/PrimaryGeneratorAction.hh

    r1230 r1337  
    2525//
    2626// $Id: PrimaryGeneratorAction.hh,v 1.3 2006/06/29 16:47:40 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm16/include/RunAction.hh

    r1230 r1337  
    2525//
    2626// $Id: RunAction.hh,v 1.5 2007/01/18 09:07:20 hbu Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm16/include/SteppingAction.hh

    r1230 r1337  
    2525//
    2626// $Id: SteppingAction.hh,v 1.3 2007/01/18 09:07:20 hbu Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm16/include/SteppingVerbose.hh

    r1230 r1337  
    2525//
    2626// $Id: SteppingVerbose.hh,v 1.2 2006/06/29 16:47:46 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//   This class manages the verbose outputs in G4SteppingManager.
  • trunk/examples/extended/electromagnetic/TestEm16/src/DetectorConstruction.cc

    r1230 r1337  
    2525//
    2626// $Id: DetectorConstruction.cc,v 1.4 2007/01/18 09:07:20 hbu Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm16/src/DetectorMessenger.cc

    r1230 r1337  
    2525//
    2626// $Id: DetectorMessenger.cc,v 1.3 2007/01/18 09:07:20 hbu Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm16/src/EventAction.cc

    r1230 r1337  
    2424// ********************************************************************
    2525//
    26 // $Id: EventAction.cc,v 1.2 2006/06/29 16:47:52 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     26// $Id: EventAction.cc,v 1.4 2010/06/07 05:40:46 perl Exp $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
     
    3535
    3636#include "G4Event.hh"
    37 #include "G4TrajectoryContainer.hh"
    38 #include "G4Trajectory.hh"
    39 #include "G4VVisManager.hh"
    4037
    4138//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
     
    6764//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
    6865
    69 void EventAction::EndOfEventAction(const G4Event* evt)
     66void EventAction::EndOfEventAction(const G4Event*)
    7067{
    71   if (G4VVisManager::GetConcreteInstance())
    72   {
    73    G4TrajectoryContainer* trajectoryContainer = evt->GetTrajectoryContainer();
    74    G4int n_trajectories = 0;
    75    if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();
    76    for(G4int i=0; i<n_trajectories; i++)
    77       { G4Trajectory* trj = (G4Trajectory*)
    78                                        ((*(evt->GetTrajectoryContainer()))[i]);
    79         if (drawFlag == "all") trj->DrawTrajectory(100);
    80         else if ((drawFlag == "charged")&&(trj->GetCharge() != 0.))
    81                                trj->DrawTrajectory(100);
    82       }
    83   }
    8468}
    8569
  • trunk/examples/extended/electromagnetic/TestEm16/src/EventActionMessenger.cc

    r1230 r1337  
    2525//
    2626// $Id: EventActionMessenger.cc,v 1.2 2006/06/29 16:47:54 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm16/src/PhysicsList.cc

    r1230 r1337  
    2525//
    2626// $Id: PhysicsList.cc,v 1.5 2009/11/19 18:12:32 maire Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm16/src/PhysicsListMessenger.cc

    r1230 r1337  
    2525//
    2626// $Id: PhysicsListMessenger.cc,v 1.4 2006/06/29 16:47:58 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm16/src/PrimaryGeneratorAction.cc

    r1230 r1337  
    2525//
    2626// $Id: PrimaryGeneratorAction.cc,v 1.3 2006/06/29 16:48:00 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm16/src/RunAction.cc

    r1230 r1337  
    2525//
    2626// $Id: RunAction.cc,v 1.8 2007/01/18 10:24:35 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm16/src/SteppingAction.cc

    r1230 r1337  
    2525//
    2626// $Id: SteppingAction.cc,v 1.5 2007/01/18 09:07:20 hbu Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm16/src/SteppingVerbose.cc

    r1230 r1337  
    2525//
    2626// $Id: SteppingVerbose.cc,v 1.2 2006/06/29 16:48:06 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm16/vis.mac

    r807 r1337  
    1010/run/initialize
    1111#
    12 # Create empty scene ("world" is default)
    13 /vis/scene/create
    14 #
    15 # Create a scene handler for a specific graphics system
    16 # Edit the next line(s) to choose another graphic system
    17 #
    18 /vis/open OGLIX
    19 #
    20 ##/vis/open DAWNFILE
    21 #
    22 # Draw scene
    23 /vis/viewer/zoom 1.4
    24 /vis/viewer/flush
    25 #
    26 # for drawing the tracks
    27 # if too many tracks cause core dump => storeTrajectory 0
    28 /tracking/storeTrajectory 1
    29 /vis/scene/endOfEventAction accumulate
    30 #
    31 /testem/event/drawTracks all
    32 #
    3312# inactivate other processes to make SynchrotronRadiation more visible
    3413/process/inactivate msc
     
    4120#
    4221/testem/det/setField 0.1 tesla
     22#
     23# Use this open statement to create an OpenGL view:
     24/vis/open OGL 600x600-0+0
     25#
     26# Use this open statement to create a .prim file suitable for
     27# viewing in DAWN:
     28#/vis/open DAWNFILE
     29#
     30# Use this open statement to create a .heprep file suitable for
     31# viewing in HepRApp:
     32#/vis/open HepRepFile
     33#
     34# Use this open statement to create a .wrl file suitable for
     35# viewing in a VRML viewer:
     36#/vis/open VRML2FILE
     37#
     38# Disable auto refresh and quieten vis messages whilst scene and
     39# trajectories are established:
     40/vis/viewer/set/autoRefresh false
     41/vis/verbose errors
     42#
     43# Draw geometry:
     44/vis/drawVolume
     45#
     46# Specify view angle:
     47#/vis/viewer/set/viewpointThetaPhi 90. 0.
     48#
     49# Specify zoom value:
     50/vis/viewer/zoom 1.4
     51#
     52# Specify style (surface or wireframe):
     53#/vis/viewer/set/style wireframe
     54#
     55# Draw coordinate axes:
     56#/vis/scene/add/axes 0 0 0 1 m
     57#
     58# Draw smooth trajectories at end of event, showing trajectory points
     59# as markers 2 pixels wide:
     60/vis/scene/add/trajectories smooth
     61/vis/modeling/trajectories/create/drawByCharge
     62/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
     63/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
     64# (if too many tracks cause core dump => /tracking/storeTrajectory 0)
     65#
     66# Draw hits at end of event:
     67#/vis/scene/add/hits
     68#
     69# To draw only gammas:
     70#/vis/filtering/trajectories/create/particleFilter
     71#/vis/filtering/trajectories/particleFilter-0/add gamma
     72#
     73# To invert the above, drawing all particles except gammas,
     74# keep the above two lines but also add:
     75#/vis/filtering/trajectories/particleFilter-0/invert true
     76#
     77# Many other options are available with /vis/modeling and /vis/filtering.
     78# For example, to select colour by particle ID:
     79#/vis/modeling/trajectories/create/drawByParticleID
     80#/vis/modeling/trajectories/drawByParticleID-0/set e- blue
     81#
     82# To superimpose all of the events from a given run:
     83/vis/scene/endOfEventAction accumulate
     84#
     85# Re-establish auto refreshing and verbosity:
     86/vis/viewer/set/autoRefresh true
     87/vis/verbose warnings
     88#
     89# For file-based drivers, use this to create an empty detector view:
     90#/vis/viewer/flush
Note: See TracChangeset for help on using the changeset viewer.