Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
hepsim:dev_fast [2017/03/19 16:33]
hepsim17 [Creating Delphes files]
hepsim:dev_fast [2017/08/30 12:42]
hepsim17
Line 1: Line 1:
- {{indexmenu_n>10}}+ {{indexmenu_n>12}}
  
  
 [[:|<< back to HepSim manual]] [[:|<< back to HepSim manual]]
  
-Fast simulations in the HepSim are posted under the [[http://atlaswww.hep.anl.gov/hepsim/list.php?find=rfast | rfast link]]. The detectors configurations are posted to [[http://atlaswww.hep.anl.gov/hepsim/detectors.php|this link]].+====== Creating Delphes files ====== 
 + 
 + 
 +Fast simulations in the HepSim are posted under the [[http://atlaswww.hep.anl.gov/hepsim/list.php?find=rfast|rfast link]]. The detectors configurations are posted to [[http://atlaswww.hep.anl.gov/hepsim/detectors.php|this link]].
  
 ===== 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://cp3.irmp.ucl.ac.be/projects/delphes | Delphes]] fast detector simulation program to process the MC events. Delphes can read [[http://atlaswww.hep.anl.gov/asc/promc/ | ProMC]] files directly. First, make sure that ProMC and ROOT library is installed:
-using separate external libraries, without installing FastHepSim. +
-Use the [[https://cp3.irmp.ucl.ac.be/projects/delphes | Delphes]] fast detector simulation program to process the MC events. Delphes can read [[http://atlaswww.hep.anl.gov/asc/promc/ | ProMC]] files directly. First, make sure that ProMC and ROOT library is installed:+
 <code bash> <code bash>
 echo $PROMC $ROOTSYS echo $PROMC $ROOTSYS
 </code> </code>
-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://atlaswww.hep.anl.gov/hepsim/detectors.php|this link]].+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://atlaswww.hep.anl.gov/hepsim/detectors.php#fast|this link]].
 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 26: 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 +./configure; make                              # configure and compile                                      
-./DelphesProMC card.tcl  file.promc # run using test input ProMC file+</code>                                         
 +The last command should create the binary file "DelphesProMC". Now you can process a ProMC file: 
 + 
 +<code bash> 
 +wget http://mc.hep.anl.gov/asc/hepsim/events/pp/14tev/mg5_ttbar_jet/mg5_ttbar_jet_001.promc 
 +./DelphesProMC card.tcl mg5_ttbar_jet_001.root mg5_ttbar_jet_001.promc
 </code> </code>
 +This commands creates a ROOT file with fast simulations.
  
 <note> <note>
-Detector configuration files [detector].zip include the Delphes version used to make the simulation tag,  +Detector configuration files [detector].zip include the Delphes source code  used to make the simulation tag,  
-and the input control card "card.tcl" that defines the geometry.+and the input control card "card.tcl" that defines the geometry. Look at [[http://atlaswww.hep.anl.gov/hepsim/detectors.php#fast|this link]].
 </note> </note>
  
Line 54: Line 61:
  
  
-One can also run Delphes in automated mode, without the above scripts. You need to use "hs-exec" command. +One can also run Delphes in an automated mode, without the above scripts. You need to use "hs-exec" command. 
-<code> +<code bash
-hs-exec DelphesProMC delphes.tcl output.root [URL] [Nfiles]+hs-exec DelphesProMC card.tcl output.root [URL] [Nfiles]
 </code> </code>
 where [URL] is HepSim location of files and  [Nfiles] is the number of files for processing. where [URL] is HepSim location of files and  [Nfiles] is the number of files for processing.
Line 62: Line 69:
  
 Here is a small example: Here is a small example:
-<code> +<code bash
-hs-exec DelphesProMC delphes.tcl output.root  http://mc.hep.anl.gov/asc/hepsim/events/pp/100tev/higgs_ttbar_mg5 5+hs-exec DelphesProMC card.tcl output.root http://mc.hep.anl.gov/asc/hepsim/events/pp/14tev/mg5_ttbar_jet/ 5
 </code> </code>
-which processes 5 files from [[http://mc.hep.anl.gov/asc/hepsim/events/pp/100tev/higgs_ttbar_mg5|HiggsToTTbar sample]]. Skip "5" at the end to process all files.                                                                                                                                                              +which processes 5 files from [[http://atlaswww.hep.anl.gov/hepsim/info.php?item=143/|HiggsToTTbar sample]]. Skip "5" at the end to process all files.