-
Notifications
You must be signed in to change notification settings - Fork 11
HowToInstall
The recommended way to install hh-italian-group framework is by using install_framework.sh script.
curl -s https://raw.githubusercontent.com/hh-italian-group/h-tautau/master/install_framework.sh | bash -s MODE [N_JOBS] [CMSSW_RELEASE]
where MODE is the installation mode: prod for tuples production, ana for tuples analysis, and limits for limits extraction; N_JOBS is the number of jobs to run simultaneous during the compilation (default 4), CMSSW_RELEASE is the CMSSW release (default value depends on the installation mode).
Examples:
# For tuples production
curl -s https://raw.githubusercontent.com/hh-italian-group/h-tautau/master/install_framework.sh | bash -s prod
# For tuples analysis
curl -s https://raw.githubusercontent.com/hh-italian-group/h-tautau/master/install_framework.sh | bash -s ana
a) Install MacPorts from https://www.macports.org/ following the instructions.
b) create $HOME/login.sh with environment setup and source it in $HOME/.bashrc (or other init config file, depending on your shell). Example of $HOME/login.sh is listed below. Please, adjust variables according your setup.
# login.sh
export CMSSW_RELEASE_BASE_SRC=$HOME/workspace/cmssw # CMSSW source directory (see next steps)
export PATH=/opt/local/bin:/usr/local/bin:/usr/bin:/bin
launchctl setenv CMSSW_RELEASE_BASE_SRC "$CMSSW_RELEASE_BASE_SRC"
Apply environment from $HOME/login.sh:
$ source $HOME/login.sh
c) Clone CMSSW source code
$ mkdir -p "$CMSSW_RELEASE_BASE_SRC"
$ cd "$CMSSW_RELEASE_BASE_SRC"
$ git clone [email protected]:cms-sw/cmssw.git .
$ git checkout CMSSW_7_6_X
d) Install MacPorts packages.
$ sudo port install cmake boost kerberos5 root6 xrootd
$ cd MY_WORKING_DIRECTORY
$ git clone [email protected]:hh-italian-group/AnalysisTools.git
$ git clone [email protected]:hh-italian-group/h-tautau.git
$ git clone [email protected]:hh-italian-group/hh-bbtautau.git
$ ./AnalysisTools/Run/install.sh build AnalysisTools h-tautau hh-bbtautau
a) Install QtCreator from http://www.qt.io/download/
b) Start QtCreator and click "Open Project".
c) Choose CMakeLists.txt in the project root directory. If asked for cmake path, choose /opt/local/bin/cmake
d) Set build path to MY_WORKING_DIRECTORY/build/PROJECT_NAME
e) Run cmake.
f) Open project configuration:
- set Build Environment path to /opt/local/bin:/usr/local/bin:/usr/bin:/bin
- set Run Working directory to MY_WORKING_DIRECTORY
g) Build the project (use Cmd ⌘B)
- To add new file: create in outside of the qtcreator (for example, "touch my_file.h") and rerun cmake.
- It is possible to running and debug the code within the qtcreator