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/parameterisations/gflash
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/extended/parameterisations/gflash/ExGflash.cc

    r807 r1337  
    4949
    5050#ifdef G4VIS_USE
    51 #include "ExGflashVisManager.hh"
     51#include "G4VisExecutive.hh"
    5252#endif
    5353
     
    8686        runManager->SetUserAction(new ExGflashRunAction);
    8787       
    88         #ifdef G4VIS_USE
    89         G4VisManager* visManager = new ExGflashVisManager;
     88#ifdef G4VIS_USE
     89        G4VisManager* visManager = new G4VisExecutive;
    9090        visManager->Initialize();
    91         #endif
     91#endif   
    9292       
    9393        G4UImanager* UI = G4UImanager::GetUIpointer();
  • trunk/examples/extended/parameterisations/gflash/History

    r807 r1337  
    1 $Id: History,v 1.4 2007/05/18 15:22:01 mverderi Exp $
     1$Id: History,v 1.5 2010/06/06 05:09:17 perl Exp $
    22-------------------------------------------------------------------
    33
     
    1818     ----------------------------------------------------------
    1919
     20June 4, 2010, J.Perl (exgflash-V09-03-00)
     21- Update vis usage
     22
    2023May 18, 2007, M. Verderi (exgflash-V08-03-00)
    2124- ExGflashPhysicsList.cc : the fast simulation process is now a discrete process
  • trunk/examples/extended/parameterisations/gflash/src/ExGflashEventAction.cc

    r807 r1337  
    3131#include "G4EventManager.hh"
    3232#include "G4SDManager.hh"
    33 #include "G4TrajectoryContainer.hh"
    34 #include "G4Trajectory.hh"
    35 #include "G4VVisManager.hh"
    3633#include "G4UImanager.hh"
    3734#include "G4TrajectoryContainer.hh"
    38 #include "G4VVisManager.hh"
    3935#include "G4Event.hh"
    4036//std
     
    166162        if(trajectoryContainer){ n_trajectories = trajectoryContainer->entries(); }
    167163        G4cout << "    " << n_trajectories  << " trajectories stored in this event." << endl;
    168         G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
    169        
    170         if(pVVisManager)
    171         {
    172                 cout << "DRAWING " <<n_trajectories << endl;
    173                 for(G4int i=0; i<n_trajectories; i++) { (*(evt->GetTrajectoryContainer()))[i]->DrawTrajectory(50); }
    174         }
    175        
    176164}
    177165
  • trunk/examples/extended/parameterisations/gflash/vis.mac

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