📜  delphes install - Shell-Bash (1)

📅  最后修改于: 2023-12-03 15:00:23.725000             🧑  作者: Mango

Delphes Install - Shell/Bash

Introduction

Delphes is a fast detector simulator for High Energy Physics (HEP) applications. It is capable of simulating a variety of detectors such as CMS, ATLAS, and LHCb. This guide will walk you through the installation process of Delphes in Shell/Bash.

Prerequisites

Before installing Delphes, you will need to have the following installed on your system:

  • C++ compiler
  • make
  • ROOT framework
Installation
  1. Download Delphes from the official website: https://cp3.irmp.ucl.ac.be/projects/delphes
  2. Extract the downloaded file using the following command:
    tar xvzf Delphes-<version>.tgz
    
    Replace <version> with the specific version of Delphes you downloaded.
  3. Navigate to the Delphes directory:
    cd Delphes-<version>
    
  4. Compile Delphes using make:
    make -j4
    
    The -j flag specifies the number of cores to use for compilation. Adjust this value based on the number of cores available on your system.
  5. If the compilation is successful, you should see a Delphes executable file in the directory. You can test the installation by running the following command:
    ./Delphes examples/delphes_card_CMS.tcl examples/delphes_output.root examples/delphes_input.root
    
    This will simulate a CMS detector using a sample input file and output the results to a ROOT file.
Conclusion

Congratulations! You have successfully installed Delphes using Shell/Bash. Now you can start using Delphes to simulate detectors for your High Energy Physics applications.