Skip to content

Commit c1a4f22

Browse files
authored
Merge pull request #2 from JETSCAPE/XSCAPE-1.0-for-public-repo
Xscape 1.0 for public repo
2 parents 365a0f3 + a049e47 commit c1a4f22

File tree

126 files changed

+1261
-653
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+1261
-653
lines changed

.github/workflows/plot_observables.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- main
7+
- XSCAPE-RC2
8+
- XSCAPE-1.0-for-public-repo
79

810
env:
911
PULL_NUMBER: ${{ github.event.number }}

.github/workflows/test-build-external.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ on:
44
pull_request:
55
branches:
66
- main
7+
- XSCAPE-RC2
8+
- XSCAPE-1.0-for-public-repo
79

810
push:
911
branches:
1012
- main
13+
- XSCAPE-RC2
14+
- XSCAPE-1.0-for-public-repo
1115

1216
env:
1317
REPO_NAME: ${{ github.event.repository.name }}

.github/workflows/test-events-PbPb.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ on:
44
pull_request:
55
branches:
66
- main
7+
- XSCAPE-RC2
8+
- XSCAPE-1.0-for-public-repo
79

810
push:
911
branches:
1012
- main
13+
- XSCAPE-RC2
14+
- XSCAPE-1.0-for-public-repo
1115

1216
env:
1317
REPO_NAME: ${{ github.event.repository.name }}

.github/workflows/test-events-Pythia-Isr-Dat.yaml

+8-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ on:
44
pull_request:
55
branches:
66
- main
7+
- XSCAPE-RC2
8+
- XSCAPE-1.0-for-public-repo
79

810
push:
911
branches:
1012
- main
13+
- XSCAPE-RC2
14+
- XSCAPE-1.0-for-public-repo
1115

1216
env:
1317
REPO_NAME: ${{ github.event.repository.name }}
@@ -28,17 +32,19 @@ jobs:
2832
with:
2933
path: ${{ github.event.repository.name }}
3034

31-
- name: Download 3DGlouber
35+
- name: Download 3DGlauber
3236
run: |
3337
cd ${GITHUB_WORKSPACE}/${REPO_NAME}/external_packages
3438
./get_3dglauber.sh
39+
./get_music.sh
40+
./get_iSS.sh
3541
3642
- name: Build Application
3743
run: |
3844
cd ${GITHUB_WORKSPACE}/${REPO_NAME}
3945
mkdir build
4046
cd build
41-
cmake .. -DCMAKE_CXX_STANDARD=14 -DUSE_3DGlauber=ON
47+
cmake .. -DCMAKE_CXX_STANDARD=14 -DUSE_3DGlauber=ON -DUSE_MUSIC=ON -DUSE_ISS=ON
4248
make -j2
4349
4450
- name: Checkout TEST-EXAMPLES

.github/workflows/test-events-Pythia-Isr-Hadron.yaml

+8-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ on:
44
pull_request:
55
branches:
66
- main
7+
- XSCAPE-RC2
8+
- XSCAPE-1.0-for-public-repo
79

810
push:
911
branches:
1012
- main
13+
- XSCAPE-RC2
14+
- XSCAPE-1.0-for-public-repo
1115

1216
env:
1317
REPO_NAME: ${{ github.event.repository.name }}
@@ -28,17 +32,19 @@ jobs:
2832
with:
2933
path: ${{ github.event.repository.name }}
3034

31-
- name: Download 3DGlouber
35+
- name: Download 3DGlauber
3236
run: |
3337
cd ${GITHUB_WORKSPACE}/${REPO_NAME}/external_packages
3438
./get_3dglauber.sh
39+
./get_music.sh
40+
./get_iSS.sh
3541
3642
- name: Build Application
3743
run: |
3844
cd ${GITHUB_WORKSPACE}/${REPO_NAME}
3945
mkdir build
4046
cd build
41-
cmake .. -DCMAKE_CXX_STANDARD=14 -DUSE_3DGlauber=ON
47+
cmake .. -DCMAKE_CXX_STANDARD=14 -DUSE_3DGlauber=ON -DUSE_MUSIC=ON -DUSE_ISS=ON
4248
make -j2
4349
4450
- name: Checkout TEST-EXAMPLES

