Skip to content

Commit

Permalink
Merge pull request #159 from BrieucF/allegro_v03
Browse files Browse the repository at this point in the history
[FullSim] Add a (draft) of ALLEGRO v03 chain to exercise Dirac
  • Loading branch information
BrieucF authored May 8, 2024
2 parents 713b4a3 + c6af10a commit 7991546
Show file tree
Hide file tree
Showing 4 changed files with 790 additions and 0 deletions.
34 changes: 34 additions & 0 deletions FCCee/FullSim/ALLEGRO/ALLEGRO_o1_v03/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Instructions

## Setting the environment
If you need to modify the geometry, follow instructions [here](https://fcc-ee-detector-full-sim.docs.cern.ch/Key4hep/) to set-up the paths to your local k4geo installation. If you want to just use the central version of the detector, directly proceed with the following.

```
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
```

## Running the simulation
```
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
```

## Running the digitization and reconstruction
```
# 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
k4run run_digi_reco.py
# you can then print the rootfile content with
podio-dump ALLEGRO_sim_digi_reco.root
```

## Dirac submission
The following is not yet ready, we have to implement ddsim as a generator in diract 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
```
# In lxplus
source /cvmfs/clicdp.cern.ch/DIRAC/bashrc; dirac-proxy-init -g fcc_prod
./create_dirac_tarball.sh
dirac-dms-add-file LFN:/fcc/prod/software/fccconfig/fccconfig-ALLEGRO_o1_v03-devel.tgz fccconfig-ALLEGRO_o1_v03-devel.tgz CERN-DST-EOS
```
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tar -czvf fccconfig-ALLEGRO_o1_v03-devel.tgz cellNoise*.root neighbours*.root *.onnx *.py
62 changes: 62 additions & 0 deletions FCCee/FullSim/ALLEGRO/ALLEGRO_o1_v03/electron_gun.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
[ddsim]
SteeringFile = ddsim_steering_file.py

[gaudiapp]
ExecutableName = k4run
SteeringFile = run_digi_reco.py


[Production Parameters]
machine = ee
prodGroup = several
softwareVersion = key4hep_nightly

generatorApplication = None
simulationApplication = ddsim
reconstructionApplication = gaudiapp

campaign = spring2024
energies = 10
processes = gun_e
detectorModel = ALLEGRO_o1_v03


configVersion = ALLEGRO_o1_v03-devel
configPackage = fccconfig
eventsPerJobs = 100
#eventsPerJobs = []
## Number of jobs/task to generate (default = 1)
numberOfTasks = 10

## optional prodid to search for input files
# prodIDs =

## number of events for input files to split productions
eventsInSplitFiles = []

productionLogLevel = VERBOSE
outputSE = CERN-DST-EOS

finalOutputSE = CERN-SRM
MoveStatus = Stopped
MoveGroupSize = 10

## optional additional name
# additionalName =
## optional additional names, for for each process, prodID, etc.
# taskNames =

overlayEventType = pairs
## optional energy to use for overlay: e.g. 3TeV
# overlayEvents =

#Productions to create: Gen, Split, Sim, Rec, RecOver
ProdTypes = Sim, Rec

move = False

#Datatypes to move: Gen, Sim, Rec, Dst
MoveTypes =



Loading

0 comments on commit 7991546

Please sign in to comment.