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:32] hepsim17 |
hepsim:dev_fast [2017/03/19 20:10] hepsim17 |
||
---|---|---|---|
Line 4: | Line 4: | ||
[[: | [[: | ||
- | Fast simulations in the HepSim are posted under the [[http:// | + | ====== Creating Delphes files ====== |
+ | |||
+ | |||
+ | 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. The detectors configurations for Delphes together with appropriate Delphes package | + | 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:// |
- | 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 27: | Line 27: | ||
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 | ||
- | ./ | + | ./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 | + | Detector configuration files [detector].zip include the Delphes |
- | and the input control card " | + | and the input control card " |
</ | </ | ||
Line 52: | Line 58: | ||
</ | </ | ||
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 | ||
+ | < | ||
+ | hs-exec DelphesProMC card.tcl output.root [URL] [Nfiles] | ||
+ | </ | ||
+ | where [URL] is HepSim location | ||
+ | The output ROOT will be located inside " | ||
+ | |||
+ | Here is a small example: | ||
+ | < | ||
+ | hs-exec DelphesProMC card.tcl output.root http:// | ||
+ | </ | ||
+ | which processes 5 files from [[http:// | ||
+ | |||
+ | |||
+ | |||
+ | ====== Creating files manually ====== | ||
Line 70: | Line 92: | ||
(2) Copy and modify the detector configuration files. The configuration files with the extension " | (2) Copy and modify the detector configuration files. The configuration files with the extension " | ||
- | |||
Often, | Often, | ||
Line 85: | Line 106: | ||
./ | ./ | ||
</ | </ | ||
- | The conversion typically takes 30 seconds. | ||
- | |||
===== On the fly reconstruction ===== | ===== On the fly reconstruction ===== |