.github/workflows/test-events-Pythia-Isr-Parton.yaml

+8-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ on:
44
pull_request:
55
branches:
66
- main
7+
- XSCAPE-RC2
8+
- XSCAPE-1.0-for-public-repo
79

810
push:
911
branches:
1012
- main
13+
- XSCAPE-RC2
14+
- XSCAPE-1.0-for-public-repo
1115

1216
env:
1317
REPO_NAME: ${{ github.event.repository.name }}
@@ -28,17 +32,19 @@ jobs:
2832
with:
2933
path: ${{ github.event.repository.name }}
3034

31-
- name: Download 3DGlouber
35+
- name: Download 3DGlauber
3236
run: |
3337
cd ${GITHUB_WORKSPACE}/${REPO_NAME}/external_packages
3438
./get_3dglauber.sh
39+
./get_music.sh
40+
./get_iSS.sh
3541
3642
- name: Build Application
3743
run: |
3844
cd ${GITHUB_WORKSPACE}/${REPO_NAME}
3945
mkdir build
4046
cd build
41-
cmake .. -DCMAKE_CXX_STANDARD=14 -DUSE_3DGlauber=ON
47+
cmake .. -DCMAKE_CXX_STANDARD=14 -DUSE_3DGlauber=ON -DUSE_MUSIC=ON -DUSE_ISS=ON
4248
make -j2
4349
4450
- name: Checkout TEST-EXAMPLES

.github/workflows/test-events-pp.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ on:
44
pull_request:
55
branches:
66
- main
7+
- XSCAPE-RC2
8+
- XSCAPE-1.0-for-public-repo
79

810
push:
911
branches:
1012
- main
13+
- XSCAPE-RC2
14+
- XSCAPE-1.0-for-public-repo
1115

1216
env:
1317
REPO_NAME: ${{ github.event.repository.name }}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*.*~
1010
.DS_Store
1111
.vscode
12+
.bash_history
1213
html/*
1314
build*/*
1415
external_packages/LBT*

CMakeLists.txt

+24-19
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ endif (USE_SMASH)
104104
message("Compiler and Linker flags ...")
105105
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -pipe -Wall -std=c++11")
106106
## can turn off some warnings
107-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-reorder -Wno-unused-variable -Wno-deprecated-copy -Wno-unused-value")
107+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-reorder -Wno-unused-variable -Wno-inconsistent-missing-override -Wno-unused-private-field")
108108
## Then set the build type specific options. These will be automatically appended.
109109
set(CMAKE_CXX_FLAGS_DEBUG "-g -O0")
110-
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -w")
110+
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
111111

112112
## can turn on debugging information
113113
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
@@ -117,7 +117,7 @@ set(CMAKE_CXX_FLAGS_RELEASE "-O3 -w")
117117
if (APPLE)
118118
message( STATUS "Apple : " ${CMAKE_HOST_SYSTEM})
119119
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang")
120-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -Wno-inconsistent-missing-override -Wno-unused-private-field -Wno-delete-non-abstract-non-virtual-dtor")
120+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++" )
121121
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
122122
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-sign-compare -Wno-unused-but-set-variable -Wno-parentheses -fext-numeric-literals")
123123
endif()
@@ -310,6 +310,7 @@ if (USE_ROOT)
310310
if (${ROOT_FOUND})
311311
#include_directories(${ROOT_INCLUDES})
312312
include_directories(${ROOT_INCLUDE_DIRS})
313+
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_ROOT" )
313314
Message(STATUS "ROOT Include dir : " ${ROOT_INCLUDE_DIRS})
314315
Message(STATUS "ROOT Libraries : " ${ROOT_LIBRARIES})
315316
endif()
@@ -348,6 +349,12 @@ include_directories(./external_packages/gtl/include )
348349
include_directories(./external_packages/hydro_from_external_file )
349350
include_directories(./examples/ )
350351

