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

tag geant4.9.4 beta 1 + modifs locales

Location:
trunk/examples/extended/electromagnetic/TestEm4
Files:
21 edited

Legend:

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

    r807 r1337  
    1 $Id: History,v 1.43 2007/06/22 09:55:22 maire Exp $
     1$Id: History,v 1.50 2010/06/07 05:40:46 perl Exp $
    22-------------------------------------------------------------------
    33
     
    1616     ----------------------------------------------------------
    1717     
     1806-06-10 J.Perl (testem4-V09-03-02)
     19- Remove unused variable in EventAction
     20
     2103-06-10 J.Perl (testem4-V09-03-01)
     22- Updated vis usage
     23
     2419-05-10 mma (testem4-V09-03-00)
     25- TestEm4.cc : introduction of G4UIExecutive
     26     
     2712-09-08 mma (testem4-V09-01-03)
     28- RunAction : change default histogram format
     29 
     3012-06-08 mma (testem4-V09-01-02)
     31- Remove AIDA from GNUmakefile
     32     
     3306-05-08 mma (testem4-V09-01-01)
     34- Update README for Aida implementations.
     35           
     3607-04-08 mma (testem4-V09-01-00)
     37- PhysicsList : replace G4MultipleScattering by G4eMultipleScattering
     38     
    183922-06-07 mma (testem4-V08-03-00)
    1940- cosmetic in TestEm4.cc
  • trunk/examples/extended/electromagnetic/TestEm4/README

    r807 r1337  
    1 $Id: README,v 1.19 2006/05/15 14:39:20 maire Exp $
     1$Id: README,v 1.21 2008/09/12 18:46:14 maire Exp $
    22-------------------------------------------------------------------
    33
     
    7676        gmake
    7777
    78   It is possible to choose the format of the histogram file (hbook, root, XML):
     78  It is possible to choose the format of the histogram file :
     79  hbook, root (default), XML
    7980  comment/uncomment 1 line in the constructor of RunAction.
    8081
    8182  To use histograms, at least one of the AIDA implementations should be
    82   available (see http://aida.freehep.org).
     83  available. See InstallAida.txt
    8384 
    84  7a - PI
    85 
    86   A package including AIDA and extended interfaces also using Python is PI,
    87   available from: http://cern.ch/pi
    88 
    89   Once installed PI or PI-Lite in a specified local area $MYPY, it is required
    90   to add the installation path to $PATH, i.e. for example, for release 1.2.1 of
    91   PI:
    92   setenv PATH ${PATH}:$MYPI/1.2.1/app/releases/PI/PI_1_2_1/rh73_gcc32/bin
    93 
    94   CERN users can use the PATH to the LCG area on AFS.
    95   Before running the example the command should be issued:
    96   eval `aida-config --runtime csh`
    97 
    98  7b -  OpenScientist
    99 
    100   OpenScientist is available at http://OpenScientist.lal.in2p3.fr.
    101 
    102   You have to "setup" the OpenScientist AIDA implementation before compiling
    103   (then with G4ANALYSIS_USE set) and running your Geant4 application.
    104 
    105  On UNIX you setup, with a csh flavoured shell :
    106         csh> source <<OpenScientist install path>/aida-setup.csh
    107         or with a sh flavoured shell :
    108         sh> . <<OpenScientist install path>/aida-setup.sh
    109  On Windows :
    110         DOS> call <<OpenScientist install path>/aida-setup.bat
    111 
    112   You can use various file formats for writing (AIDA-XML, hbook, root).
    113   These formats are readable by the Lab onx interactive program
    114   or the OpenPAW application. See the web pages.
    115 
    116 
    117   With OpenPAW, on a run.hbook file, one can view the histograms
    118   with something like :
    119         OS> opaw
    120         opaw> h/file 1 run.hbook  ( or opaw> h/file 1 run.aida or run.root) 
    121         opaw> zone 2 2
    122         opaw> h/plot 1
    123         opaw> h/plot 2
  • trunk/examples/extended/electromagnetic/TestEm4/TestEm4.cc

    r1230 r1337  
    2525//
    2626//
    27 // $Id: TestEm4.cc,v 1.12 2007/06/22 09:55:22 maire Exp $
    28 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// $Id: TestEm4.cc,v 1.13 2010/05/19 09:19:51 maire Exp $
     28// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2929//
    3030//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
     
    3333#include "G4RunManager.hh"
    3434#include "G4UImanager.hh"
    35 #include "G4UIterminal.hh"
    36 #include "G4UItcsh.hh"
    3735#include "Randomize.hh"
    3836
     
    4745#ifdef G4VIS_USE
    4846#include "G4VisExecutive.hh"
     47#endif
     48
     49#ifdef G4UI_USE
     50#include "G4UIExecutive.hh"
    4951#endif
    5052
     
    9395     visManager->Initialize();
    9496#endif
    95    
    96      G4UIsession * session = 0;
    97 #ifdef G4UI_USE_TCSH
    98       session = new G4UIterminal(new G4UItcsh);     
    99 #else
    100       session = new G4UIterminal();
    101 #endif         
    102      UI->ApplyCommand("/control/execute vis.mac");   
    103      session->SessionStart();
    104      delete session;
     97     
     98#ifdef G4UI_USE
     99      G4UIExecutive * ui = new G4UIExecutive(argc,argv);     
     100      ui->SessionStart();
     101      delete ui;
     102#endif
    105103     
    106104#ifdef G4VIS_USE
  • trunk/examples/extended/electromagnetic/TestEm4/TestEm4.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
     
    711*************************************************************
    812
    9  Material: FluorCarbonate     density:  1.610 g/cm3   RadL:  22.435 cm   Imean:  92.428 eV
     13 Material: FluorCarbonate     density:  1.610 g/cm3   RadL:  22.435 cm   Nucl.Int.Length:  54.514 cm   Imean:  99.957 eV
    1014   --->  Element: Carbon (C)   Z =  6.0   N =  12.0   A =  12.01 g/mole  ElmMassFraction:  38.74 %  ElmAbundance  50.00 %
    1115   --->  Element: Fluorine (N)   Z =  9.0   N =  19.0   A =  18.99 g/mole  ElmMassFraction:  61.26 %  ElmAbundance  50.00 %
     
    1519/run/beamOn 100000
    1620
    17 phot:  Total cross sections from Sandia parametrisation.
    18       Sampling according PhotoElectric model
     21phot:   for  gamma    SubType= 12
     22      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
     23       PhotoElectric :     Emin=          0 eV         Emax=   10 TeV
    1924
    20 compt:  Total cross sections has a good parametrisation from 10 KeV to (100/Z) GeV
    21       Sampling according Klein-Nishina model
    22       tables are built for  gamma
    23       Lambda tables from 100 eV  to 100 GeV in 90 bins.
     25compt:   for  gamma    SubType= 13
     26      Lambda tables from 100 eV  to 10 TeV in 77 bins, spline: 1
     27      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
     28       Klein-Nishina :     Emin=          0 eV         Emax=   10 TeV
    2429
    25 conv:  Total cross sections has a good parametrisation from 1.5 MeV to 100 GeV for all Z;
    26       sampling secondary e+e- according Bethe-Heitler model
    27       tables are built for  gamma
    28       Lambda tables from 1.022 MeV to 100 GeV in 100 bins.
     30conv:   for  gamma    SubType= 14
     31      Lambda tables from 1.022 MeV to 10 TeV in 77 bins, spline: 1
     32      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
     33       Bethe-Heitler :     Emin=          0 eV         Emax=   10 TeV
    2934
    30 msc:  Model variant of multiple scattering for e-
    31       Lambda tables from 100 eV  to 100 TeV in 120 bins.
    32       LateralDisplacementFlag=  1   Skin= 0
    33       Boundary/stepping algorithm is active with RangeFactor= 0.02  Step limit type 1
     35msc:   for e-    SubType= 10
     36      Lambda tables from 100 eV  to 10 TeV in 77 bins, spline: 1
     37      RangeFactor= 0.04, stepLimitType: 1, latDisplacement: 1
     38      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
     39          UrbanMsc93 :     Emin=          0 eV         Emax=   10 TeV
    3440
    35 eIoni:   tables are built for  e-
    36       dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
    37       Lambda tables from threshold to 100 TeV in 120 bins.
    38       Delta cross sections and sampling from MollerBhabha model
    39       Good description from 1 KeV to 100 GeV.
    40       Step function: finalRange(mm)= 1, dRoverRange= 0.2, integral: 1, fluct: 1
     41eIoni:   for  e-    SubType= 2
     42      dE/dx and range tables from 100 eV  to 10 TeV in 77 bins
     43      Lambda tables from threshold to 10 TeV in 77 bins, spline: 1
     44      finalRange(mm)= 1, dRoverRange= 0.2, integral: 1, fluct: 1, linLossLimit= 0.01
     45      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
     46        MollerBhabha :     Emin=          0 eV         Emax=   10 TeV
    4147
    42 eBrem:   tables are built for  e-
    43       dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
    44       Lambda tables from threshold to 100 TeV in 120 bins.
    45       Total cross sections and sampling from StandBrem model (based on the EEDL data library)
    46       Good description from 1 KeV to 100 GeV, log scale extrapolation above 100 GeV. LPM flag 1
     48eBrem:   for  e-    SubType= 3
     49      dE/dx and range tables from 100 eV  to 10 TeV in 77 bins
     50      Lambda tables from threshold to 10 TeV in 77 bins, spline: 1
     51      LPM flag: 1 for E > 1 GeV
     52      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
     53               eBrem :     Emin=          0 eV         Emax=   1 GeV
     54            eBremRel :     Emin=          1 GeV        Emax=   10 TeV
    4755
    48 eIoni:   tables are built for  e+
    49       dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
    50       Lambda tables from threshold to 100 TeV in 120 bins.
    51       Delta cross sections and sampling from MollerBhabha model
    52       Good description from 1 KeV to 100 GeV.
    53       Step function: finalRange(mm)= 1, dRoverRange= 0.2, integral: 1, fluct: 1
     56eIoni:   for  e+    SubType= 2
     57      dE/dx and range tables from 100 eV  to 10 TeV in 77 bins
     58      Lambda tables from threshold to 10 TeV in 77 bins, spline: 1
     59      finalRange(mm)= 1, dRoverRange= 0.2, integral: 1, fluct: 1, linLossLimit= 0.01
     60      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
     61        MollerBhabha :     Emin=          0 eV         Emax=   10 TeV
    5462
    55 eBrem:   tables are built for  e+
    56       dE/dx and range tables from 100 eV  to 100 TeV in 120 bins.
    57       Lambda tables from threshold to 100 TeV in 120 bins.
    58       Total cross sections and sampling from StandBrem model (based on the EEDL data library)
    59       Good description from 1 KeV to 100 GeV, log scale extrapolation above 100 GeV. LPM flag 1
     63eBrem:   for  e+    SubType= 3
     64      dE/dx and range tables from 100 eV  to 10 TeV in 77 bins
     65      Lambda tables from threshold to 10 TeV in 77 bins, spline: 1
     66      LPM flag: 1 for E > 1 GeV
     67      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
     68               eBrem :     Emin=          0 eV         Emax=   1 GeV
     69            eBremRel :     Emin=          1 GeV        Emax=   10 TeV
    6070
    61 annihil:       Sampling according eplus2gg model
    62       tables are built for  e+
    63       Lambda tables from 100 eV  to 100 TeV in 120 bins.
     71annihil:   for  e+    SubType= 5
     72      Lambda tables from 100 eV  to 10 TeV in 77 bins, spline: 1
     73      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
     74            eplus2gg :     Emin=          0 eV         Emax=   10 TeV
    6475
    6576Region <DefaultRegionForTheWorld> -- appears in <C6F6> world volume
     
    6778 Pointers : G4VUserRegionInformation[0], G4UserLimits[0], G4FastSimulationManager[0], G4UserSteppingAction[0]
    6879 Materials : FluorCarbonate
    69  Production cuts :  gamma 1 mm     e- 1 mm     e+ 1 mm
     80 Production cuts :   gamma 1 mm      e- 1 mm      e+ 1 mm  proton 0 fm
    7081
    7182========= Table of registered couples ==============================
     
    7384Index : 0     used in the geometry : Yes     recalculation needed : No
    7485 Material : FluorCarbonate
    75  Range cuts        :  gamma 1 mm     e- 1 mm     e+ 1 mm
    76  Energy thresholds :  gamma 3.62751 keV    e- 427.947 keV    e+ 412.431 keV
     86 Range cuts        :  gamma  1 mm     e-  1 mm     e+  1 mm  proton 0 fm
     87 Energy thresholds :  gamma  3.64604 keV    e-  433.376 keV    e+  419.056 keV proton -1 MeV
    7788 Region(s) which use this couple :
    7889    DefaultRegionForTheWorld
     
    115126Run Summary
    116127  Number of events processed : 100000
    117   User=8.45s Real=245.81s Sys=22.45s
     128  User=3.77s Real=9.59s Sys=2.61s
    118129
    119130--------- Ranecu engine status ---------
    120131 Initial seed (index) = 0
    121  Current couple of seeds = 1729327149, 131462997
     132 Current couple of seeds = 1605911312, 1952694419
    122133----------------------------------------
    123134UserDetectorConstruction deleted.
     
    127138G4 kernel has come to Quit state.
    128139EventManager deleted.
    129 Default detector region deleted.
    130140UImanager deleted.
    131141Units table cleared.
     
    133143RunManagerKernel is deleted.
    134144RunManager is deleting.
     145
  • trunk/examples/extended/electromagnetic/TestEm4/include/DetectorConstruction.hh

    r1230 r1337  
    2626//
    2727// $Id: DetectorConstruction.hh,v 1.3 2006/06/29 16:53:31 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     28// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2929//
    3030
  • trunk/examples/extended/electromagnetic/TestEm4/include/EventAction.hh

    r1230 r1337  
    2626//
    2727// $Id: EventAction.hh,v 1.2 2006/06/29 16:53:33 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     28// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2929//
    3030//
  • trunk/examples/extended/electromagnetic/TestEm4/include/EventActionMessenger.hh

    r1230 r1337  
    2626//
    2727// $Id: EventActionMessenger.hh,v 1.3 2006/06/29 16:53:35 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     28// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2929//
    3030
  • trunk/examples/extended/electromagnetic/TestEm4/include/PhysicsList.hh

    r1230 r1337  
    2626//
    2727// $Id: PhysicsList.hh,v 1.2 2006/06/29 16:53:37 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     28// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2929//
    3030//
  • trunk/examples/extended/electromagnetic/TestEm4/include/PrimaryGeneratorAction.hh

    r1230 r1337  
    2626//
    2727// $Id: PrimaryGeneratorAction.hh,v 1.2 2006/06/29 16:53:40 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     28// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2929//
    3030//
  • trunk/examples/extended/electromagnetic/TestEm4/include/RunAction.hh

    r1230 r1337  
    2525//
    2626// $Id: RunAction.hh,v 1.7 2006/06/29 16:53:43 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/TestEm4/include/SteppingAction.hh

    r1230 r1337  
    2626//
    2727// $Id: SteppingAction.hh,v 1.2 2006/06/29 16:53:45 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     28// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2929//
    3030//
  • trunk/examples/extended/electromagnetic/TestEm4/include/SteppingVerbose.hh

    r1230 r1337  
    2626//
    2727// $Id: SteppingVerbose.hh,v 1.2 2006/06/29 16:53:48 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     28// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2929//
    3030//   This class manages the verbose outputs in G4SteppingManager.
  • trunk/examples/extended/electromagnetic/TestEm4/src/DetectorConstruction.cc

    r1230 r1337  
    2626//
    2727// $Id: DetectorConstruction.cc,v 1.3 2006/06/29 16:53:51 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     28// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2929//
    3030
  • trunk/examples/extended/electromagnetic/TestEm4/src/EventAction.cc

    r1230 r1337  
    2424// ********************************************************************
    2525//
    26 // $Id: EventAction.cc,v 1.7 2006/06/29 16:53:57 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     26// $Id: EventAction.cc,v 1.9 2010/06/07 05:40:46 perl Exp $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
     
    3636
    3737#include "G4Event.hh"
    38 #include "G4TrajectoryContainer.hh"
    39 #include "G4Trajectory.hh"
    40 #include "G4VVisManager.hh"
    4138#include "G4UnitsTable.hh"
    4239
     
    7673//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
    7774
    78 void EventAction::EndOfEventAction( const G4Event* evt)
     75void EventAction::EndOfEventAction( const G4Event*)
    7976{                       
    8077  if (drawFlag != "none")
     
    8582  Run->GetHisto(0)->fill(TotalEnergyDeposit/MeV);
    8683#endif
    87 
    88   // draw trajectories
    89   if(G4VVisManager::GetConcreteInstance())
    90   {
    91    G4TrajectoryContainer* trajectoryContainer = evt->GetTrajectoryContainer();
    92    G4int n_trajectories = 0;
    93    if (trajectoryContainer) n_trajectories = trajectoryContainer->entries(); 
    94    for(G4int i=0; i<n_trajectories; i++)
    95       { G4Trajectory* trj = (G4Trajectory *)
    96                                       ((*(evt->GetTrajectoryContainer()))[i]);
    97         if (drawFlag == "all") trj->DrawTrajectory(1000);
    98         else if ((drawFlag == "charged")&&(trj->GetCharge() != 0.))
    99                                trj->DrawTrajectory(1000);
    100       }
    101   }
    10284}
    10385
  • trunk/examples/extended/electromagnetic/TestEm4/src/EventActionMessenger.cc

    r1230 r1337  
    2626//
    2727// $Id: EventActionMessenger.cc,v 1.3 2006/06/29 16:54:15 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     28// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2929//
    3030//
  • trunk/examples/extended/electromagnetic/TestEm4/src/PhysicsList.cc

    r1230 r1337  
    2626//
    2727// $Id: PhysicsList.cc,v 1.7 2008/04/07 13:09:43 maire Exp $
    28 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     28// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2929//
    3030
  • trunk/examples/extended/electromagnetic/TestEm4/src/PrimaryGeneratorAction.cc

    r1230 r1337  
    2626//
    2727// $Id: PrimaryGeneratorAction.cc,v 1.3 2006/06/29 16:54:19 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     28// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2929//
    3030//
  • trunk/examples/extended/electromagnetic/TestEm4/src/RunAction.cc

    r1230 r1337  
    2525//
    2626// $Id: RunAction.cc,v 1.11 2008/09/12 18:46:14 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/TestEm4/src/SteppingAction.cc

    r1230 r1337  
    2626//
    2727// $Id: SteppingAction.cc,v 1.2 2006/06/29 16:54:23 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     28// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2929//
    3030//
  • trunk/examples/extended/electromagnetic/TestEm4/src/SteppingVerbose.cc

    r1230 r1337  
    2626//
    2727// $Id: SteppingVerbose.cc,v 1.2 2006/06/29 16:54:26 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     28// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2929//
    3030//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm4/vis.mac

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