Skip to content

Commit

Permalink
[FullSim] Prepare Dirac particle gun transformations
Browse files Browse the repository at this point in the history
  • Loading branch information
BrieucF committed May 8, 2024
1 parent 85c3526 commit c6af10a
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 6 deletions.
13 changes: 11 additions & 2 deletions FCCee/FullSim/ALLEGRO/ALLEGRO_o1_v03/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,21 @@ ddsim --enableGun --gun.distribution uniform --gun.energy "10*GeV" --gun.particl

## Running the digitization and reconstruction
```
mkdir data
# 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/* data/
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 =



8 changes: 4 additions & 4 deletions FCCee/FullSim/ALLEGRO/ALLEGRO_o1_v03/run_digi_reco.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,11 +458,11 @@
cellPositionHcalBarrelNoSegTool = None
cellPositionHcalExtBarrelTool = None

neighboursMap = "data/neighbours_map_ecalB_thetamodulemerged.root"
noiseMap = "data/cellNoise_map_electronicsNoiseLevel_ecalB_thetamodulemerged.root"
neighboursMap = "neighbours_map_ecalB_thetamodulemerged.root"
noiseMap = "cellNoise_map_electronicsNoiseLevel_ecalB_thetamodulemerged.root"
if runHCal:
neighboursMap = "data/neighbours_map_ecalB_thetamodulemerged_hcalB_thetaphi.root"
noiseMap = "data/cellNoise_map_electronicsNoiseLevel_ecalB_thetamodulemerged_hcalB_thetaphi.root"
neighboursMap = "neighbours_map_ecalB_thetamodulemerged_hcalB_thetaphi.root"
noiseMap = "cellNoise_map_electronicsNoiseLevel_ecalB_thetamodulemerged_hcalB_thetaphi.root"

readNeighboursMap = TopoCaloNeighbours("ReadNeighboursMap",
fileName=neighboursMap,
Expand Down

0 comments on commit c6af10a

Please sign in to comment.