352+
if (USE_ROOT)
353+
if ("${ROOT_FOUND}")
354+
include_directories(./src/root)
355+
#add_subdirectory(./src/root)
356+
endif()
357+
endif(USE_ROOT)
351358

352359
### include_directories will be expanded as packages are found
353360

@@ -432,13 +439,6 @@ if (OPENCL_FOUND AND USE_CLVISC)
432439
add_subdirectory( ${CMAKE_SOURCE_DIR}/external_packages/clvisc_wrapper )
433440
endif (OPENCL_FOUND AND USE_CLVISC)
434441

435-
if (USE_ROOT)
436-
if (${ROOT_FOUND})
437-
include_directories(./src/root)
438-
add_subdirectory(./src/root)
439-
endif()
440-
endif(USE_ROOT)
441-
442442
###########################
443443
### Binary location ###
444444
###########################
@@ -477,20 +477,25 @@ target_link_libraries(FinalStateHadrons JetScape )
477477
add_executable(FinalStatePartons ./examples/FinalStatePartons.cc)
478478
target_link_libraries(FinalStatePartons JetScape )
479479

480-
if(USE_3DGlauber)
480+
add_executable(PythiaBrickTest ./examples/custom_examples/PythiaBrickTest.cc)
481+
target_link_libraries(PythiaBrickTest JetScape )
482+
483+
if(USE_3DGlauber AND USE_MUSIC AND USE_ISS)
481484
add_executable(PythiaIsrTest ./examples/PythiaIsrTest.cc)
482485
target_link_libraries(PythiaIsrTest JetScape )
483-
endif (USE_3DGlauber )
484-
485-
#add_executable(PythiaBrickTest ./examples/custom_examples/PythiaBrickTest.cc)
486-
#target_link_libraries(PythiaBrickTest JetScape )
486+
add_executable(PythiaIsrMUSIC ./examples/custom_examples/PythiaIsrMUSIC.cc)
487+
target_link_libraries(PythiaIsrMUSIC JetScape )
488+
endif (USE_3DGlauber AND USE_MUSIC AND USE_ISS )
487489

488490
#add_executable(PythiaBDMTest ./examples/custom_examples/PythiaBDMTest.cc)
489491
#target_link_libraries(PythiaBDMTest JetScape )
490492

491493
#add_executable(PythiaNoBDMTest ./examples/custom_examples/PythiaNoBDMTest.cc)
492494
#target_link_libraries(PythiaNoBDMTest JetScape )
493495

496+
#add_executable(PythiaBDMTest_Hydro_Cascade ./examples/custom_examples/PythiaBDMTest_Hydro_Cascade.cc)
497+
#target_link_libraries(PythiaBDMTest_Hydro_Cascade JetScape )
498+
494499
if ( USE_SMASH )
495500
add_executable(SMASHTest ./examples/custom_examples/SMASHTest.cc)
496501
target_link_libraries(SMASHTest JetScape )
@@ -515,10 +520,10 @@ if ( USE_MUSIC AND USE_ISS AND USE_SMASH )
515520
endif ( USE_MUSIC AND USE_ISS AND USE_SMASH )
516521

517522
if (USE_ROOT)
518-
if (${ROOT_FOUND})
519-
add_executable(PythiaBrickTestRoot ./examples/custom_examples/PythiaBrickTestRoot.cc)
520-
target_link_libraries(PythiaBrickTestRoot JetScape JetScapeRoot)
521-
endif(${ROOT_FOUND})
523+
#if (${ROOT_FOUND})
524+
# add_executable(PythiaBrickTestRoot ./examples/custom_examples/PythiaBrickTestRoot.cc)
525+
# target_link_libraries(PythiaBrickTestRoot JetScape)
526+
#endif(${ROOT_FOUND})
522527
endif(USE_ROOT)
523528

524529

README.md

+7-15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# X-SCAPE 0.9.1
1+
# X-SCAPE 1.0
22

