Skip to content

Commit

Permalink
Merge pull request #5412 from wouf/patch-6
Browse files Browse the repository at this point in the history
Hydjet integration as external
  • Loading branch information
cmsbuild authored Jul 22, 2020
2 parents 15a3694 + 301be52 commit 08a6cf8
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 3 deletions.
1 change: 1 addition & 0 deletions cmssw-tool-conf.spec
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Requires: hepmc-toolfile
Requires: heppdt-toolfile
Requires: herwig-toolfile
Requires: herwigpp-toolfile
Requires: hydjet-toolfile
Requires: ittnotify-toolfile
Requires: jemalloc-toolfile
Requires: jemalloc-debug-toolfile
Expand Down
23 changes: 23 additions & 0 deletions hydjet-toolfile.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
### RPM external hydjet-toolfile 1.0
Requires: hydjet
%prep

%build

%install

mkdir -p %i/etc/scram.d
cat << \EOF_TOOLFILE >%i/etc/scram.d/hydjet.xml
<tool name="hydjet" version="@TOOL_VERSION@">
<lib name="hydjet"/>
<client>
<environment name="HYDJET_BASE" default="@TOOL_ROOT@"/>
<environment name="LIBDIR" default="$HYDJET_BASE/lib"/>
</client>
<use name="pyquen"/>
<use name="pythia6"/>
<use name="lhapdf"/>
</tool>
EOF_TOOLFILE

## IMPORT scram-tools-post
20 changes: 20 additions & 0 deletions hydjet.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
### RPM external hydjet 1.9.1

Source: http://cern.ch/lokhtin/hydro/%{n}-%{realversion}.tar.gz

BuildRequires: cmake gmake

Requires: pyquen pythia6 lhapdf


%prep
%setup -q -n %{n}-%{realversion}

%build

cmake . -DCMAKE_INSTALL_PREFIX=%i -DCMAKE_BUILD_TYPE=Release -DPYQUEN_DIR=${PYQUEN_ROOT} -DPYTHIA6_DIR=${PYTHIA6_ROOT} -DLHAPDF_ROOT_DIR=${LHAPDF_ROOT}
cmake --build . --clean-first -- %{makeprocesses}

%install

cmake --build . --target install -- %{makeprocesses}
13 changes: 13 additions & 0 deletions hydjet/doc.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
- Requested, AddedBy:
@wouf

- PR:
https://github.com/cms-sw/cmsdist/pull/5412

- Description:
{hydjet} is event generator to simulate jet production, jet quenching and flow effects in ultrarelativistic heavy ion AA collisions
http://lokhtin.web.cern.ch/lokhtin/hydro/hydjet.html

- Documentation
http://lokhtin.web.cern.ch/lokhtin/hydro/hydjet.txt

6 changes: 3 additions & 3 deletions pyquen.spec
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
### RPM external pyquen 1.5.3
### RPM external pyquen 1.5.4

Source: http://lokhtin.web.cern.ch/lokhtin/%{n}/%{n}-%{realversion}.tar.gz

BuildRequires: cmake
BuildRequires: cmake gmake

Requires: pythia6 lhapdf

Expand All @@ -17,4 +17,4 @@ cmake --build . --clean-first -- %{makeprocesses}

%install

cmake --build . --target install --clean-first -- %{makeprocesses}
cmake --build . --target install -- %{makeprocesses}
13 changes: 13 additions & 0 deletions pyquen/doc.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
- Requested, AddedBy:
@wouf

- PR:
https://github.com/cms-sw/cmsdist/pull/4790

- Description:
{pyquen} is event generator for simulation of rescattering, radiative and collisional energy loss of hard partons in expanding quark-gluon plasma created in ultrarelativistic heavy ion AA collisions
http://lokhtin.web.cern.ch/lokhtin/pyquen/

- Documentation
http://lokhtin.web.cern.ch/lokhtin/pyquen/pyquen.txt

0 comments on commit 08a6cf8

Please sign in to comment.