Changeset 1337 for trunk/examples/extended/eventgenerator/exgps/README
- Timestamp:
- Sep 30, 2010, 2:47:17 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/extended/eventgenerator/exgps/README
r807 r1337 35 35 36 36 Visualisation of the geometry and the tracks is possible with many of the G4 visualisation packages. An 37 example of displaying the geometry and tracks using VRML is given in the macro file display_vrml.mac.37 example of displaying the geometry and tracks using VRML is given in the macro file vis.mac. 38 38 39 39 6. ANALYSIS: 40 40 41 41 This example implements an AIDA-compliant analysis manager which creates histograms and ntuples. 42 If user has an AIDA-compliant tool such as AIDAJNI, ANAPHE, or PI installed on his/her system, 43 the analysis part of this example can be activated by: 42 If user has an AIDA-compliant tool such as AIDAJNI, ANAPHE, OpenScientist or PI installed on his/her system. Some URLs : 43 http://aida.freehep.org/ 44 http://java.freehep.org/aidajni 45 http://www.cern.ch/PI 46 http://OpenScientist.lal.in2p3.fr 47 48 The analysis part of this example can be activated by doing a "source 49 aida-setup" of the AIDA compliant tool (to activate the aida-config 50 program) and by raising some environment variabless so that the 51 G4 GNUmakefile system can take into account the AIDA tool. 52 This can be done, for example on a UNIX under a csh like shell, with : 53 csh> source <path_where_the_AIDA_tool_is_installed>/aida-setup.csh 54 csh> aida-config # to check that this program is up and running 55 G4 related part : 56 csh> setenv G4ANALYSIS_USE 1 57 csh> setenv G4ANALYSIS_AIDA_CONFIG_CFLAGS `aida-config --include` 58 csh> setenv G4ANALYSIS_AIDA_CONFIG_LIBS `aida-config --lib` 44 59 45 setenv G4ANALYSIS_USE 1 60 (It may be usefull to note that in the G4 GNUmakefile system, 61 the upper variables are used in the file config/analysis.gmk). 46 62 47 63 This needs to be done before building the executable. 48 64 49 65 At the end of an excution, an xml file "exgps.aida" is created by default which contains 50 histograms and ntuples. User can change the name and typeof this output file with the commands66 histograms and ntuples. User can change the name and format of this output file with the commands 51 67 52 68 /analysis/filetype new-type … … 55 71 e.g. 56 72 57 /analysis/filetype hbook58 /analysis/filename exgps.hbook73 /analysis/filetype root 74 /analysis/filename myfile.root 59 75 60 these change the output file type to "hbook" and name to "exgps.hbbok" 76 these change the output file format to ROOT and output file name to "myfile.root". There are three file 77 formats to choose from: xml, root or hbook. 61 78 62 79 The output file conatins 6 histograms and one ntuple: … … 74 91 In the ntuple the following data are recorded for each incident particle: 75 92 76 Particle Name93 Particle ID 77 94 Incident Position (x,y,z); 78 95 Incident Angle (theta,phi); 79 96 Particle weight; 80 81 97 82 98 7. GETTING STARTED: … … 86 102 87 103 setenv G4ANALYSIS_USE 1 104 105 otherwise do 106 107 unsetenv G4ANALYSIS_USE 88 108 89 otherwise make sure the G4ANALYSIS_USE is not defined: 90 91 unsetenv G4ANALYSIS_USE 109 to remove the generation of an output file. 92 110 93 111 ii) Build the exGPS executable: … … 106 124 $G4BIN/$G4SYSTEM/exGPS exrgps.in 107 125 108 If G4ANALYSIS_USE is defined, one should see a display of the six histograms. If JAIDA is used, one has 109 to close the plotter window in order to terminate the execution. After the termination one will find 110 the "exgps.aida", as well as a vrml file "g4_00.wrl" in the directory. 126 If G4ANALYSIS_USE is defined, and dpends on the particular AIDA system used, e.g. JAIDA, one could see 127 a display window of the six histograms. It may be neccessary to close the plotter window in order to 128 terminate the execution. After the termination one will find the "exgps.aida", as well as a vrml file 129 "g4_00.wrl" in the directory. 111 130 112 131 8. FURTHER EXAMPLES of MACRO FILES: … … 119 138 120 139 121 122 140 123 124
Note:
See TracChangeset
for help on using the changeset viewer.
