Presentation is loading. Please wait.

Presentation is loading. Please wait.

6th April 2005Wah-kai Ngai1 First Example in Geant4 3rd HK simulation group meeting.

Similar presentations


Presentation on theme: "6th April 2005Wah-kai Ngai1 First Example in Geant4 3rd HK simulation group meeting."— Presentation transcript:

1 6th April 2005Wah-kai Ngai1 First Example in Geant4 3rd HK simulation group meeting

2 6th April 2005Wah-kai Ngai2 Novice Example N01 Can be found under $G4INSTALL/examples/novice/N01 in the theta13 server Copy the whole directory to your home directory if you want to compile, using the command, cp -r $G4INSTALL/examples/novice/N01.

3 6th April 2005Wah-kai Ngai3 Geometry Fixed geometry: rectangular box mother volume filled with argon gas, cylindrical tracker tube made by aluminum, lead block and aluminum slices as calorimeter See ExN01DetectorConstruction.cc for details

4 6th April 2005Wah-kai Ngai4 Particle and Process Incident particle = Geantino No real physics interaction, only transportation process (just move the particle!) See ExN01PhysicsList.cc for details (very simple)

5 6th April 2005Wah-kai Ngai5 Primary Particle Generation Declare number and type of primary particles to be generated Give energy and momentum to the primary particles See ExN01PrimaryGeneratorAction.cc for details

6 6th April 2005Wah-kai Ngai6 How to compile? Under the directory …/N01/, where you see the GNUmakefile, type gmake (or make) You should be able to find the executable under $G4WORKDIR/bin/$G4SYSTEM/

7 6th April 2005Wah-kai Ngai7 Output ********************************************************************************************************* * G4Track Information: Particle = geantino, Track ID = 1, Parent ID = 0 ********************************************************************************************************* Step# X(mm) Y(mm) Z(mm) KinE(MeV) dE(MeV) StepLeng TrackLeng NextVolume ProcName 0 -2e+03 0 0 1e+03 0 0 0 expHall initStep 1 -1.6e+03 0 40 1e+03 0 402 402 tracker Transportation 2 -400 0 160 1e+03 0 1.21e+03 1.61e+03 expHall Transportation 3 -5.94e-15 0 200 1e+03 0 402 2.01e+03 caloBlock Transportation 4 90 0 209 1e+03 0 90.4 2.1e+03 caloLayer Transportation 5 110 0 211 1e+03 0 20.1 2.12e+03 caloBlock Transportation 6 190 0 219 1e+03 0 80.4 2.2e+03 caloLayer Transportation 7 210 0 221 1e+03 0 20.1 2.22e+03 caloBlock Transportation 8 290 0 229 1e+03 0 80.4 2.3e+03 caloLayer Transportation 9 310 0 231 1e+03 0 20.1 2.32e+03 caloBlock Transportation 10 390 0 239 1e+03 0 80.4 2.4e+03 caloLayer Transportation 11 410 0 241 1e+03 0 20.1 2.42e+03 caloBlock Transportation 12 490 0 249 1e+03 0 80.4 2.5e+03 caloLayer Transportation postion K.E. energy deposit volume label process name

8 6th April 2005Wah-kai Ngai8 Remarks Those.hh files are header files which are used by the.cc files You can change the code and try to re- compile Each run ends when the Geantino travels outside the world volume Read the README file accompanied with the code Main program (exampleN01.cc) is somewhat standard. You can read the source code.

9 6th April 2005Wah-kai Ngai9 Summary This example demonstrates how the basic Geant4 framework works. We first define the detector geometry and materials Then physics processes are declared Final we have to generate primary event


Download ppt "6th April 2005Wah-kai Ngai1 First Example in Geant4 3rd HK simulation group meeting."

Similar presentations


Ads by Google