Skip to content

Commit

Permalink
Merge pull request #220 from giovannimarchiori/gmarchio-main-20241112…
Browse files Browse the repository at this point in the history
…-updateconfig

various updates to ALLEGRO digi-reco script
  • Loading branch information
giovannimarchiori authored Nov 13, 2024
2 parents 31826d2 + 03faac4 commit 2630b4c
Show file tree
Hide file tree
Showing 3 changed files with 150 additions and 65 deletions.
24 changes: 21 additions & 3 deletions FCCee/FullSim/ALLEGRO/ALLEGRO_o1_v03/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,40 @@ If you need to modify the geometry, follow instructions [here](https://fcc-ee-de
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
```


## Running the simulation
You can produce a file containing the Geant4 simulated hits in the detector with:
```
ddsim --enableGun --gun.distribution uniform --gun.energy "10*GeV" --gun.particle e- --numberOfEvents 100 --outputFile ALLEGRO_sim.root --random.enableEventSeed --random.seed 42 --compactFile $K4GEO/FCCee/ALLEGRO/compact/ALLEGRO_o1_v03/ALLEGRO_o1_v03.xml
```

You can also retrieve a simulation file already produced from here: `https://fccsw.web.cern.ch/fccsw/filesForSimDigiReco/ALLEGRO/ALLEGRO_o1_v03/forTests/pythia_ee_z_qq_10evt_ALLEGRO_sim.root`


## Running the digitization and reconstruction

Retrieve the files needed later for digitization/reconstruction (e.g. noise values, machine learning models for calibration, ...)
NB: if you do not have direct access to eos, you can retrieve those files from here: `https://fccsw.web.cern.ch/fccsw/filesForSimDigiReco/ALLEGRO/`
```
# Retrieve the files needed for digitization/reconstruction (e.g. noise values, machine learning models for calibration, ...)
# NB: if you do not have direct access to eos, you can retrieve those files from here: https://fccsw.web.cern.ch/fccsw/filesForSimDigiReco/ALLEGRO/
cp /eos/project/f/fccsw-web/www/filesForSimDigiReco/ALLEGRO/ALLEGRO_o1_v03/* .
# run the digitization and reconstruction
```
or
```
scp <user>@lxplus.cern.ch:/eos/project/f/fccsw-web/www/filesForSimDigiReco/ALLEGRO/ALLEGRO_o1_v03/* .
```

Run the reconstruction with:
```
k4run run_digi_reco.py
# you can then print the rootfile content with
podio-dump ALLEGRO_sim_digi_reco.root
```

This will run by default on the `ALLEGRO_sim.root` file. To run on a different file (e.g. `pythia_ee_z_qq_10evt_ALLEGRO_sim.root`) use:
```
k4run run_digi_reco.py --IOSvc.Input <inputfile>
```

## Dirac submission
The following is not yet ready, we have to implement ddsim as a generator in dirac to do particle gun transformation
You need to create a tarball containing the files needed for reconstruction and upload it at the right place with dirac commands
Expand Down
Loading

0 comments on commit 2630b4c

Please sign in to comment.