community:hepsim:dev_hepsim
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
community:hepsim:dev_hepsim [2016/10/27 23:31] – asc | community:hepsim:dev_hepsim [2016/12/22 15:53] (current) – [Summary] asc | ||
---|---|---|---|
Line 3: | Line 3: | ||
====== How to link private samples to HepSim ====== | ====== How to link private samples to HepSim ====== | ||
- | Your files can be published on HepSim and you can maintain your own Hepim repository with PROMC/ | + | Your files can be published on [[http:// |
* You want to share your own files, so they will be available from HepSim | * You want to share your own files, so they will be available from HepSim | ||
- | | + | * You want to make a |
- | | + | |
- | If the dataset is new, you will see a new entry in the HepSim database. | ||
- | If you have made a mirror, your server will be added as a mirror for a given dataset. | ||
- | Your authorship will be preserved | + | If the dataset is new, you will see a new entry in the HepSim database. |
+ | If you have made a mirror of the existing data, your server will be added as a mirror for a given dataset. | ||
====== What do you need ====== | ====== What do you need ====== | ||
Line 18: | Line 17: | ||
You need the following: | You need the following: | ||
- | * A web server that can hold your data (>1 TB is recommended) | + | * A web server that can hold your data (>1 TB for / |
* Linux OS (any flavor) | * Linux OS (any flavor) | ||
- | * Installed | + | * Apache2 with PHP module |
+ | * Java 8 JDK or JRE (optionally, | ||
- | The root directory of a typical HepSim repository | + | The root directory of a typical HepSim repository |
- | be served by Apache. You will need to make the directory structure such as: | + | be served by Apache, i.e. it should be visible from / |
<code bash> | <code bash> | ||
Line 77: | Line 77: | ||
You can mirror an entire dataset by copying HepSim files to your mirror web server (or local computer). | You can mirror an entire dataset by copying HepSim files to your mirror web server (or local computer). | ||
- | You can use this {{: | + | You can use the command " |
to mirror a dataset with known URL, use this example: | to mirror a dataset with known URL, use this example: | ||
<code bash> | <code bash> | ||
+ | wget http:// | ||
+ | source hs-toolkit/ | ||
+ | # now copy a dataset from URL to a new location | ||
SOURCE=http:// | SOURCE=http:// | ||
- | OUTPUT_DIR=/ | + | OUTPUT_DIR=/ |
- | mirror_hepsim_data.py | + | hs-mirror |
</ | </ | ||
+ | This example creates the directory "/ | ||
+ | URL. The URL can be found using the HepSim web page. | ||
- | ====== Summary ====== | + | If you want to download only EVGEN files, without reconstructed events, use this command: |
+ | <code bash> | ||
+ | hs-mirror -i $SOURCE-o $OUTPUT_DIR -t evgen | ||
+ | </ | ||
- | When everything is done, this is what you will expect: | ||
- | * You files will be visible on the main HepSim web page and on the mirrors (takes ~ few days to propagate the changes) | + | Generally, you do not need to index files in the mirror |
- | * You can search your files etc. | + | |
- | * Since your files are public, there is good chance that somebody will make a mirror | + | |
- | * You can search, list and download files using hs-toolkit commands (hs-find, hs-ls, hs-get etc) | + | |
- | * You server will be listed on the page [[http:// | + | |
+ | ====== Summary ====== | ||
+ | When everything is done, this is what you should expect: | ||
+ | * You files will be visible on the main HepSim web page and on the current mirrors (takes ~ few days to propagate the changes) | ||
+ | * You can search your files etc. using the main HepSim web page | ||
+ | * You can search, list and download files using hs-toolkit commands (hs-find, hs-ls, hs-get etc) | ||
+ | * Since your files are public, there is good chance that somebody will make a mirror to reduce the load on your server | ||
+ | * You server will be listed on the page [[http:// | ||
community/hepsim/dev_hepsim.1477611109.txt.gz · Last modified: 2016/10/27 23:31 by asc