Skip to content

Commit

Permalink
Merge pull request #7483 from wouf/IB/CMSSW_12_2_X/master
Browse files Browse the repository at this point in the history
external lib for HYDJET++
  • Loading branch information
smuzaffar committed Feb 8, 2022
2 parents f61ac37 + 4175cf6 commit bbd5012
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmssw-tool-conf.spec
Expand Up @@ -41,6 +41,7 @@ Requires: heppdt
Requires: herwig
Requires: herwig7
Requires: hydjet
Requires: hydjet2
Requires: ittnotify
Requires: jemalloc
Requires: jemalloc-debug
Expand Down
24 changes: 24 additions & 0 deletions hydjet2.spec
@@ -0,0 +1,24 @@
### RPM external hydjet2 2.4.3

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


BuildRequires: cmake gmake

Requires: pyquen pythia6 lhapdf root


%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} -DROOTSYS=${ROOT_ROOT}
cmake --build . --clean-first -- %{makeprocesses}

%install

cmake --build . --target install -- %{makeprocesses}

mkdir -p %{i}/data/externals/hydjet2
mv %{i}/share/* %{i}/data/externals/hydjet2
10 changes: 10 additions & 0 deletions hydjet2/doc.txt
@@ -0,0 +1,10 @@
- Requested, AddedBy:
@wouf

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

- Description:
{hydjet2} is event generator for simulation of relativistic heavy ion AA collisions as a superposition of the soft, hydro-type state and the hard, multi-parton state.
- Documentation
http://cern.ch/lokhtin/hydjet++/documentation/
15 changes: 15 additions & 0 deletions scram-tools.file/tools/hydjet2/hydjet2.xml
@@ -0,0 +1,15 @@
<tool name="hydjet2" version="@TOOL_VERSION@">
<lib name="hydjet2"/>
<client>
<environment name="HYDJET2_BASE" default="@TOOL_ROOT@"/>
<environment name="LIBDIR" default="$HYDJET2_BASE/lib64"/>
<environment name="INCLUDE" default="$HYDJET2_BASE/include"/>
</client>
<runtime name="CMSSW_SEARCH_PATH" default="$HYDJET2_BASE/data" type="path"/>
<runtime name="ROOT_INCLUDE_PATH" value="$INCLUDE" type="path"/>
<use name="pyquen"/>
<use name="pythia6"/>
<use name="lhapdf"/>
<use name="root"/>
<flags SYSTEM_INCLUDE="1"/>
</tool>

0 comments on commit bbd5012

Please sign in to comment.