Setup Delphes to produce/preprocess input data for DL
- A Linux workstation configured with CVMFS, CMSSW
git clone https://github.com/nurion4hep/DelphesTools
./install.sh
Example: extract prunedGenParticles+packedGenParticles from CMS MiniAOD and run the Delphes simulator.
cd Delphes
./DelphesCMSFWLite cards/delphes_card_CMS.tcl ../DELPHES.root root://cms-xrd-global.cern.ch//store/mc/RunIISummer16MiniAODv2/TT_TuneCUETP8M2T4_13TeV-powheg-pythia8/MINIAODSIM/PUMoriond17_80X_mcRun2_asymptotic_2016_TrancheIV_v6-v1/80000/FED04F50-A3BE-E611-A893-0025900E3502.root
cd ..
You will have DELPHES.root
We use NERSC's script to convert Delphes root files to hdf5 with image projections.
- File names should be in a form of SAMPLENAME-SUFFIX.root
- SAMPLENAME should be in the cross section table, config/DelphesXSec
- RPV10_1400_850
- QCDBkg_JZ3_160_400
- QCDBkg_JZ4_400_800
- QCDBkg_JZ5_800_1300
- QCDBkg_JZ6_1300_1800
- QCDBkg_JZ7_1800_2500
- QCDBkg_JZ8_2500_3200
- QCDBkg_JZ9_3200_3900
- QCDBkg_JZ10_3900_4600
- QCDBkg_JZ11_4600_5300
- QCDBkg_JZ12_5300_7000
- List of files in a txt file
Example:
mv DELPHES.root RPV10_1400_850-xxxx.root
echo ../RPV10_1400_850-xxxx.root > fileList.txt ## NOTE the relative path
git clone https://github.com/eracah/atlas_dl
cd atlas_dl
./scripts/prepare_data.py --input-type delphes --output-h5 ../../data.h5 --bins 64 ../fileList.txt