Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FullSim] Add a (draft) of ALLEGRO v03 chain to exercise Dirac #159

Merged
merged 3 commits into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading