[1337] | 1 | 2004 NOvember 26 |
---|
| 2 | |
---|
| 3 | A) How to use MOMO. |
---|
| 4 | |
---|
| 5 | 1) cd here where src/ and include/ are located |
---|
| 6 | 2) "java -version" and check that your java virtual machine is version 1.4 |
---|
| 7 | (1.5 works with some malfuctionning) |
---|
| 8 | 3) "java -jar ../MOMO.jar" and MOMO starts |
---|
| 9 | 4) check that "set G4WORKDIR" displays this directory. If you change this, |
---|
| 10 | you will have faster access to files in that directory. |
---|
| 11 | |
---|
| 12 | B) How to use the example of a flattening filter |
---|
| 13 | |
---|
| 14 | 1) relevant files of this example are |
---|
| 15 | ./linac.cc |
---|
| 16 | ./Momomake.gmk |
---|
| 17 | ./flat.his (a macro file) |
---|
| 18 | ./src/flatteningFilter.cc |
---|
| 19 | ./include/flatteningFilter.hh |
---|
| 20 | All these files are generated automatically by MOMO, including the history macro file. |
---|
| 21 | |
---|
| 22 | 2) fill the tables from the persistent files |
---|
| 23 | a) GPE -> load file -> MomoN02PhysicsList.g4ph |
---|
| 24 | -> make C++ file -> save in src/ |
---|
| 25 | -> make header file -> save in include/ |
---|
| 26 | b) GGE -> load file -> flatteningFilter.g4dt |
---|
| 27 | -> make C++ file -> save in src/ |
---|
| 28 | -> make header file -> savle in include/ |
---|
| 29 | c) type i the name of the main program in the top field of MOMO panel |
---|
| 30 | |
---|
| 31 | 3) Project menu |
---|
| 32 | a) make main program -> save here |
---|
| 33 | b) make Makefile -> save here |
---|
| 34 | c) compile |
---|
| 35 | If some errors are found, correct them |
---|
| 36 | 4) run |
---|
| 37 | GAG -> Geant4 -> Start -> file chooser |
---|
| 38 | mouse click /control/execute -> file chooser -> flat.his -> OK |
---|
| 39 | and you will have OpenGL event display: |
---|
| 40 | e- 10MeV, entering the flattenig filter (same as the examples/extended/linac), |
---|
| 41 | changing the incident angles |
---|
| 42 | |
---|
| 43 | Enjoy! |
---|
| 44 | |
---|
| 45 | -------------------------------------------------------------------- |
---|
| 46 | |
---|
| 47 | 2002 March |
---|
| 48 | |
---|
| 49 | Momo's default home directory in which the default src and include |
---|
| 50 | directories and the default four classes are placed. |
---|
| 51 | |
---|
| 52 | src/MomoEventAction.cc |
---|
| 53 | src/MomoRunAction.cc |
---|
| 54 | src/MomoPrimaryGeneratorAction.cc |
---|
| 55 | src/MomoVisManager.cc |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | include/MomoEventAction.hh |
---|
| 59 | include/MomoRunAction.hh |
---|
| 60 | include/MomoPrimaryGeneratorAction.hh |
---|
| 61 | include/MomoVisManager.hh |
---|
| 62 | |
---|
| 63 | A macro file is included to visualise events and trajectories |
---|
| 64 | |
---|
| 65 | ./vis.mac |
---|
| 66 | |
---|
| 67 | And this file |
---|
| 68 | |
---|
| 69 | ./README |
---|
| 70 | |
---|
| 71 | |
---|