... | ... | @@ -173,7 +173,41 @@ add these lines in your .bash_profile to get the environment set automatically w |
|
|
### 2. Source `setup_env.sh` if not done with `.bash_profile`
|
|
|
- `source ~/setup_env.sh`
|
|
|
|
|
|
### 3. Test Geant4 installation
|
|
|
### 3. Test ROOT Installation
|
|
|
|
|
|
Example of root v6.30/04.
|
|
|
|
|
|
Start the ROOT interactive session:
|
|
|
```
|
|
|
$ root
|
|
|
------------------------------------------------------------------
|
|
|
| Welcome to ROOT 6.30/04 https://root.cern |
|
|
|
| (c) 1995-2024, The ROOT Team; conception: R. Brun, F. Rademakers |
|
|
|
| Built for linuxx8664gcc on Jan 31 2024, 10:01:37 |
|
|
|
| From heads/master@tags/v6-30-04 |
|
|
|
| With c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 |
|
|
|
| Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q' |
|
|
|
------------------------------------------------------------------
|
|
|
```
|
|
|
|
|
|
and type `.demo` after the ROOT prompt:
|
|
|
```
|
|
|
root [0] .demo
|
|
|
```
|
|
|
|
|
|
You will see the ROOT demo bar and can run some demos by clicking on the demo menu.
|
|
|
You need to go from up to down in the menu, some demos depend on the previous demos results.
|
|
|
|
|
|
To quit ROOT type .q on the ROOT prompt
|
|
|
```
|
|
|
root [1] .q
|
|
|
|
|
|
Taking a break from ROOT? Hope to see you back!
|
|
|
|
|
|
$
|
|
|
```
|
|
|
|
|
|
### 4. Test Geant4 installation
|
|
|
|
|
|
You can try to compile and run one of the Geant4 examples.
|
|
|
|
... | ... | @@ -187,18 +221,16 @@ $ cmake /usr/local/geant4/11.2.0/share/Geant4/examples/basic/B1 |
|
|
|
|
|
You should see something like the output below. Watch for eventual configuration errors.
|
|
|
```
|
|
|
-- The C compiler identification is GNU 9.3.0
|
|
|
-- The CXX compiler identification is GNU 9.3.0
|
|
|
-- Check for working C compiler: /usr/bin/cc
|
|
|
-- Check for working C compiler: /usr/bin/cc -- works
|
|
|
-- The C compiler identification is GNU 11.4.0
|
|
|
-- The CXX compiler identification is GNU 11.4.0
|
|
|
-- Detecting C compiler ABI info
|
|
|
-- Detecting C compiler ABI info - done
|
|
|
-- Check for working C compiler: /usr/bin/cc - skipped
|
|
|
-- Detecting C compile features
|
|
|
-- Detecting C compile features - done
|
|
|
-- Check for working CXX compiler: /usr/bin/c++
|
|
|
-- Check for working CXX compiler: /usr/bin/c++ -- works
|
|
|
-- Detecting CXX compiler ABI info
|
|
|
-- Detecting CXX compiler ABI info - done
|
|
|
- Check for working CXX compiler: /usr/bin/c++ - skipped
|
|
|
-- Detecting CXX compile features
|
|
|
-- Detecting CXX compile features - done
|
|
|
-- Found EXPAT: /usr/lib/x86_64-linux-gnu/libexpat.so (found suitable version "2.2.9", minimum required is "2.2.9")
|
... | ... | @@ -219,7 +251,7 @@ You should see something like the output below. Watch for eventual configuratio |
|
|
-- Looking for IceConnectionNumber in ICE - found
|
|
|
-- Configuring done
|
|
|
-- Generating done
|
|
|
-- Build files have been written to: /home/semenjuk/tmp/B5-build
|
|
|
-- Build files have been written to: /home/semenjuk/tmp/B1-build
|
|
|
```
|
|
|
Now you can build the application with `make -j4` where -j4 is the number of parallel make processes.
|
|
|
|
... | ... | @@ -277,6 +309,7 @@ G4WT1 > /run/physicsModified |
|
|
<snip>
|
|
|
...
|
|
|
|
|
|
|
|
|
================== Deleting memory pools ===================
|
|
|
Pool ID '20G4NavigationLevelRep', size : 0.00288 MB
|
|
|
Pool ID '24G4ReferenceCountedHandleIvE', size : 0.000961 MB
|
... | ... | @@ -290,39 +323,6 @@ StateManager deleted. |
|
|
RunManagerKernel is deleted. Good bye :)
|
|
|
```
|
|
|
|
|
|
### 4. Test ROOT Installation
|
|
|
|
|
|
Example of root v6.22/02.
|
|
|
|
|
|
Start the ROOT interactive session:
|
|
|
```
|
|
|
$ root
|
|
|
------------------------------------------------------------------
|
|
|
| Welcome to ROOT 6.22/02 https://root.cern |
|
|
|
| (c) 1995-2020, The ROOT Team; conception: R. Brun, F. Rademakers |
|
|
|
| Built for linuxx8664gcc on Aug 17 2020, 12:46:52 |
|
|
|
| From tags/v6-22-02@v6-22-02 |
|
|
|
| Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
|
|
|
------------------------------------------------------------------
|
|
|
```
|
|
|
|
|
|
and type `.demo` after the ROOT prompt:
|
|
|
```
|
|
|
root [0] .demo
|
|
|
```
|
|
|
|
|
|
You will see the ROOT demo bar and can run some demos by clicking on the demo menu.
|
|
|
You need to go from up to down in the menu, some demos depend on the previous demos results.
|
|
|
|
|
|
To quit ROOT type .q on the ROOT prompt
|
|
|
```
|
|
|
root [1] .q
|
|
|
|
|
|
Taking a break from ROOT? Hope to see you back!
|
|
|
|
|
|
$
|
|
|
```
|
|
|
|
|
|
## Tips ##
|
|
|
|
|
|
- Geant4
|
... | ... | |