Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
hepsim:dev_fast [2017/03/19 14:06] hepsim17 [Reproducing HepSim simulations] |
hepsim:dev_fast [2018/04/27 16:35] hepsim17 |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{indexmenu_n> | + | {{indexmenu_n> |
[[: | [[: | ||
- | Fast simulations in the HepSim are posted under the [[http:// | + | ====== Creating Delphes files ====== |
- | to [[http:// | + | |
- | ===== Creating Delphes files ===== | ||
- | Here we describe how to make fast detector simulation files | + | Fast simulations in the HepSim are posted under the [[http://atlaswww.hep.anl.gov/hepsim/list.php? |
- | using separate external libraries, without installing FastHepSim. | + | |
- | Use the [[https://cp3.irmp.ucl.ac.be/projects/delphes | + | |
- | <code bash> | + | |
- | echo $PROMC $ROOTSYS | + | |
- | </ | + | |
- | This should point to the installation paths of ProMC and ROOT. | + | |
- | + | ||
- | Here are the steps to perform a fast detector simulation using ProMC files from the HepSim repository: | + | |
- | 1) Download | + | Generally, you do not need to install Delphes to run fast simulations. You can run fast simulations using the HepSim singularity container. This topic is described in [[hepsim:dev_singularity|HepSim singularity container]] section. |
- | <code bash> | + | |
- | wget http:// | + | |
- | tar -zvxf Delphes-3.3.0.tar.gz | + | |
- | cd Delphes-3.3.0 | + | |
- | ./ | + | |
- | make | + | |
- | </ | + | |
- | This creates the converter " | + | |
- | 2) For FCC studies, copy and modify | + | Below is the description how to use Delphes if you do not want to use the HepSim docker container. |
- | <code bash> | + | |
- | cp cards/ | + | |
- | </ | + | |
- | Then remove the line " | + | |
- | We do not use the tau tagging module since it requires complete event records with all mother particles. Since ProMC files are often slimmed by removing some unstable low pT particles and showered partons, Delphes will fail on this line. If you need tau tagging, please use ProMC files with complete particle record. | + | |
- | 3) Download Monte Carlo files from the [[ http:// | + | ===== Creating Delphes files ===== |
- | For example, get a file with 5000 ttbar events generated for a 100 TeV collider: | + | |
- | <code bash> | + | |
- | wget http:// | + | |
- | </ | + | |
- | + | ||
- | and then create a ROOT file with reconstructed objects after a fast detector simulation (FCC detector): | + | |
+ | Here we describe how to make fast detector simulation files using separate external libraries, without installing FastHepSim. Use the [[https:// | ||
<code bash> | <code bash> | ||
- | ./ | + | echo $PROMC $ROOTSYS |
</ | </ | ||
- | The conversion typically takes 30 seconds. | + | This should point to the installation paths of ProMC and ROOT. The detectors configurations for Delphes together with appropriate Delphes package are posted to [[http:// |
- | + | ||
- | ===== Reproducing HepSim simulations | + | |
- | The detectors configurations for Delphes together with appropriate Delphes package | + | |
- | are posted to [[http:// | + | |
Copy the ZIP file with Delphes card and Delphes package and compile it. | Copy the ZIP file with Delphes card and Delphes package and compile it. | ||
Line 58: | Line 26: | ||
<code bash> | <code bash> | ||
- | echo $PROMC | ||
- | echo $ROOTSYS | ||
det=" | det=" | ||
wget http:// | wget http:// | ||
Line 65: | Line 31: | ||
cd $det | cd $det | ||
tar --strip-components=1 -zvxf Delphes*.tar.gz # untar in the current directory | tar --strip-components=1 -zvxf Delphes*.tar.gz # untar in the current directory | ||
- | ./cofigure | + | ./configure; make # configure and compile |
- | ./ | + | </ |
+ | The last command should create the binary file " | ||
+ | |||
+ | <code bash> | ||
+ | wget http:// | ||
+ | ./ | ||
</ | </ | ||
+ | This commands creates a ROOT file with fast simulations. | ||
+ | |||
+ | < | ||
+ | Detector configuration files [detector].zip include the Delphes source code used to make the simulation tag, | ||
+ | and the input control card " | ||
+ | </ | ||
- | Now you can create a complete list of input files. Here is how to do this: | + | You can create a complete list of input files. Here is how to do this: |
<code bash> | <code bash> | ||
Line 85: | Line 62: | ||
</ | </ | ||
where [setname] is the dataset name, such as " | where [setname] is the dataset name, such as " | ||
- | If you know URL of the mirror, replaces [setname] with qualified URL pointing to your dataset. | + | If you know URL of the mirror, replaces [setname] with qualified URL pointing to your dataset. Now, you have the necessary tools. Fetch the list of URLs with input files, and make a loop over files. |
- | Now, you have the necessary tools. Fetch the list of URLs with input files, and make a loop over files. | ||
+ | One can also run Delphes in an automated mode, without the above scripts. You need to use " | ||
+ | <code bash> | ||
+ | hs-exec DelphesProMC card.tcl output.root [URL] [Nfiles] | ||
+ | </ | ||
+ | where [URL] is HepSim location of files and [Nfiles] is the number of files for processing. | ||
+ | The output ROOT will be located inside " | ||
+ | Here is a small example: | ||
+ | <code bash> | ||
+ | hs-exec DelphesProMC card.tcl output.root http:// | ||
+ | </ | ||
+ | which processes 5 files from [[http:// | ||
+ | |||
+ | |||
+ | |||
+ | ====== Creating files manually ====== | ||
+ | |||
+ | |||
+ | If you want to create a new simulations with updated Delphes and input cards, follow these steps: | ||
+ | |||
+ | |||
+ | (1) Download [[http:// | ||
+ | <code bash> | ||
+ | tar -zvxf Delphes-X.X.Xtar.gz | ||
+ | cd Delphes-X.X.X.tar.gz | ||
+ | ./configure | ||
+ | make | ||
+ | </ | ||
+ | where " | ||
+ | |||
+ | (2) Copy and modify the detector configuration files. The configuration files with the extension " | ||
+ | |||
+ | Often, | ||
+ | |||
+ | Download Monte Carlo files from the [[ http:// | ||
+ | For example, get a file with 5000 ttbar events generated for a 100 TeV collider: | ||
+ | <code bash> | ||
+ | wget http:// | ||
+ | </ | ||
+ | |||
+ | and then create a ROOT file with reconstructed objects after a fast detector simulation (FCC detector): | ||
+ | |||
+ | <code bash> | ||
+ | ./ | ||
+ | </ | ||
===== On the fly reconstruction ===== | ===== On the fly reconstruction ===== | ||
Line 159: | Line 179: | ||
+ | <note important> | ||
+ | {{ : | ||