Skip to content

Commit

Permalink
fix: use common s3tools/make-fastsim-S3-config.sh for fastsim tutor…
Browse files Browse the repository at this point in the history
…ials (#183)
  • Loading branch information
c-dilks authored Sep 30, 2022
1 parent 8737720 commit 250350d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 61 deletions.
2 changes: 1 addition & 1 deletion s3tools/make-fastsim-S3-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ fi
if [ "$mode" == "f" -o "$mode" == "a" ]; then
status "clean Delphes output directories"
for Q2min in ${Q2minima[@]}; do
rm -rv $recDir/minQ2=$Q2min
rm -rvf $recDir/minQ2=$Q2min
done
status "running Delphes (one thread per Q2min)"
function runDelphes {
Expand Down
22 changes: 17 additions & 5 deletions tutorial/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,23 @@ To run tutorials, you need to generate or obtain ROOT files, from fast or full s
the login and password; follow [s3tools documentation](../s3tools/README.md) for guidance

### Fast Simulation
- run `tutorial/makeSampleDelphesFiles.sh` to download HEPMC files from S3,
and run them through Delphes
- edit the settings in this script, such as beam energy
- change the maximum number of files to process, to limit disk space
consumption
- to download sample HEPMC files from S3, and run them through Delphes, run:
```bash
s3tools/make-fastsim-S3-config.sh 10x100 tutorial a 4
```
- run `s3tools/make-fastsim-S3-config.sh` for an explaination of the
arguments for this script
- by default, Delphes output files will be written to `datarec/tutorial`
(and the HEPMC files will be in `datagen/tutorial`)
- copy the resulting top-level `delphes.config` file to the `tutorial/`
directory. If you ran `s3tools/make-fastsim-S3-config.sh` with the above
settings, run
```bash
cp datarec/tutorial/10x100/delphes.config tutorial/
```
By default, all of the tutorial macros for fast simulations assume the
`config` file is `tutorial/delphes.config`.


### Full Simulation
- full simulation files are streamed from S3 using `tutorial/s3files.*.config`
Expand Down
55 changes: 0 additions & 55 deletions tutorial/makeSampleDelphesFiles.sh

This file was deleted.

0 comments on commit 250350d

Please sign in to comment.