33
The X-ion collisions with a Statistically and Computationally Advanced Program Envelope (X-SCAPE) is the enhanced (and 2nd) project of the JETSCAPE
44
collaboration which extends the framework to include small systems created in p-A and p-p collisions, lower energy heavy-ion collisions and electron-Ion collisions.
@@ -16,18 +16,7 @@ Please cite [The JETSCAPE framework](https://arxiv.org/abs/1903.07706) if you us
1616

1717
## Installation
1818

19-
When following the JETSCAPE installation instructions to install X-SCAPE, the Docker image tagged **v1.8** should be used instead of the image tagged as **stable**.
20-
21-
For example, when the JETSCAPE instructions specify creating a container using the **stable** tag:
22-
```
23-
docker run -it -v ~/jetscape-docker:/home/jetscape-user --name myJetscape --user $(id -u):$(id -g) jetscape/base:stable
24-
```
25-
Instead use **v1.8** when installing X-SCAPE:
26-
```
27-
docker run -it -v ~/jetscape-docker:/home/jetscape-user --name myJetscape --user $(id -u):$(id -g) jetscape/base:v1.8
28-
```
29-
30-
Also, dependencies in Docker image **v1.8** require cmake to be called specifying the language standard C++14 or greater when compiling X-SCAPE.
19+
Note that X-SCAPE dependencies require cmake to be called specifying the language standard C++14 or greater.
3120

3221
For example, to compile X-SCAPE for the ISR run with [3DGlauber support](#3dglauber-support), run the get_3dglauber.sh script from the external_packages folder:
3322
```bash
@@ -42,7 +31,7 @@ make -j4 # Builds using 4 cores; adapt as appropriate
4231
```
4332
If installing X-SCAPE with SMASH, the [get_smash.sh](https://github.com/JETSCAPE/X-SCAPE-COMP/blob/main/external_packages/get_smash.sh) script will clone an [alternate branch](https://github.com/smash-transport/smash/tree/staudenmaier/mod_plist_ts) of SMASH currently required for use with X-SCAPE. A future release of SMASH will bring X-SCAPE support to SMASH's main branch.
4433

45-
Please see the [Installation Instructions](https://github.com/JETSCAPE/JETSCAPE/wiki/Doc.Installation).
34+
Please see the complete [Installation Instructions](https://github.com/JETSCAPE/X-SCAPE/wiki/Doc.Installation) here.
4635

4736
## Running X-SCAPE/JETSCAPE
4837

@@ -130,11 +119,14 @@ To compile the 3DGlauber code together with the JETSCAPE framework, please turn
130119
cmake -DCMAKE_CXX_STANDARD=14 -DUSE_3DGlauber=ON ..
131120
make -j4
132121
```
122+
123+
For more details see [3DGlauber](https://github.com/JETSCAPE/X-SCAPE/wiki/3DGlauber,-MUSIC,-iSS-and-Initial-State-Radiation).
124+
133125
### Initial State Shower using iMatter
134126

135127
To use the ISR shower of iMatter, please make sure that the environment variable `$PYTHIA8` is set and points to the directory where pythia8 is installed which can be found using `pythia8-config --prefix`. If you use the JETSCAPE docker container (v1.8), all environment variables, including the `$PYTHIA8` for iMatter are set properly.
136128

137-
After using 3DGlauber support to compile JETSCAPE, one can use `./PythiaIsrTest` (in the build directory) to run iMatter and 3DGlauber which uses the xml user file `config/jetscape_user_iMATTERMCGlauber.xml`
129+
After using 3DGlauber support to compile JETSCAPE, one can use `./PythiaIsrTest` (in the build directory) to run iMatter and 3DGlauber which uses the xml user file `config/jetscape_user_iMATTERMCGlauber.xml`. For running 3DGlauber with Hydro (Music) please see [3DGlauber](https://github.com/JETSCAPE/X-SCAPE/wiki/3DGlauber,-MUSIC,-iSS-and-Initial-State-Radiation).
138130

139131

140132
## JETSCAPE modules

0 commit comments

Comments
 (0)