Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
hepsim:dev_fast [2017/03/19 14:01] hepsim17 [Reproducing HepSim simulations] |
hepsim:dev_fast [2017/08/30 12:41] hepsim17 |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | | + | |
[[: | [[: | ||
- | Fast simulations in the HepSim are posted under the [[http:// | + | ====== Creating Delphes files ====== |
- | to [[http:// | + | |
+ | |||
+ | Fast simulations in the HepSim are posted under the [[http:// | ||
===== Creating Delphes files ===== | ===== Creating Delphes files ===== | ||
- | Here we describe how to make fast detector simulation files | + | Here we describe how to make fast detector simulation files using separate external libraries, without installing FastHepSim. Use the [[https:// |
- | using separate external libraries, without installing FastHepSim. | + | |
- | Use the [[https:// | + | |
<code bash> | <code bash> | ||
echo $PROMC $ROOTSYS | echo $PROMC $ROOTSYS | ||
</ | </ | ||
- | This should point to the installation paths of ProMC and ROOT. | + | 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:// |
- | + | Copy the ZIP file with Delphes card and Delphes package and compile it. | |
- | Here are the steps to perform a | + | |
+ | Here is an example of how to re-create | ||
+ | corresponds to the detector | ||
- | 1) Download [[http:// | ||
<code bash> | <code bash> | ||
- | wget http://cp3.irmp.ucl.ac.be/downloads/Delphes-3.2.0.tar.gz | + | det=" |
- | tar -zvxf Delphes-3.3.0.tar.gz | + | wget http://atlaswww.hep.anl.gov/hepsim/soft/ |
- | cd Delphes-3.3.0 | + | unzip $det.zip |
- | ./configure | + | cd $det |
- | make | + | tar --strip-components=1 |
- | </ | + | ./configure; make # configure and compile |
- | This creates | + | </ |
+ | The last command should create | ||
- | 2) For FCC studies, copy and modify the detector configuration file " | ||
<code bash> | <code bash> | ||
- | cp cards/delphes_card_FCC_basic.tcl delphes_card_FCC_notau.tcl | + | wget http://mc.hep.anl.gov/ |
+ | ./ | ||
</ | </ | ||
- | Then remove the line " | + | This commands creates a ROOT file with fast simulations. |
- | We do not use | + | |
+ | < | ||
+ | Detector configuration files [detector].zip include | ||
+ | and the input control | ||
+ | </ | ||
+ | |||
+ | You can create a complete | ||
- | 3) Download Monte Carlo files from the [[ http:// | ||
- | For example, get a file with 5000 ttbar events generated for a 100 TeV collider: | ||
<code bash> | <code bash> | ||
- | wget http://mc.hep.anl.gov/ | + | hs-ls [setname] simple |
+ | hs-ls [setname] simple-url > input_url.list # list with URL from the main server | ||
+ | # create a setup array with input files | ||
+ | declare -a wwwarray | ||
+ | n=0 | ||
+ | while read -r line | ||
+ | do | ||
+ | name=$line | ||
+ | wwwarray[$n]=$name | ||
+ | let "n = $n + 1" | ||
+ | done < " | ||
</ | </ | ||
+ | where [setname] is the dataset name, such as " | ||
+ | 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. | ||
- | and then create a ROOT file with reconstructed objects after a fast detector simulation (FCC detector): | ||
+ | One can also run Delphes in an automated mode, without the above scripts. You need to use " | ||
<code bash> | <code bash> | ||
- | ./DelphesProMC | + | hs-exec |
</ | </ | ||
- | The conversion typically takes 30 seconds. | + | where [URL] is HepSim location of files and [Nfiles] is the number of files for processing. |
+ | The output ROOT will be located inside " | ||
- | ===== Reproducing HepSim simulations | + | Here is a small example: |
- | The detectors configurations for Delphes together with appropriate Delphes package | + | <code bash> |
- | are posted to [[http:// | + | hs-exec DelphesProMC card.tcl output.root http:// |
- | Copy the ZIP file with Delphes card and Delphes package and compile it. | + | </ |
+ | which processes 5 files from [[http:// | ||
- | Here is an example of how to re-create fast simulations for " | ||
- | corresponds to the detector " | ||
+ | |||
+ | ====== 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> | <code bash> | ||
- | echo $PROMC | + | tar -zvxf Delphes-X.X.Xtar.gz |
- | echo $ROOTSYS | + | cd Delphes-X.X.X.tar.gz |
- | det=" | + | ./configure |
- | wget http:// | + | make |
- | unzip $det.zip | + | |
- | cd $det | + | |
- | tar --strip-components=1 -zvxf Delphes*.tar.gz | + | |
- | ./cofigure | + | |
- | ./ | + | |
</ | </ | ||
+ | where " | ||
- | Now you can create a complete list of input files. | + | (2) Copy and modify the detector configuration |
+ | 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> | <code bash> | ||
- | hs-ls [setname] simple | + | wget http://mc.hep.anl.gov/ |
- | hs-ls [setname] simple-url > input_url.list # list with URL (main server) | + | |
</ | </ | ||
- | where [setname] is the dataset name, such as " | ||
- | 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. | ||
+ | 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 ===== |