Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
hepsim:quick [2018/05/30 20:47] hepsim17 [Looking at separate events] |
hepsim:quick [2024/05/31 15:40] (current) hepsim17 [Comparing with HepData] |
||
---|---|---|---|
Line 9: | Line 9: | ||
<code bash> | <code bash> | ||
bash # | bash # | ||
- | wget http:// | + | wget https:// |
source hs-toolkit/ | source hs-toolkit/ | ||
</ | </ | ||
- | This creates the directory " | + | This creates the directory " |
[[https:// | [[https:// | ||
- | You can view the commands by typing: | + | You can view the commands |
<code bash> | <code bash> | ||
- | hs-help | + | bash> |
</ | </ | ||
- | This package is used for download, view and analyse HepSim files (truth-level | + | The directory contains several bash scripts for Linux/Mac, and Windows batch (BAT) files to process events on Windows OS. |
- | To analyse (*.lcio) files with Geant4 simulations, | + | The package is used for download, view and analyze |
- | [[http:// | + | |
+ | <note tip> | ||
+ | Use [[https:// | ||
+ | (*.lcio) files with Geant4 simulations. | ||
+ | This program can also be used for truth-level records in the [[https:// | ||
+ | </ | ||
====== Finding data files ====== | ====== Finding data files ====== | ||
- | |||
Let us show how to find the files associated with a given Monte Carlo event sample. | Let us show how to find the files associated with a given Monte Carlo event sample. | ||
- | Go to [[http:// | + | Go to [[https:// |
It shows URL of truth-level files (" | It shows URL of truth-level files (" | ||
- | |||
You can use the command line tool to list files associated with a dataset as: | You can use the command line tool to list files associated with a dataset as: | ||
Line 50: | Line 52: | ||
Similarly, one can use the download URL: | Similarly, one can use the download URL: | ||
<code bash> | <code bash> | ||
- | hs-ls http:// | + | hs-ls https:// |
</ | </ | ||
Note that in this approach, one can use URL mirrors close to your geographical location. | Note that in this approach, one can use URL mirrors close to your geographical location. | ||
Line 57: | Line 59: | ||
<code bash> | <code bash> | ||
- | hs-ls [setname] simple | + | hs-ls [name] simple |
- | hs-ls [setname] simple-url > input_url.list # make list with URL from the main server | + | hs-ls [name] simple-url > input_url.list # make list with URL from the main server |
</ | </ | ||
- | where [setname] is the name of dataset. You can also use a URL if you want to create a list of files from certain (mirror) servers. | + | where [name] is the name of dataset. You can also use a URL if you want to create a list of files from certain (mirror) servers. |
====== Searching for datasets ====== | ====== Searching for datasets ====== | ||
- | |||
The best method to find the needed sample is to use the web page with | The best method to find the needed sample is to use the web page with | ||
- | [[http:// | + | [[https:// |
Enter " | Enter " | ||
see samples with fast simulations. If you search for " | see samples with fast simulations. If you search for " | ||
for Higgs. Also you can use complex searches, such as " | for Higgs. Also you can use complex searches, such as " | ||
- | |||
You can also use convenient URL links that search for some datasets. Here are a few examples: | You can also use convenient URL links that search for some datasets. Here are a few examples: | ||
- | + | | |
- | | + | * [[https:// |
- | * [[http:// | + | * [[https:// |
- | * [[http:// | + | * [[https:// |
- | * [[http:// | + | |
If you prefer to use the command-line approach, you can find URL that corresponds a dataset using this command: | If you prefer to use the command-line approach, you can find URL that corresponds a dataset using this command: | ||
Line 119: | Line 119: | ||
< | < | ||
- | hs-get | + | hs-get |
</ | </ | ||
Line 125: | Line 125: | ||
< | < | ||
- | hs-get | + | hs-get |
</ | </ | ||
All these examples will download all files from the " | All these examples will download all files from the " | ||
Line 143: | Line 143: | ||
hs-get tev13pp_higgs_pythia8_ptbins | hs-get tev13pp_higgs_pythia8_ptbins | ||
</ | </ | ||
- | where the name is [[http:// | + | where the name is [[https:// |
The command download files to the " | The command download files to the " | ||
Line 163: | Line 163: | ||
where " | where " | ||
You can identify detector geometries that correspond to the tags using [[http:// | You can identify detector geometries that correspond to the tags using [[http:// | ||
- | For example, [[http:// | + | For example, [[https:// |
sample includes the link " | sample includes the link " | ||
Line 180: | Line 180: | ||
As before, one can also download the files using the URL: | As before, one can also download the files using the URL: | ||
<code bash> | <code bash> | ||
- | hs-ls http:// | + | hs-ls https:// |
- | hs-get | + | hs-get |
</ | </ | ||
Line 189: | Line 189: | ||
<code bash> | <code bash> | ||
- | hs-info | + | hs-info |
</ | </ | ||
Line 219: | Line 219: | ||
< | < | ||
- | hs-info | + | hs-info |
</ | </ | ||
Line 226: | Line 226: | ||
hs-view [promc file] | hs-view [promc file] | ||
</ | </ | ||
- | This command brings up a GUI window to look at separate events. You should forward X11 to see the GUI. For Windows: download the file [[http:// | + | This command brings up a GUI window to look at separate events. You should forward X11 to see the GUI. For Windows: download the file [[https:// |
Line 235: | Line 235: | ||
< | < | ||
- | hs-view | + | hs-view |
</ | </ | ||
Here we looked at one file of [[http:// | Here we looked at one file of [[http:// | ||
Line 242: | Line 242: | ||
====== Monte Carlo logfile ====== | ====== Monte Carlo logfile ====== | ||
- | You can work with ProMC using the standard Linux commands, such as " | + | Each ProMC/ProIO file includes a logfile from the Monte Carlo generator. Show this file on the screen as: |
+ | |||
+ | < | ||
+ | hs-log [file] | ||
+ | </ | ||
+ | where [file] is either a ProMC or ProIO file (you can use URL instead of the full path on the local computer). | ||
+ | |||
+ | In the case of ProMC files, one can use the standard Linux commands, such as " | ||
< | < | ||
Line 304: | Line 311: | ||
In this example, we will run a Python (to be more exact, Jython) script and, at the same time, will stream data from the web. | In this example, we will run a Python (to be more exact, Jython) script and, at the same time, will stream data from the web. | ||
Find a HepSim event sample by clicking the info " | Find a HepSim event sample by clicking the info " | ||
- | For example, look at a ttbar sample from Madgraph: [[http:// | + | For example, look at a ttbar sample from Madgraph: [[https:// |
Find the URL of the analysis script (" | Find the URL of the analysis script (" | ||
<code bash> | <code bash> | ||
- | wget http:// | + | wget https:// |
</ | </ | ||
Line 341: | Line 348: | ||
then we download the analysis script, and then we run this script over the local data using 10000 events: | then we download the analysis script, and then we run this script over the local data using 10000 events: | ||
< | < | ||
- | hs-get | + | hs-get |
hs-run ttbar_mg5 10000 | hs-run ttbar_mg5 10000 | ||
</ | </ | ||
Line 350: | Line 357: | ||
The above example has some limitations since it uses rather simple editor. | The above example has some limitations since it uses rather simple editor. | ||
Another approach is to use the full-featured [[http:// | Another approach is to use the full-featured [[http:// | ||
- | [[http://jwork.org/dmelt/|DataMelt]] programs which give more flexibility. | + | [[https://datamelt.org|DataMelt]] programs which give more flexibility. |
<code bash> | <code bash> | ||
wget -O dmelt.zip http:// | wget -O dmelt.zip http:// | ||
Line 358: | Line 365: | ||
You can also pass URL with data as an argument and limit the calculation to 10000 events: | You can also pass URL with data as an argument and limit the calculation to 10000 events: | ||
<code bash> | <code bash> | ||
- | ./ | + | ./ |
</ | </ | ||
As before, use the batch mode using downloaded ProMC files. | As before, use the batch mode using downloaded ProMC files. | ||
- | Let assume that we put all ProMC files to the directory " | + | Let assume that we put all ProMC files to the directory " |
<code bash> | <code bash> | ||
Line 371: | Line 378: | ||
then we download the analysis script, and then we run this script over the local data using 10000 events: | then we download the analysis script, and then we run this script over the local data using 10000 events: | ||
< | < | ||
- | hs-get | + | hs-get |
./ | ./ | ||
</ | </ | ||
Line 377: | Line 384: | ||
Then click " | Then click " | ||
- | One can also start [[http://jwork.org/dmelt/|DataMelt]] without input files: | + | One can also start [[https://datamelt.org|DataMelt]] without input files: |
< | < | ||
./ | ./ | ||
</ | </ | ||
on Linux/Mac. On Windows, run " | on Linux/Mac. On Windows, run " | ||
- | Locate | + | Locate |
Next, in the DMelt menu, go to " | Next, in the DMelt menu, go to " | ||
URL dialog and click " | URL dialog and click " | ||
Line 402: | Line 409: | ||
There is a simple example showing how to read multiple Monte Carlo files from HepSim, | There is a simple example showing how to read multiple Monte Carlo files from HepSim, | ||
build anti-KT jets using FastJet, and fill ROOT histograms. Download | build anti-KT jets using FastJet, and fill ROOT histograms. Download | ||
- | [[http:// | + | [[https:// |
< | < | ||
Line 420: | Line 427: | ||
about how to read Delphes ROOT files. | about how to read Delphes ROOT files. | ||
- | You can find all samples that contain fast simulations using [[http:// | + | You can find all samples that contain fast simulations using [[https:// |
===== Full simulation: LCIO files ===== | ===== Full simulation: LCIO files ===== | ||
Line 433: | Line 440: | ||
| | ||
- | You can find all samples that contain full simulations using [[http:// | + | You can find all samples that contain full simulations using [[https:// |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
Line 465: | Line 467: | ||
ProMC to HEPEVT records (promc2hepevnt), | ProMC to HEPEVT records (promc2hepevnt), | ||
- | ====== Comparing with HepData ====== | ||
+ | ====== Anomaly detection with HepSim ====== | ||
+ | |||
+ | You can use [[http:// | ||
+ | In addition, [[http:// | ||
+ | |||
+ | |||
+ | ====== Comparing with HepData ====== | ||
Durham [[http:// | Durham [[http:// | ||
- | with [[http:// | + | with [[https:// |
For example, look at the link [[http:// | For example, look at the link [[http:// | ||
download a " | download a " |