Import Geant4 3.0.0 source tree
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.1 1999/01/07 16:05:51 gunter Exp $
|
||||
# $Id: GNUmakefile,v 1.2 2000/10/19 12:22:10 stanaka Exp $
|
||||
# --------------------------------------------------------------
|
||||
# GNUmakefile for examples module. Gabriele Cosmo, 06/04/98.
|
||||
# --------------------------------------------------------------
|
||||
@@ -15,3 +15,8 @@ endif
|
||||
all: lib bin
|
||||
|
||||
include $(G4INSTALL)/config/binmake.gmk
|
||||
|
||||
visclean:
|
||||
rm -f g4*.prim g4*.eps g4*.wrl
|
||||
rm -f .DAWN_*
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
$Id: History,v 1.23 2000/06/17 12:28:17 stesting Exp $
|
||||
$Id: History,v 1.32 2000/11/27 02:58:04 stanaka Exp $
|
||||
--------------------------------------------------
|
||||
|
||||
=========================================================
|
||||
@@ -15,6 +15,51 @@ track of all tags.
|
||||
* Reverse chronological order (last date on top), please *
|
||||
----------------------------------------------------------
|
||||
|
||||
21-11-27, Satoshi Tanake (exampleN03-V02-00-04)
|
||||
- The macro initInter.mac (by Michel) is revised.
|
||||
1) The command "/vis/scene/create" is removed,
|
||||
since it is already included in "/vis/drawVolume".
|
||||
2) /vis/viewer/update is added, since it becomes necessary
|
||||
when the OpenGL driver is switched to another driver.
|
||||
- In visTutor/exN03Vis5,6.mac (by Guy)
|
||||
"/vis/include/trajectories" is renamed into
|
||||
"/vis/scene/add/trajectories" and also commented out.
|
||||
(All other "/vis/scene/add/trajectories"'s are already commented out
|
||||
by Michel, since the C++ method DrawTrajectory() is now described
|
||||
in the event action.
|
||||
- Unnecessary "/vis/scene/create" are removed from
|
||||
visTutor/exN03VisX.mac when it is already included in
|
||||
"/vis/drawVolume" or "/vis/specify".
|
||||
- The command /vis/camera/viewpoint is removed from visTutor/exN03Vis0.mac
|
||||
in order to avoid crushing in reading it in execution of
|
||||
the G4 executable: $(G4BINDIR)/exampleN03 exN03Vis0.mac .
|
||||
- Comments updated in visTutor/exN03VisX.mac.
|
||||
|
||||
|
||||
25th November 2000 Steve O'Neale (tagset210)
|
||||
- Update test outputs for min.delta energy cut
|
||||
- Update test outputs for energy cut table only for e- and gamma
|
||||
- Update test outputs for new tags in em processes.
|
||||
Note we skip round work in progress
|
||||
|
||||
21-11-00, mma (exampleN03-V02-00-02)
|
||||
- introduce G4UItcsh in exampleN03.cc
|
||||
- put all vis macros in a new subdirectory visTutor
|
||||
- prerunN03 simplified (compound vis commands) and renamed initInter.mac
|
||||
- code to control the drawing of tracks reinstalled in eventAction
|
||||
- bug corrected in PhysicsList::GetCutForProton()
|
||||
- PrimaryGenerator : default particle e- 50 MeV
|
||||
|
||||
October 19, 2000 Satoshi Tanaka (exampleN03-V02-00-01)
|
||||
- Updated exN03Vis0-4.mac, incorporating recent development
|
||||
of vis commands
|
||||
- Updated format of comments in exN03Vis0-4.mac.
|
||||
- Created exN03Vis7.mac: demo of the VRMLFILE driver
|
||||
- Created exN03Vis8.mac: demo of multi-page PS file generation
|
||||
|
||||
June 24, 2000 John Allison (exampleN03-V01-01-09)
|
||||
- Updated exampleN03.out for stand-V01-01-05 and utils-V01-01-03.
|
||||
|
||||
June 17, 2000 John Allison (exampleN03-V01-01-08)
|
||||
- Updated exampleN03.out for geant4-01-01-ref-06.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
$Id: README,v 1.4 1999/09/14 02:34:09 stanaka Exp $
|
||||
$Id: README,v 1.6 2000/11/21 11:43:31 maire Exp $
|
||||
-------------------------------------------------------------------
|
||||
|
||||
=========================================================
|
||||
@@ -74,16 +74,16 @@ $Id: README,v 1.4 1999/09/14 02:34:09 stanaka Exp $
|
||||
4- VISUALIZATION
|
||||
|
||||
The Visualization Manager is set in the main().
|
||||
The initialisation of the drawing is done via the command
|
||||
a set of /vis commands in the macro prerunN03.mac. This macro is
|
||||
automatically read from the main in case of interactive running mode.
|
||||
The initialisation of the drawing is done via a set of /vis commands
|
||||
in the macro initInter.mac. This macro is automatically read from
|
||||
the main in case of interactive running mode.
|
||||
|
||||
The detector has a default view which is a longitudinal view of the
|
||||
calorimeter.
|
||||
|
||||
The tracks are drawn at the end of event, and erased at the end of run.
|
||||
Optionaly one can choose to draw all particles, only the charged one,
|
||||
or none. This command is defined in EventActionMessenger class.
|
||||
Optionaly one can choose to draw all particles, only the charged,
|
||||
or neutral or none. This command is defined in EventActionMessenger class.
|
||||
|
||||
NB 1: the visualization (with OpenGL driver) assumes two things:
|
||||
1- the visualisation & interfaces categories have been compiled
|
||||
@@ -95,9 +95,10 @@ $Id: README,v 1.4 1999/09/14 02:34:09 stanaka Exp $
|
||||
with the environment variable G4VIS_BUILD_DAWNFILE_DRIVER.
|
||||
2- exampleN03.cc has been compiled with G4VIS_USE_DAWNFILE.
|
||||
|
||||
NN 3: The macros "exN03VisX.mac" are tutorial macros for
|
||||
NN 3: The macros "visTutor/exN03VisX.mac" are tutorial macros for
|
||||
visualization. They can be tried as:
|
||||
% $G4BINDIR/exampleN03 exN03VisX.mac
|
||||
% $G4BINDIR/exampleN03
|
||||
idle > /control/execute visTutor/exN03VisX.mac
|
||||
For details, see comment lines described in the macro files.
|
||||
These macros are designed to help your understanding the
|
||||
User's Guide.
|
||||
@@ -107,7 +108,8 @@ $Id: README,v 1.4 1999/09/14 02:34:09 stanaka Exp $
|
||||
The particle's type and the physic processes which will be available
|
||||
in this example are set in PhysicsList class.
|
||||
|
||||
In addition a build-in interactive command (/process/inactivate proname)
|
||||
In addition the build-in interactive command:
|
||||
/process/(in)activate processName
|
||||
allows to activate/inactivate the processes one by one.
|
||||
Then one can well visualize the processes one by one, especially
|
||||
in the bubble chamber setup with a transverse magnetic field.
|
||||
@@ -119,6 +121,8 @@ $Id: README,v 1.4 1999/09/14 02:34:09 stanaka Exp $
|
||||
|
||||
The default command interface, called G4UIterminal, is done via
|
||||
standart cin/G4cout.
|
||||
On Linux and Sun-cc on can use a smarter command interface G4UItcsh.
|
||||
It is enough to set the environment variable G4UI_USE_TCSH
|
||||
|
||||
On can use a Motif driven command interface (called G4UIXm) if:
|
||||
1- interfaces category has been compiled with G4UI_BUILD_XM_SESSION
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: exampleN03.cc,v 1.12 2000/06/14 09:10:57 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// $Id: exampleN03.cc,v 1.13 2000/11/21 10:59:41 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "G4RunManager.hh"
|
||||
#include "G4UImanager.hh"
|
||||
#include "G4UIterminal.hh"
|
||||
#include "G4UItcsh.hh"
|
||||
|
||||
#ifdef G4UI_USE_XM
|
||||
#include "G4UIXm.hh"
|
||||
@@ -64,8 +65,12 @@ int main(int argc,char** argv) {
|
||||
// G4UIterminal is a (dumb) terminal.
|
||||
#ifdef G4UI_USE_XM
|
||||
session = new G4UIXm(argc,argv);
|
||||
#else
|
||||
#ifdef G4UI_USE_TCSH
|
||||
session = new G4UIterminal(new G4UItcsh);
|
||||
#else
|
||||
session = new G4UIterminal;
|
||||
session = new G4UIterminal();
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -90,7 +95,7 @@ int main(int argc,char** argv) {
|
||||
if (session) // Define UI session for interactive mode.
|
||||
{
|
||||
// G4UIterminal is a (dumb) terminal.
|
||||
UI->ApplyCommand("/control/execute prerunN03.mac");
|
||||
UI->ApplyCommand("/control/execute initInter.mac");
|
||||
#ifdef G4UI_USE_XM
|
||||
// Customize the G4UIXm menubar with a macro file :
|
||||
UI->ApplyCommand("/control/execute gui.mac");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
**********************************************
|
||||
Geant4 version $Name: geant4-02-00 $
|
||||
(10-Mar-2000)
|
||||
Geant4 version $Name: geant4-03-00 $
|
||||
(30-Jun-2000)
|
||||
Copyright : Geant4 Collaboration
|
||||
**********************************************
|
||||
|
||||
@@ -87,21 +87,22 @@ eIoni: delta cross sections from Moller+Bhabha. Good description from 1 KeV to
|
||||
|
||||
material min.delta energy(keV)
|
||||
|
||||
Aluminium 125.07
|
||||
liquidArgon 78.381
|
||||
Copper 238.3
|
||||
Lead 229.66
|
||||
Water 81.518
|
||||
Scintillator 82.869
|
||||
quartz 115.31
|
||||
Aluminium 125.06
|
||||
liquidArgon 78.362
|
||||
Copper 238.25
|
||||
Lead 229.55
|
||||
Water 81.507
|
||||
Scintillator 82.859
|
||||
quartz 115.29
|
||||
Air 0.99
|
||||
Aerogel 30.103
|
||||
CarbonicGas 9.4284
|
||||
Aerogel 30.097
|
||||
CarbonicGas 9.427
|
||||
WaterSteam 0.99
|
||||
Galactic 0.99
|
||||
Beam 0.99
|
||||
|
||||
eBrem: Total cross sections from a parametrisation. Good description from 10 KeV to 100 GeV.
|
||||
eBrem: Total cross sections from a NEW parametrisation based on the EEDL data library.
|
||||
Good description from 1 KeV to 100 GeV.
|
||||
log scale extrapolation above 100 GeV
|
||||
Gamma energy sampled from a parametrised formula.
|
||||
PhysicsTables from 1 keV to 100 TeV in 100 bins.
|
||||
@@ -114,16 +115,16 @@ annihil: Total cross section from Heilter formula (annihilation into 2 photons)
|
||||
|
||||
material min.delta energy(keV)
|
||||
|
||||
Aluminium 125.07
|
||||
liquidArgon 78.381
|
||||
Copper 238.3
|
||||
Lead 229.66
|
||||
Water 81.518
|
||||
Scintillator 82.869
|
||||
quartz 115.31
|
||||
Aluminium 125.06
|
||||
liquidArgon 78.362
|
||||
Copper 238.25
|
||||
Lead 229.55
|
||||
Water 81.507
|
||||
Scintillator 82.859
|
||||
quartz 115.29
|
||||
Air 0.99
|
||||
Aerogel 30.103
|
||||
CarbonicGas 9.4284
|
||||
Aerogel 30.097
|
||||
CarbonicGas 9.427
|
||||
WaterSteam 0.99
|
||||
Galactic 0.99
|
||||
Beam 0.99
|
||||
@@ -156,22 +157,22 @@ MuPairProd: theoretical cross sections
|
||||
Good description up to 1000 PeV.
|
||||
PhysicsTables from 1 keV to 1000 PeV in 150 bins.
|
||||
============= The cut Energy ==============================
|
||||
gamma e- mu- proton neutron
|
||||
Cut in range 1 mm 1 mm 1 mm 1 mm 1 mm
|
||||
gamma e-
|
||||
Cut in range 1 mm 1 mm
|
||||
Cut in energy
|
||||
Aluminium 6.89 keV 597 keV 5.02 MeV 13.1 MeV 990 eV
|
||||
liquidArgon 6.18 keV 343 keV 3.24 MeV 8.32 MeV 990 eV
|
||||
Copper 24.6 keV 1.4 MeV 8.95 MeV 23 MeV 990 eV
|
||||
Lead 101 keV 1.38 MeV 8.52 MeV 20.9 MeV 990 eV
|
||||
Water 2.9 keV 347 keV 3.39 MeV 8.95 MeV 990 eV
|
||||
Scintillator 2.37 keV 356 keV 3.43 MeV 9.06 MeV 990 eV
|
||||
quartz 5.52 keV 534 keV 4.66 MeV 12.2 MeV 990 eV
|
||||
Air 990 eV 990 eV 48.4 keV 83.2 keV 990 eV
|
||||
Aerogel 1.71 keV 119 keV 1.28 MeV 3.18 MeV 990 eV
|
||||
CarbonicGas 990 eV 36.5 keV 393 keV 853 keV 990 eV
|
||||
WaterSteam 990 eV 990 eV 11.9 keV 14.9 keV 990 eV
|
||||
Galactic 990 eV 990 eV 990 eV 990 eV 990 eV
|
||||
Beam 990 eV 990 eV 990 eV 990 eV 990 eV
|
||||
Aluminium 6.89 keV 597 keV
|
||||
liquidArgon 6.18 keV 343 keV
|
||||
Copper 24.6 keV 1.4 MeV
|
||||
Lead 101 keV 1.38 MeV
|
||||
Water 2.9 keV 347 keV
|
||||
Scintillator 2.37 keV 356 keV
|
||||
quartz 5.52 keV 534 keV
|
||||
Air 990 eV 990 eV
|
||||
Aerogel 1.71 keV 119 keV
|
||||
CarbonicGas 990 eV 36.5 keV
|
||||
WaterSteam 990 eV 990 eV
|
||||
Galactic 990 eV 990 eV
|
||||
Beam 990 eV 990 eV
|
||||
===================================================
|
||||
# e+ 300MeV
|
||||
### Run 0 start.
|
||||
@@ -183,10 +184,10 @@ Cut in energy
|
||||
Current couple of seeds = 9876, 54321
|
||||
----------------------------------------
|
||||
---> End of event: 0
|
||||
Absorber: total energy: 278.67 MeV total track length: 17.078 cm
|
||||
Gap: total energy: 12.938 MeV total track length: 6.3775 cm
|
||||
Absorber: total energy: 273.44 MeV total track length: 16.757 cm
|
||||
Gap: total energy: 17.368 MeV total track length: 9.3656 cm
|
||||
|
||||
9 hits are stored in ExN03CalorHitsCollection.
|
||||
8 hits are stored in ExN03CalorHitsCollection.
|
||||
#
|
||||
# list the existing physics processes
|
||||
Transportation, hIoni, msc, eIoni
|
||||
@@ -201,11 +202,11 @@ Cut in energy
|
||||
|
||||
--------- Ranecu engine status ---------
|
||||
Initial seed (index) = 0
|
||||
Current couple of seeds = 1105568778, 682814057
|
||||
Current couple of seeds = 1102932771, 1917444181
|
||||
----------------------------------------
|
||||
---> End of event: 0
|
||||
Absorber: total energy: 276.15 MeV total track length: 15.41 cm
|
||||
Gap: total energy: 21.932 MeV total track length: 11.454 cm
|
||||
Absorber: total energy: 271.92 MeV total track length: 15.041 cm
|
||||
Gap: total energy: 19.422 MeV total track length: 9.2045 cm
|
||||
|
||||
10 hits are stored in ExN03CalorHitsCollection.
|
||||
#
|
||||
@@ -230,10 +231,10 @@ Cut in energy
|
||||
|
||||
--------- Ranecu engine status ---------
|
||||
Initial seed (index) = 0
|
||||
Current couple of seeds = 656008347, 35818481
|
||||
Current couple of seeds = 1963963117, 1351553931
|
||||
----------------------------------------
|
||||
---> End of event: 0
|
||||
Absorber: total energy: 347.62 MeV total track length: 78.847 cm
|
||||
Gap: total energy: 79.849 MeV total track length: 2.2713 m
|
||||
Absorber: total energy: 337.86 MeV total track length: 77.616 cm
|
||||
Gap: total energy: 64.609 MeV total track length: 1.801 m
|
||||
|
||||
28 hits are stored in ExN03CalorHitsCollection.
|
||||
21 hits are stored in ExN03CalorHitsCollection.
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN03CalorHit.hh,v 1.2 1999/12/15 14:49:22 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN03CalorimeterSD.hh,v 1.2 1999/12/15 14:49:23 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN03DetectorConstruction.hh,v 1.2 1999/12/15 14:49:23 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN03DetectorMessenger.hh,v 1.2 1999/12/15 14:49:23 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN03EventAction.hh,v 1.4 1999/12/15 14:49:24 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN03EventActionMessenger.hh,v 1.3 1999/12/15 14:49:24 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN03PhysicsList.hh,v 1.6 2000/06/05 09:54:37 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN03PrimaryGeneratorAction.hh,v 1.2 1999/12/15 14:49:24 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN03PrimaryGeneratorMessenger.hh,v 1.2 1999/12/15 14:49:24 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN03RunAction.hh,v 1.4 1999/12/15 14:49:24 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN03SteppingAction.hh,v 1.3 1999/12/15 14:49:24 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// $Id: ExN03SteppingAction.hh,v 1.4 2000/12/05 14:52:48 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -24,9 +24,9 @@ class ExN03SteppingAction : public G4UserSteppingAction
|
||||
{
|
||||
public:
|
||||
ExN03SteppingAction();
|
||||
virtual ~ExN03SteppingAction();
|
||||
~ExN03SteppingAction();
|
||||
|
||||
virtual void UserSteppingAction(const G4Step*);
|
||||
void UserSteppingAction(const G4Step*);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN03SteppingVerbose.hh,v 1.3 2000/02/28 18:09:58 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN03VisManager.hh,v 1.3 1999/12/15 14:49:25 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
#
|
||||
# Macro file for the initialization phase of "exampleN03.cc"
|
||||
# when runing in interactive mode
|
||||
#
|
||||
# Sets some default verbose
|
||||
#
|
||||
/control/verbose 2
|
||||
/control/saveHistory
|
||||
/run/verbose 2
|
||||
#
|
||||
# create empty scene
|
||||
#
|
||||
/vis/scene/create
|
||||
#
|
||||
# Create a scene handler for a specific graphics system
|
||||
# (Edit the next line(s) to choose another graphic system)
|
||||
#
|
||||
/vis/open OGLIX
|
||||
#/vis/open DAWNFILE
|
||||
#
|
||||
# draw scene
|
||||
#
|
||||
/vis/drawVolume
|
||||
/vis/viewer/update
|
||||
#
|
||||
# for drawing the tracks
|
||||
# (if too many tracks cause core dump => storeTrajectory 0)
|
||||
/tracking/storeTrajectory 1
|
||||
@@ -20,7 +20,8 @@
|
||||
#
|
||||
/calor/update
|
||||
#
|
||||
/calor/setField 5 tesla
|
||||
/calor/setField 3 tesla
|
||||
#
|
||||
/vis/camera/zoom 1.3
|
||||
/vis/drawVolume
|
||||
/vis/scene/add/trajectories
|
||||
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
#
|
||||
# Macro file for the initialization phase of "exampleN03.cc"
|
||||
#
|
||||
# Sets some default verbose
|
||||
# and initializes the graphic.
|
||||
#
|
||||
/control/verbose 2
|
||||
/control/saveHistory
|
||||
/run/verbose 2
|
||||
#
|
||||
# Create empty scene ("world" is default)
|
||||
/vis/scene/create
|
||||
#
|
||||
# Add volume to scene
|
||||
/vis/scene/add/volume
|
||||
#
|
||||
# Create a scene handler for a specific graphics system
|
||||
# Edit the next line(s) to choose another graphic system
|
||||
#
|
||||
#/vis/sceneHandler/create DAWNFILE
|
||||
/vis/sceneHandler/create OGLIX
|
||||
#
|
||||
# Create a viewer
|
||||
/vis/viewer/create
|
||||
#
|
||||
# Draw scene
|
||||
/vis/scene/notifyHandlers
|
||||
#
|
||||
# for drawing the tracks
|
||||
# if too many tracks cause core dump => storeTrajectory 0
|
||||
/tracking/storeTrajectory 1
|
||||
/vis/scene/add/trajectories
|
||||
#
|
||||
# Flush visualization
|
||||
/vis/viewer/update
|
||||
@@ -1,8 +1,9 @@
|
||||
# $Id: run1.mac,v 1.1 1999/01/07 16:05:53 gunter Exp $
|
||||
# $Id: run1.mac,v 1.2 2000/11/21 10:59:42 maire Exp $
|
||||
#
|
||||
# Macro file for "exampleN03.cc"
|
||||
#
|
||||
# (can be run in batch, without graphic)
|
||||
# can be run in batch, without graphic
|
||||
# or interactively: Idle> /control/execute run1.mac
|
||||
#
|
||||
/control/verbose 2
|
||||
/control/saveHistory
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
# $Id: run2.mac,v 1.4 2000/06/05 09:54:36 maire Exp $
|
||||
# $Id: run2.mac,v 1.5 2000/11/21 10:59:43 maire Exp $
|
||||
#
|
||||
# Macro file of "exampleN03.cc"
|
||||
#
|
||||
# (in iteractive it must be executed after initialization)
|
||||
# (otherwise type: /control/execute prerunN03.mac)
|
||||
# (graphic needed: OpenGL or Mesa)
|
||||
# can be run in batch, without graphic
|
||||
# or interactively: Idle> /control/execute run2.mac
|
||||
#
|
||||
/control/verbose 2
|
||||
#
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN03CalorHit.cc,v 1.2 1999/12/15 14:49:25 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN03CalorimeterSD.cc,v 1.3 1999/12/15 14:49:25 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN03DetectorConstruction.cc,v 1.4 1999/12/15 14:49:25 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN03DetectorMessenger.cc,v 1.3 1999/12/15 14:49:25 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN03EventAction.cc,v 1.10 2000/06/05 09:54:37 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// $Id: ExN03EventAction.cc,v 1.11 2000/11/21 10:59:44 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#include "G4UImanager.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4UnitsTable.hh"
|
||||
#include "Randomize.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
@@ -73,6 +72,9 @@ void ExN03EventAction::BeginOfEventAction(const G4Event* evt)
|
||||
void ExN03EventAction::EndOfEventAction(const G4Event* evt)
|
||||
{
|
||||
G4int evtNb = evt->GetEventID();
|
||||
|
||||
// extracted from hits, compute the total energy deposit (and total charged
|
||||
// track length) in all absorbers and in all gaps
|
||||
|
||||
G4HCofThisEvent* HCE = evt->GetHCofThisEvent();
|
||||
ExN03CalorHitsCollection* CHC = NULL;
|
||||
@@ -91,7 +93,9 @@ void ExN03EventAction::EndOfEventAction(const G4Event* evt)
|
||||
totEGap += (*CHC)[i]->GetEdepGap();
|
||||
totLGap += (*CHC)[i]->GetTrakGap();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// print this information event by event (modulo n)
|
||||
|
||||
if (evtNb%printModulo == 0) {
|
||||
G4cout << "---> End of event: " << evtNb << G4endl;
|
||||
@@ -106,7 +110,25 @@ void ExN03EventAction::EndOfEventAction(const G4Event* evt)
|
||||
|
||||
G4cout << "\n " << n_hit
|
||||
<< " hits are stored in ExN03CalorHitsCollection." << G4endl;
|
||||
}
|
||||
}
|
||||
|
||||
// extract the trajectories and draw them
|
||||
|
||||
if (G4VVisManager::GetConcreteInstance())
|
||||
{
|
||||
G4TrajectoryContainer * trajectoryContainer = evt->GetTrajectoryContainer();
|
||||
G4int n_trajectories = 0;
|
||||
if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();
|
||||
|
||||
for (G4int i=0; i<n_trajectories; i++)
|
||||
{ G4Trajectory* trj = (G4Trajectory*)((*(evt->GetTrajectoryContainer()))[i]);
|
||||
if (drawFlag == "all") trj->DrawTrajectory(50);
|
||||
else if ((drawFlag == "charged")&&(trj->GetCharge() != 0.))
|
||||
trj->DrawTrajectory(50);
|
||||
else if ((drawFlag == "neutral")&&(trj->GetCharge() == 0.))
|
||||
trj->DrawTrajectory(50);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN03EventActionMessenger.cc,v 1.3 1999/12/15 14:49:25 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// $Id: ExN03EventActionMessenger.cc,v 1.4 2000/11/21 10:59:44 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -27,10 +27,10 @@ ExN03EventActionMessenger::ExN03EventActionMessenger(ExN03EventAction* EvAct)
|
||||
{
|
||||
DrawCmd = new G4UIcmdWithAString("/event/drawTracks",this);
|
||||
DrawCmd->SetGuidance("Draw the tracks in the event");
|
||||
DrawCmd->SetGuidance(" Choice : none, charged(default), all");
|
||||
DrawCmd->SetGuidance(" Choice : none, charged(default),neutral, all");
|
||||
DrawCmd->SetParameterName("choice",true);
|
||||
DrawCmd->SetDefaultValue("charged");
|
||||
DrawCmd->SetCandidates("none charged all");
|
||||
DrawCmd->SetDefaultValue("all");
|
||||
DrawCmd->SetCandidates("none charged neutral all");
|
||||
DrawCmd->AvailableForStates(Idle);
|
||||
|
||||
PrintCmd = new G4UIcmdWithAnInteger("/event/printModulo",this);
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN03PhysicsList.cc,v 1.8 2000/05/24 09:53:05 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// $Id: ExN03PhysicsList.cc,v 1.9 2000/11/10 19:41:01 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -339,7 +339,7 @@ G4double ExN03PhysicsList::GetCutForElectron() const
|
||||
|
||||
G4double ExN03PhysicsList::GetCutForProton() const
|
||||
{
|
||||
return cutForGamma;
|
||||
return cutForProton;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN03PrimaryGeneratorAction.cc,v 1.2 1999/12/15 14:49:25 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// $Id: ExN03PrimaryGeneratorAction.cc,v 1.3 2000/11/21 10:59:45 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -44,7 +44,7 @@ ExN03PrimaryGeneratorAction::ExN03PrimaryGeneratorAction(
|
||||
= particleTable->FindParticle(particleName="e-");
|
||||
particleGun->SetParticleDefinition(particle);
|
||||
particleGun->SetParticleMomentumDirection(G4ThreeVector(1.,0.,0.));
|
||||
particleGun->SetParticleEnergy(30.*MeV);
|
||||
particleGun->SetParticleEnergy(50.*MeV);
|
||||
G4double position = -0.5*(ExN03Detector->GetWorldSizeX());
|
||||
particleGun->SetParticlePosition(G4ThreeVector(position,0.*cm,0.*cm));
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN03PrimaryGeneratorMessenger.cc,v 1.3 1999/12/15 14:49:25 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN03RunAction.cc,v 1.7 1999/12/15 14:49:26 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN03SteppingAction.cc,v 1.3 1999/12/15 14:49:26 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN03SteppingVerbose.cc,v 1.3 2000/02/28 18:10:15 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN03VisManager.cc,v 1.4 2000/06/29 07:16:21 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 24th January 1998.
|
||||
|
||||
@@ -6,21 +6,24 @@
|
||||
# DATE: November 10, 1999 #
|
||||
# May 20, 2000 #
|
||||
# June 06, 2000 #
|
||||
# October 17, 2000 #
|
||||
# November 26, 2000 #
|
||||
# #
|
||||
# CONTENTS: A simplest macro to demonstrate visualization of #
|
||||
# detector geometry and events #
|
||||
# #
|
||||
# USAGE: % $G4BINDIR/exampleN03 #
|
||||
# Idle> /control/execute exN03Vis0.mac #
|
||||
# USAGE: % gmake visclean #
|
||||
# % $G4BINDIR/exampleN03 #
|
||||
# Idle> /control/execute visTutor/exN03Vis0.mac #
|
||||
# #
|
||||
# REQUIRED PLATFORMS & SOFTWARES: Unix, X-window, OpenGL, #
|
||||
# DAWN (version 3.80 or after) #
|
||||
# DAWN (version 3.85 or after) #
|
||||
# gv (Ghostview), Tcl/Tk #
|
||||
# #
|
||||
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION: #
|
||||
# (See geant4/source/visualization/README for details.) #
|
||||
# #
|
||||
# % setenv OGLHOME ... (e.g. /usr/local) #
|
||||
# % setenv OGLHOME ... (e.g. /usr/X11R6) #
|
||||
# % setenv G4VIS_BUILD_OPENGLX_DRIVER 1 #
|
||||
# % setenv G4VIS_BUILD_DAWNFILE_DRIVER 1 #
|
||||
# #
|
||||
@@ -30,7 +33,7 @@
|
||||
# % setenv G4VIS_USE_OPENGLX 1 #
|
||||
# % setenv G4VIS_USE_DAWNFILE 1 #
|
||||
# #
|
||||
# Addional Notes: #
|
||||
# ADDITIONAL NOTES: #
|
||||
# The compound command "/vis/open <graphics-system-name>" #
|
||||
# is equivalent to the following set of commands: #
|
||||
# #
|
||||
@@ -44,7 +47,12 @@
|
||||
# /vis/scene/add/volume $1 #
|
||||
# /vis/sceneHandler/attach #
|
||||
# /vis/viewer/refresh #
|
||||
# /vis/viewer/update #
|
||||
# #
|
||||
# WARNING: You need one more command "/vis/viewer/update" for #
|
||||
# flushing in using post-processin visualization drivers #
|
||||
# such as the DAWNFILE, VRMLFILE, OpenGL Motif drivers. #
|
||||
# You can execute, e.g. "/vis/draw/axes" before executing #
|
||||
# "/vis/viewer/update" to visualize coordinate axes. #
|
||||
# #
|
||||
#######################################################################
|
||||
|
||||
@@ -60,10 +68,11 @@
|
||||
# Note: Camera setting should be done
|
||||
# for each scene handler.
|
||||
/vis/camera/reset
|
||||
/vis/camera/viewpoint 70 20
|
||||
#/vis/camera/viewpoint 70 20
|
||||
|
||||
# Visualize of the whole detector geometry
|
||||
/vis/drawVolume
|
||||
/vis/viewer/update
|
||||
|
||||
#########################################################
|
||||
# Visualization of events with the DAWNFILE driver
|
||||
@@ -76,13 +85,11 @@
|
||||
# You can do it with the 4th page of the DAWN GUI panel
|
||||
# or by editing the file by hand.
|
||||
#
|
||||
# * Set as follows to skip DAWN GUI:
|
||||
# % setenv G4DAWNFILE_VIEWER "dawn -d"
|
||||
# * Set an environmental variable if you wish to
|
||||
# skip DAWN GUI:
|
||||
# % setenv G4DAWNFILE_VIEWER "dawn -d"
|
||||
##########################################################
|
||||
|
||||
# Store particle trajactories for visualization
|
||||
/tracking/storeTrajectory 1
|
||||
|
||||
# Invoke the DAWNFILE driver
|
||||
/vis/open DAWNFILE
|
||||
|
||||
@@ -92,8 +99,14 @@
|
||||
# Add the world volume to the current scene
|
||||
/vis/scene/add/volume
|
||||
|
||||
# Add trajectories to the current scene
|
||||
# Note: This command is not necessary in exampleN03,
|
||||
# since the C++ method DrawTrajectory() is
|
||||
# described in the event action.
|
||||
#/vis/scene/add/trajectories
|
||||
|
||||
# Attach the current scene handler
|
||||
# to the current scene
|
||||
# to the current scene (omitable)
|
||||
/vis/sceneHandler/attach
|
||||
|
||||
# Set camera
|
||||
@@ -103,11 +116,7 @@
|
||||
/vis/camera/zoom 1.2
|
||||
/vis/camera/viewpoint 20 70
|
||||
|
||||
# Visualize one event added to the current scene
|
||||
# * Command "/vis/scene/notifyHandlers" is written in
|
||||
# ExN03RunAction::BeginOfRunAction()
|
||||
# * Command "/vis/viewer/update" is written in
|
||||
# ExN03RunAction::EndOfRunAction()
|
||||
/vis/scene/add/trajectories
|
||||
# Visualize events added to the current scene
|
||||
/tracking/storeTrajectory 1
|
||||
/run/beamOn 10
|
||||
|
||||
@@ -6,20 +6,23 @@
|
||||
# DATE: November 10, 1999 #
|
||||
# May 20, 2000 #
|
||||
# June 06, 2000 #
|
||||
# October 17, 2000 #
|
||||
# November 26, 2000 #
|
||||
# #
|
||||
# CONTENTS: A basic macro for visualization of detector geometry #
|
||||
# #
|
||||
# USAGE: % $G4BINDIR/exampleN03 #
|
||||
# Idle> /control/execute exN03Vis1.mac #
|
||||
# USAGE: % gmake visclean #
|
||||
# % $G4BINDIR/exampleN03 #
|
||||
# Idle> /control/execute visTutor/exN03Vis1.mac #
|
||||
# #
|
||||
# REQUIRED PLATFORMS & SOFTWARES: Unix, X-window, OpenGL, #
|
||||
# DAWN (version 3.80 or after) #
|
||||
# DAWN (version 3.85 or after) #
|
||||
# gv (Ghostview), Tcl/Tk #
|
||||
# #
|
||||
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION: #
|
||||
# (See geant4/source/visualization/README for details.) #
|
||||
# #
|
||||
# % setenv OGLHOME ... (e.g. /usr/local) #
|
||||
# % setenv OGLHOME ... (e.g. /usr/X11R6) #
|
||||
# % setenv G4VIS_BUILD_OPENGLX_DRIVER 1 #
|
||||
# % setenv G4VIS_BUILD_DAWNFILE_DRIVER 1 #
|
||||
# #
|
||||
@@ -29,7 +32,7 @@
|
||||
# % setenv G4VIS_USE_OPENGLX 1 #
|
||||
# % setenv G4VIS_USE_DAWNFILE 1 #
|
||||
# #
|
||||
# Addional Notes: #
|
||||
# ADDITIONAL NOTES: #
|
||||
# The compound command "/vis/open <graphics-system-name>" #
|
||||
# is equivalent to the following set of commands: #
|
||||
# #
|
||||
@@ -43,7 +46,12 @@
|
||||
# /vis/scene/add/volume $1 #
|
||||
# /vis/sceneHandler/attach #
|
||||
# /vis/viewer/refresh #
|
||||
# /vis/viewer/update #
|
||||
# #
|
||||
# WARNING: You need one more command "/vis/viewer/update" for #
|
||||
# flushing in using post-processin visualization drivers #
|
||||
# such as the DAWNFILE, VRMLFILE, OpenGL Motif drivers. #
|
||||
# You can execute, e.g. "/vis/draw/axes" before executing #
|
||||
# "/vis/viewer/update" to visualize coordinate axes. #
|
||||
# #
|
||||
#######################################################################
|
||||
|
||||
@@ -59,6 +67,7 @@
|
||||
# with the defalut camera parameters
|
||||
/vis/camera/reset
|
||||
/vis/drawVolume
|
||||
/vis/viewer/update
|
||||
|
||||
# Slide show (spinning) of the view visualized above.
|
||||
# Draw 60 frames with steps of 3 degrees.
|
||||
@@ -75,20 +84,12 @@
|
||||
# x-axis:red, y-axis:green, z-axis:blue
|
||||
# origin: (0,0,0), length: 500
|
||||
#
|
||||
# Note: The visualization commands are under reconstruction.
|
||||
# In future, the lines below should be rewritten,
|
||||
# replacing /vis/draw/... with /vis/add/... .
|
||||
# For the commands /vis/draw/..., use /vis/show/view
|
||||
# instead of /vis/viewer/update
|
||||
# in order to flush visualization.
|
||||
#
|
||||
/vis/camera/reset
|
||||
/vis/camera/viewpoint 20 70
|
||||
/vis/camera/zoom 0.8
|
||||
/vis/draw/current
|
||||
/vis/drawVolume
|
||||
/vis/draw/axes 0 0 0 500
|
||||
/vis/show/view
|
||||
|
||||
/vis/viewer/update
|
||||
|
||||
##########################################################
|
||||
# Visualization with DAWNFILE driver
|
||||
@@ -101,64 +102,37 @@
|
||||
# You can do it with the 4th page of the DAWN GUI panel
|
||||
# or by editing the file by hand.
|
||||
#
|
||||
# * Set as follows to skip DAWN GUI:
|
||||
# % setenv G4DAWNFILE_VIEWER "dawn -d"
|
||||
# * Set an environmental variable if you wish to
|
||||
# skip DAWN GUI:
|
||||
# % setenv G4DAWNFILE_VIEWER "dawn -d"
|
||||
##########################################################
|
||||
|
||||
#-----
|
||||
# Invoke the DAWNFILE driver
|
||||
/vis/open DAWNFILE
|
||||
|
||||
#-----
|
||||
# Create a new scene
|
||||
/vis/scene/create
|
||||
|
||||
# Attach the current visualization driver
|
||||
# to the current scene
|
||||
/vis/sceneHandler/attach
|
||||
|
||||
# Bird's-eye view of a detector component (Absorber.0)
|
||||
# Bird's-eye view of a detector component (Absorber)
|
||||
# viewpoint : (theta,phi) = (35*deg, 35*deg),
|
||||
# zoom factor: 0.9 of the full screen size
|
||||
# coordinate axes:
|
||||
# x-axis:red, y-axis:green, z-axis:blue
|
||||
# origin: (0,0,0), length: 500
|
||||
#
|
||||
/vis/scene/add/volume Absorber 0
|
||||
/vis/camera/reset
|
||||
/vis/camera/zoom 0.9
|
||||
/vis/camera/viewpoint 35 35
|
||||
/vis/draw/current
|
||||
/vis/drawVolume Absorber
|
||||
/vis/draw/axes 0 0 0 500
|
||||
/vis/draw/text 0 0 0 mm 50 -100 -200 Absorber.0
|
||||
/vis/show/view
|
||||
/vis/draw/text 0 0 0 mm 50 -100 -200 Absorber
|
||||
/vis/viewer/update
|
||||
|
||||
#-----
|
||||
# Create a new scene
|
||||
/vis/scene/create
|
||||
|
||||
# Attach the current visualization driver
|
||||
# to the current scene.
|
||||
/vis/sceneHandler/attach
|
||||
|
||||
# Bird's-eye view of a detector component (Gap.0)
|
||||
#
|
||||
/vis/scene/add/volume Gap 0
|
||||
# Bird's-eye view of a detector component (Gap)
|
||||
/vis/camera/reset
|
||||
/vis/camera/zoom 0.9
|
||||
/vis/camera/viewpoint 35 35
|
||||
/vis/draw/current
|
||||
/vis/drawVolume Gap
|
||||
/vis/draw/axes 0 0 0 500
|
||||
/vis/draw/text 0 0 0 mm 50 -100 -200 Gap.0
|
||||
/vis/show/view
|
||||
|
||||
#-----
|
||||
# Create a new scene
|
||||
/vis/scene/create
|
||||
|
||||
# Attach the current visualization driver
|
||||
# to the current scene.
|
||||
/vis/sceneHandler/attach
|
||||
/vis/draw/text 0 0 0 mm 50 -100 -200 Gap
|
||||
/vis/viewer/update
|
||||
|
||||
# Bird's-eye view of the whole detector components
|
||||
# * The argument "world" of the command
|
||||
@@ -167,12 +141,14 @@
|
||||
# world volume visible.
|
||||
# (The invisibility of the world volume is set
|
||||
# in ExN03DetectorConstruction.cc.)
|
||||
/vis/scene/add/volume world
|
||||
/vis/camera/reset
|
||||
/vis/camera/zoom 0.9
|
||||
/vis/camera/viewpoint 35 35
|
||||
/vis/set/culling off
|
||||
/vis/draw/current
|
||||
/vis/drawVolume
|
||||
/vis/draw/axes 0 0 0 500
|
||||
/vis/draw/text 0 0 0 mm 50 -50 -200 world
|
||||
/vis/show/view
|
||||
/vis/viewer/update
|
||||
|
||||
# Make the culling on for next visualization
|
||||
/vis/set/culling on
|
||||
@@ -6,20 +6,23 @@
|
||||
# DATE: November 10, 1999 #
|
||||
# May 20, 2000 #
|
||||
# June 06, 2000 #
|
||||
# October 17, 2000 #
|
||||
# November 26, 2000 #
|
||||
# #
|
||||
# CONTENTS: A basic macro for visualization of events #
|
||||
# #
|
||||
# USAGE: % $G4BINDIR/exampleN03 #
|
||||
# Idle> /control/execute exN03Vis2.mac #
|
||||
# USAGE: % gmake visclean #
|
||||
# % $G4BINDIR/exampleN03 #
|
||||
# Idle> /control/execute visTutor/exN03Vis2.mac #
|
||||
# #
|
||||
# REQUIRED PLATFORMS & SOFTWARES: Unix, X-window, OpenGL, #
|
||||
# DAWN (version 3.80 or after) #
|
||||
# DAWN (version 3.85 or after) #
|
||||
# gv (Ghostview), Tcl/Tk #
|
||||
# #
|
||||
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION: #
|
||||
# (See geant4/source/visualization/README for details.) #
|
||||
# #
|
||||
# % setenv OGLHOME ... (e.g. /usr/local) #
|
||||
# % setenv OGLHOME ... (e.g. /usr/X11R6) #
|
||||
# % setenv G4VIS_BUILD_OPENGLX_DRIVER 1 #
|
||||
# % setenv G4VIS_BUILD_DAWNFILE_DRIVER 1 #
|
||||
# #
|
||||
@@ -29,7 +32,7 @@
|
||||
# % setenv G4VIS_USE_OPENGLX 1 #
|
||||
# % setenv G4VIS_USE_DAWNFILE 1 #
|
||||
# #
|
||||
# Addional Notes: #
|
||||
# ADDITIONAL NOTES: #
|
||||
# The compound command "/vis/open <graphics-system-name>" #
|
||||
# is equivalent to the following set of commands: #
|
||||
# #
|
||||
@@ -43,7 +46,6 @@
|
||||
#################################################
|
||||
/tracking/storeTrajectory 1
|
||||
|
||||
|
||||
#####################################################
|
||||
# Visualization with OGLSX (OpenGL Stored X) driver
|
||||
#####################################################
|
||||
@@ -54,23 +56,21 @@
|
||||
# Create a new scene
|
||||
/vis/scene/create
|
||||
|
||||
# Attach the current visualization driver
|
||||
# to the current scene
|
||||
/vis/sceneHandler/attach
|
||||
|
||||
# Add detector geometry to the current scene
|
||||
/vis/scene/add/volume
|
||||
|
||||
# Add trajectories to the current scene
|
||||
/vis/scene/add/trajectories
|
||||
# Attach the current visualization driver
|
||||
# to the current scene (omitable)
|
||||
/vis/sceneHandler/attach
|
||||
|
||||
# Set drawing style
|
||||
# The drawing style is "hidden-surface removal".
|
||||
# The commonly-used drawing styles are:
|
||||
# 0: wireframe
|
||||
# 1: hidden-line removal
|
||||
# 2: hidden-surface removal
|
||||
/vis/set/drawing_style 2
|
||||
# Add trajectories to the current scene
|
||||
# Note: This command is not necessary in exampleN03,
|
||||
# since the C++ method DrawTrajectory() is
|
||||
# described in the event action.
|
||||
#/vis/scene/add/trajectories
|
||||
|
||||
# Set drawing style to "surface"
|
||||
/vis/viewer/set/style surface
|
||||
|
||||
# Set camera
|
||||
# viewpoint : (theta,phi) = (10*deg, 10*deg).
|
||||
@@ -80,10 +80,6 @@
|
||||
/vis/camera/zoom 0.9
|
||||
|
||||
# Generate one event and visualize it.
|
||||
# * Command "/vis/scene/notifyHandlers" is written in
|
||||
# ExN03RunAction::BeginOfRunAction()
|
||||
# * Command "/vis/viewer/update" is written in
|
||||
# ExN03RunAction::EndOfRunAction()
|
||||
/run/beamOn 1
|
||||
|
||||
# Slide show (spinning).
|
||||
@@ -106,8 +102,9 @@
|
||||
# You can do it with the 4th page of the DAWN GUI panel
|
||||
# or by editing the file by hand.
|
||||
#
|
||||
# * Set as follows to skip DAWN GUI:
|
||||
# % setenv G4DAWNFILE_VIEWER "dawn -d"
|
||||
# * Set an environmental variable if you wish to
|
||||
# skip DAWN GUI:
|
||||
# % setenv G4DAWNFILE_VIEWER "dawn -d"
|
||||
##########################################################
|
||||
|
||||
# Invoke the DAWNFILE driver
|
||||
@@ -116,21 +113,21 @@
|
||||
# Create a new scene
|
||||
/vis/scene/create
|
||||
|
||||
# Attach the current visualization driver
|
||||
# to the current scene
|
||||
/vis/sceneHandler/attach
|
||||
|
||||
# Add detector geometry to the current scene
|
||||
/vis/scene/add/volume
|
||||
|
||||
# Attach the current visualization driver
|
||||
# to the current scene (omitable)
|
||||
/vis/sceneHandler/attach
|
||||
|
||||
# Add trajectories to the current scene
|
||||
/vis/scene/add/trajectories
|
||||
# Note: This command is not necessary in exampleN03,
|
||||
# since the C++ method DrawTrajectory() is
|
||||
# described in the event action.
|
||||
#/vis/scene/add/trajectories
|
||||
|
||||
# Set the drawing style to "wireframe".
|
||||
# 0: wireframe
|
||||
# 1: hidden-line removal
|
||||
# 2: hidden-surface removal
|
||||
/vis/set/drawing_style 0
|
||||
/vis/viewer/set/style wireframe
|
||||
|
||||
# Visualize many events (bird's eye view)
|
||||
# viewpoint : (theta,phi) = (45*deg, 45*deg)
|
||||
@@ -6,14 +6,17 @@
|
||||
# DATE: November 10, 1999 #
|
||||
# May 20, 2000 #
|
||||
# June 06, 2000 #
|
||||
# October 17, 2000 #
|
||||
# November 26, 2000 #
|
||||
# #
|
||||
# CONTENTS: A basic macro for demonstrating various drawing styles #
|
||||
# #
|
||||
# USAGE: % $G4BINDIR/exampleN03 #
|
||||
# Idle> /control/execute exN03Vis3.mac #
|
||||
# USAGE: % gmake visclean #
|
||||
# % $G4BINDIR/exampleN03 #
|
||||
# Idle> /control/execute visTutor/exN03Vis3.mac #
|
||||
# #
|
||||
# REQUIRED PLATFORMS & SOFTWARES: Unix, X-window, OpenGL, #
|
||||
# DAWN (version 3.80 or after) #
|
||||
# DAWN (version 3.85 or after) #
|
||||
# gv (Ghostview), Tcl/Tk #
|
||||
# #
|
||||
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION: #
|
||||
@@ -29,7 +32,7 @@
|
||||
# % setenv G4VIS_USE_OPENGLX 1 #
|
||||
# % setenv G4VIS_USE_DAWNFILE 1 #
|
||||
# #
|
||||
# Addional Notes: #
|
||||
# ADDITIONAL NOTES: #
|
||||
# The compound command "/vis/open <graphics-system-name>" #
|
||||
# is equivalent to the following set of commands: #
|
||||
# #
|
||||
@@ -39,7 +42,7 @@
|
||||
#######################################################################
|
||||
|
||||
##############################################
|
||||
Store particle trajactories for visualization
|
||||
# Store particle trajactories for visualization
|
||||
##############################################
|
||||
/tracking/storeTrajectory 1
|
||||
|
||||
@@ -53,21 +56,24 @@ Store particle trajactories for visualization
|
||||
# Create a new scene
|
||||
/vis/scene/create
|
||||
|
||||
# Attach the current visualization driver
|
||||
# to the current scene
|
||||
/vis/sceneHandler/attach
|
||||
|
||||
# Add detector geometry to the current scene
|
||||
/vis/scene/add/volume
|
||||
|
||||
# Add trajectories to the current scene
|
||||
/vis/scene/add/trajectories
|
||||
# Attach the current visualization driver
|
||||
# to the current scene (omitable)
|
||||
/vis/sceneHandler/attach
|
||||
|
||||
# Bird-eye view of events with the hidden-surface
|
||||
# drawing style.
|
||||
# Add trajectories to the current scene
|
||||
# Note: This command is not necessary in exampleN03,
|
||||
# since the C++ method DrawTrajectory() is
|
||||
# described in the event action.
|
||||
#/vis/scene/add/trajectories
|
||||
|
||||
# Bird-eye view of events with
|
||||
# the hidden-surface drawing style
|
||||
/vis/camera/reset
|
||||
/vis/camera/viewpoint 45 45
|
||||
/vis/set/drawing_style 2
|
||||
/vis/viewer/set/style surface
|
||||
/run/beamOn 10
|
||||
|
||||
##########################################################
|
||||
@@ -81,8 +87,9 @@ Store particle trajactories for visualization
|
||||
# You can do it with the 4th page of the DAWN GUI panel
|
||||
# or by editing the file by hand.
|
||||
#
|
||||
# * Set as follows to skip DAWN GUI:
|
||||
# % setenv G4DAWNFILE_VIEWER "dawn -d"
|
||||
# * Set an environmental variable if you wish to
|
||||
# skip DAWN GUI:
|
||||
# % setenv G4DAWNFILE_VIEWER "dawn -d"
|
||||
#
|
||||
##########################################################
|
||||
|
||||
@@ -92,15 +99,18 @@ Store particle trajactories for visualization
|
||||
# Create a new scene
|
||||
/vis/scene/create
|
||||
|
||||
# Attach the current visualization driver
|
||||
# to the current scene
|
||||
/vis/sceneHandler/attach
|
||||
|
||||
# Add detector geometry to the current scene
|
||||
/vis/scene/add/volume
|
||||
|
||||
# Attach the current visualization driver
|
||||
# to the current scene (omitable)
|
||||
/vis/sceneHandler/attach
|
||||
|
||||
# Add trajectories to the current scene
|
||||
/vis/scene/add/trajectories
|
||||
# Note: This command is not necessary in exampleN03,
|
||||
# since the C++ method DrawTrajectory() is
|
||||
# described in the event action.
|
||||
#/vis/scene/add/trajectories
|
||||
|
||||
# Set camera
|
||||
# Camera is zoomed up by 1.5 times of the standard setting.
|
||||
@@ -108,18 +118,28 @@ Store particle trajactories for visualization
|
||||
/vis/camera/zoom 1.5
|
||||
/vis/camera/viewpoint 45 45
|
||||
|
||||
# Bird-eye view of events with the wireframe drawing style
|
||||
/vis/set/drawing_style 0
|
||||
# Bird-eye view of events with the
|
||||
# wireframe drawing style
|
||||
/vis/viewer/set/style wireframe
|
||||
/run/beamOn 5
|
||||
|
||||
# Bird-eye view of events with the hidden-surface
|
||||
# drawing style.
|
||||
/vis/set/drawing_style 2
|
||||
# Bird-eye view of events with the
|
||||
# hidden-surface drawing style
|
||||
/vis/viewer/set/style surface
|
||||
/run/beamOn 50
|
||||
|
||||
# Cull detector geometry and show only trajectories.
|
||||
/vis/camera/reset
|
||||
/vis/set/culling on
|
||||
/vis/set/cull_by_density on 999
|
||||
/vis/set/drawing_style 0
|
||||
/vis/viewer/set/style wireframe
|
||||
/run/beamOn 10
|
||||
|
||||
# Reset the culling policy for next visualization
|
||||
# The default culling policy is:
|
||||
# global : on
|
||||
# invisible : on
|
||||
# low density : off
|
||||
# covered daughter: off
|
||||
/vis/set/cull_by_density off
|
||||
|
||||
@@ -4,31 +4,31 @@
|
||||
# AUTHOR(S): Satoshi Tanaka #
|
||||
# #
|
||||
# DATE: June 06, 2000 #
|
||||
# October 17, 2000 #
|
||||
# November 26, 2000 #
|
||||
# #
|
||||
# CONTENTS: An example for the compound command, #
|
||||
# "/vis/specify <logical_volume_name>" #
|
||||
# #
|
||||
# USAGE: % $G4BINDIR/exampleN03 #
|
||||
# Idle> /control/execute exN03Vis4.mac #
|
||||
# USAGE: % gmake visclean #
|
||||
# % $G4BINDIR/exampleN03 #
|
||||
# Idle> /control/execute visTutor/exN03Vis4.mac #
|
||||
# #
|
||||
# REQUIRED PLATFORMS & SOFTWARES: Unix, X-window, OpenGL, #
|
||||
# DAWN (version 3.80 or after) #
|
||||
# REQUIRED PLATFORMS & SOFTWARES: Unix, X-window, #
|
||||
# DAWN (version 3.85 or after) #
|
||||
# gv (Ghostview), Tcl/Tk #
|
||||
# #
|
||||
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION: #
|
||||
# (See geant4/source/visualization/README for details.) #
|
||||
# #
|
||||
# % setenv OGLHOME ... (e.g. /usr/local) #
|
||||
# % setenv G4VIS_BUILD_OPENGLX_DRIVER 1 #
|
||||
# % setenv G4VIS_BUILD_DAWNFILE_DRIVER 1 #
|
||||
# #
|
||||
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION: #
|
||||
# (See geant4/source/visualization/README for details.) #
|
||||
# #
|
||||
# % setenv G4VIS_USE_OPENGLX 1 #
|
||||
# % setenv G4VIS_USE_DAWNFILE 1 #
|
||||
# #
|
||||
# Addional Notes: #
|
||||
# ADDITIONAL NOTES: #
|
||||
# The compound command "/vis/open <graphics-system-name>" #
|
||||
# is equivalent to the following set of commands: #
|
||||
# #
|
||||
@@ -42,29 +42,16 @@
|
||||
# /vis/scene/add/logicalVolume $1 #
|
||||
# /vis/sceneHandler/attach #
|
||||
# /vis/viewer/refresh #
|
||||
# /vis/viewer/update #
|
||||
# /geometry/print $1 #
|
||||
# #
|
||||
# WARNING: You need one more command "/vis/viewer/update" for #
|
||||
# flushing in using post-processin visualization drivers #
|
||||
# such as the DAWNFILE, VRMLFILE, OpenGL Motif drivers. #
|
||||
# You can execute, e.g. "/vis/draw/axes" before executing #
|
||||
# "/vis/viewer/update" to visualize coordinate axes. #
|
||||
# #
|
||||
#######################################################################
|
||||
|
||||
|
||||
######################################################
|
||||
# Visualization with OGLIX (OpenGL Immediate X) driver
|
||||
######################################################
|
||||
|
||||
# Invoke the OGLIX driver
|
||||
/vis/open OGLIX
|
||||
|
||||
# Set camera
|
||||
# Note: Camera setting should be done
|
||||
# for each scene handler.
|
||||
/vis/camera/reset
|
||||
/vis/camera/zoom 0.9
|
||||
/vis/camera/viewpoint 35 35
|
||||
|
||||
# Visualize a selected logical volume
|
||||
/vis/specify Absorber
|
||||
|
||||
##########################################################
|
||||
# Visualization with DAWNFILE driver
|
||||
#
|
||||
@@ -76,8 +63,9 @@
|
||||
# You can do it with the 4th page of the DAWN GUI panel
|
||||
# or by editing the file by hand.
|
||||
#
|
||||
# * Set as follows to skip DAWN GUI:
|
||||
# % setenv G4DAWNFILE_VIEWER "dawn -d"
|
||||
# * Set an environmental variable if you wish to
|
||||
# skip DAWN GUI:
|
||||
# % setenv G4DAWNFILE_VIEWER "dawn -d"
|
||||
##########################################################
|
||||
|
||||
|
||||
@@ -91,5 +79,14 @@
|
||||
/vis/camera/zoom 0.9
|
||||
/vis/camera/viewpoint 35 35
|
||||
|
||||
# Visualize a selected logical volume
|
||||
/vis/specify Gap
|
||||
# Visualize a selected logical volume (1)
|
||||
/vis/specify Absorber
|
||||
/vis/draw/axes 0 0 0 500
|
||||
/vis/draw/text 0 0 0 mm 40 -100 -200 LogVol:Absorber
|
||||
/vis/viewer/update
|
||||
|
||||
# Visualize a selected logical volume (2)
|
||||
/vis/specify Gap
|
||||
/vis/draw/axes 0 0 0 500
|
||||
/vis/draw/text 0 0 0 mm 40 -100 -200 LogVol:Gap
|
||||
/vis/viewer/update
|
||||
@@ -7,7 +7,8 @@
|
||||
# #
|
||||
# CONTENTS: A basic macro for demonstrating OPACS/Xo driver #
|
||||
# #
|
||||
# USAGE: % $G4BINDIR/exampleN03 exN03Vis5.mac #
|
||||
# USAGE: % gmake visclean #
|
||||
# % $G4BINDIR/exampleN03 visTutor/exN03Vis5.mac #
|
||||
# #
|
||||
# REQUIRED PLATFORMS & SOFTWARES: Unix, Motif, X-window, OpenGL, #
|
||||
# OPACS (version 3.0) #
|
||||
@@ -22,7 +23,7 @@
|
||||
# #
|
||||
# % setenv G4VIS_USE_OPACS 1 #
|
||||
# #
|
||||
# Addional Notes: #
|
||||
# ADDITIONAL NOTES: #
|
||||
# Controls on a Xo window are : #
|
||||
# - Ctrl + left-button1 + move pointer : #
|
||||
# move things (default is scale). #
|
||||
@@ -46,7 +47,7 @@
|
||||
# Add detector geometry to the current scene
|
||||
/vis/scene/add/volume
|
||||
/tracking/storeTrajectory 1
|
||||
/vis/scene/include/trajectories
|
||||
#/vis/scene/add/trajectories
|
||||
|
||||
# Bird-eye view of events
|
||||
/vis/camera/reset
|
||||
@@ -7,7 +7,7 @@
|
||||
# #
|
||||
# CONTENTS: A basic macro for demonstrating Inventor driver #
|
||||
# #
|
||||
# USAGE: % $G4BINDIR/exampleN03 exN03Vis6.mac #
|
||||
# USAGE: % $G4BINDIR/exampleN03 visTutor/exN03Vis6.mac #
|
||||
# #
|
||||
# REQUIRED PLATFORMS & SOFTWARES: Unix, Motif, X-window, OpenGL, #
|
||||
# HEPVis #
|
||||
@@ -23,7 +23,8 @@
|
||||
# #
|
||||
# % setenv G4VIS_USE_OIX 1 #
|
||||
# #
|
||||
# Addional Notes: #
|
||||
# ADDITIONAL NOTES: #
|
||||
# #
|
||||
#######################################################################
|
||||
|
||||
# Create "scene-0"
|
||||
@@ -35,7 +36,7 @@
|
||||
|
||||
# Add detector geometry to the current scene
|
||||
/vis/scene/add/volume
|
||||
/vis/scene/include/trajectories
|
||||
#/vis/scene/add/trajectories
|
||||
/tracking/storeTrajectory 1
|
||||
|
||||
# Bird-eye view of events
|
||||
@@ -0,0 +1,73 @@
|
||||
#######################################################################
|
||||
# MACRO FILE NAME: exN03Vis7.mac #
|
||||
# #
|
||||
# AUTHOR(S): Satoshi Tanaka #
|
||||
# #
|
||||
# DATE: October 17, 2000 #
|
||||
# November 26, 2000 #
|
||||
# #
|
||||
# CONTENTS: A macro to demonstrate the VRMLFILE driver #
|
||||
# #
|
||||
# USAGE: % gmake visclean #
|
||||
# % $G4BINDIR/exampleN03 #
|
||||
# Idle> /control/execute visTutor/exN03Vis7.mac #
|
||||
# #
|
||||
# REQUIRED PLATFORMS & SOFTWARES: Unix, X-window, #
|
||||
# VRML viewer (e.g. VRMLview) #
|
||||
# #
|
||||
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION: #
|
||||
# (See geant4/source/visualization/README for details.) #
|
||||
# #
|
||||
# % setenv G4VIS_BUILD_VRMLFILE_DRIVER 1 #
|
||||
# #
|
||||
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION: #
|
||||
# (See geant4/source/visualization/README for details.) #
|
||||
# #
|
||||
# % setenv G4VIS_USE_VRMLFILE 1 #
|
||||
# #
|
||||
# RECOMMENDED ENVIRONMENTAL VARIABLES FOR VISUALIZATION: #
|
||||
# #
|
||||
# % setenv G4VRMLFILE_VIEWER vrmlview #
|
||||
# ( The default value is "NONE".) #
|
||||
# #
|
||||
# % setenv G4VRMLFILE_MAX_FILE_NUM 100 #
|
||||
# ( The default value is "1".) #
|
||||
# #
|
||||
# ADDITIONAL NOTES: #
|
||||
# #
|
||||
#######################################################################
|
||||
|
||||
###################################################
|
||||
# Visualization of detector geometry and events
|
||||
# with the VRML2FILE driver.
|
||||
#
|
||||
# Note: "/vis/viewer/set/style wireframe" means
|
||||
# "half-transparent" in the VRML2FILE driver.
|
||||
# It is a convention of this driver.
|
||||
###################################################
|
||||
|
||||
# Store particle trajactories for visualization
|
||||
/tracking/storeTrajectory 1
|
||||
|
||||
# Invoke the VRML2FILE driver
|
||||
/vis/open VRML2FILE
|
||||
|
||||
# Create a new scene
|
||||
/vis/scene/create
|
||||
|
||||
# Attach the current scene handler
|
||||
# to the current scene
|
||||
/vis/sceneHandler/attach
|
||||
|
||||
# Add the world volume to the current scene
|
||||
/vis/scene/add/volume
|
||||
|
||||
# Visualize one event added to the current scene
|
||||
# Note: The command /vis/scene/add/trajectories
|
||||
# is not necessary in exampleN03,
|
||||
# since the C++ method DrawTrajectory() is
|
||||
# described in the event action.
|
||||
#/vis/scene/add/trajectories
|
||||
/vis/viewer/set/style wireframe
|
||||
/run/beamOn 3
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
#######################################################################
|
||||
# MACRO FILE NAME: exN03Vis8.mac #
|
||||
# #
|
||||
# AUTHOR(S): Satoshi Tanaka #
|
||||
# #
|
||||
# DATE: #
|
||||
# October 17, 2000 #
|
||||
# November 26, 2000 #
|
||||
# #
|
||||
# CONTENTS: A macro to demonstrate creation of a "multi-page" #
|
||||
# PostScript file #
|
||||
# #
|
||||
# USAGE: % setenv G4DAWNFILE_MAX_FILE_NUM 1 #
|
||||
# % setenv DAWN_BATCH a #
|
||||
# % gmake visclean #
|
||||
# % $G4BINDIR/exampleN03 #
|
||||
# Idle> /control/execute visTutor/exN03Vis8.mac #
|
||||
# Idle> exit #
|
||||
# % gv g4_00.eps #
|
||||
# #
|
||||
# Then click, "<<", ">>" etc to traverse pages #
|
||||
# #
|
||||
# REQUIRED PLATFORMS & SOFTWARES: Unix, X-window, #
|
||||
# DAWN (version 3.85 or after) #
|
||||
# gv (Ghostview), Tcl/Tk #
|
||||
# #
|
||||
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION: #
|
||||
# (See geant4/source/visualization/README for details.) #
|
||||
# #
|
||||
# % setenv G4VIS_BUILD_DAWNFILE_DRIVER 1 #
|
||||
# #
|
||||
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION: #
|
||||
# (See geant4/source/visualization/README for details.) #
|
||||
# #
|
||||
# % setenv G4VIS_USE_DAWNFILE 1 #
|
||||
# #
|
||||
# ADDITIONAL NOTES: #
|
||||
# * If you execute this macro plural times, all the views are #
|
||||
# sequentially appended to the file "g4_00.eps". #
|
||||
# For example if you execute it two times, a 6-page (3+3 page) #
|
||||
# PostScript file is made. #
|
||||
# #
|
||||
#######################################################################
|
||||
|
||||
####################################################################
|
||||
# Creation of a multi-page PostScript file with the DAWNFILE driver
|
||||
####################################################################
|
||||
|
||||
# Invoke the DAWNFILE driver
|
||||
/vis/open DAWNFILE
|
||||
|
||||
# Generate page 1
|
||||
/vis/camera/reset
|
||||
/vis/camera/zoom 0.9
|
||||
/vis/camera/viewpoint 35 35
|
||||
/vis/drawVolume Absorber
|
||||
/vis/draw/axes 0 0 0 500
|
||||
/vis/draw/text 0 0 0 mm 50 -150 -200 Page1/3:Absorber
|
||||
/vis/viewer/update
|
||||
|
||||
# Generate page 2
|
||||
/vis/camera/reset
|
||||
/vis/camera/zoom 0.9
|
||||
/vis/camera/viewpoint 35 35
|
||||
/vis/drawVolume Gap
|
||||
/vis/draw/axes 0 0 0 500
|
||||
/vis/draw/text 0 0 0 mm 50 -100 -200 Page2/3:Gap
|
||||
/vis/viewer/update
|
||||
|
||||
# Generate page 3
|
||||
/vis/camera/reset
|
||||
/vis/camera/zoom 0.9
|
||||
/vis/camera/viewpoint 35 35
|
||||
/vis/set/culling off
|
||||
/vis/drawVolume
|
||||
/vis/draw/axes 0 0 0 500
|
||||
/vis/draw/text 0 0 0 mm 50 -100 -200 Page3/3:world
|
||||
/vis/viewer/update
|
||||
|
||||
# Make the culling on for next visualization
|
||||
/vis/set/culling on
|
||||
Reference in New Issue
Block a user