Skip to content

Commit

Permalink
fix CMS instructions (jpata#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpata authored Jul 9, 2024
1 parent 297b90e commit 0c2e9da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 39 deletions.
36 changes: 0 additions & 36 deletions mlpf/data_cms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,42 +52,6 @@ md5sum RecoParticleFlow/PFProducer/data/mlpf/mlpf_21M_attn2x6x512_bs40_relu_tt_q
```

## Running MLPF in CMSSW
MLPF is integrated in CMSSW reconstruction and can be run either using simple but slow matrix workflows, or using the faster but more elaborate PF validation.

### Matrix workflows

Matrix workflows allow to run MLPF directly out of the box, rerunning the full reconstruction chain.
This is easy to run, but time consuming.
```
#check the workflows with the .13 suffix (that have MLPF enabled)
> runTheMatrix.py --what upgrade -n | grep "\.13"
#Run this workflow TTbar_14TeV + 2021PU_mlpf
> runTheMatrix.py --what upgrade -l 11834.13
#Takes around 30 minutes
11834.13_TTbar_14TeV+2021PU_mlpf+TTbar_14TeV_TuneCP5_GenSim+DigiPU+RecoNanoPU+HARVESTNanoPU Step0-PASSED Step1-PASSED Step2-PASSED Step3-PASSED - time date Thu May 16 15:24:47 2024-date Thu May 16 15:06:24 2024; exit: 0 0 0 0
1 1 1 1 tests passed, 0 0 0 0 failed
```

Check the outputs
```
> ls 11834.13_TTbar_14TeV+2021PU_mlpf+TTbar_14TeV_TuneCP5_GenSim+DigiPU+RecoNanoPU+HARVESTNanoPU/*.root
11834.13_TTbar_14TeV+2021PU_mlpf+TTbar_14TeV_TuneCP5_GenSim+DigiPU+RecoNanoPU+HARVESTNanoPU/DQM_V0001_R000000001__Global__CMSSW_X_Y_Z__RECO.root
11834.13_TTbar_14TeV+2021PU_mlpf+TTbar_14TeV_TuneCP5_GenSim+DigiPU+RecoNanoPU+HARVESTNanoPU/histProbFunction.root
11834.13_TTbar_14TeV+2021PU_mlpf+TTbar_14TeV_TuneCP5_GenSim+DigiPU+RecoNanoPU+HARVESTNanoPU/step1.root
11834.13_TTbar_14TeV+2021PU_mlpf+TTbar_14TeV_TuneCP5_GenSim+DigiPU+RecoNanoPU+HARVESTNanoPU/step2.root
11834.13_TTbar_14TeV+2021PU_mlpf+TTbar_14TeV_TuneCP5_GenSim+DigiPU+RecoNanoPU+HARVESTNanoPU/step3_inDQM.root
11834.13_TTbar_14TeV+2021PU_mlpf+TTbar_14TeV_TuneCP5_GenSim+DigiPU+RecoNanoPU+HARVESTNanoPU/step3_inMINIAODSIM.root
11834.13_TTbar_14TeV+2021PU_mlpf+TTbar_14TeV_TuneCP5_GenSim+DigiPU+RecoNanoPU+HARVESTNanoPU/step3_inNANOEDMAODSIM.root
11834.13_TTbar_14TeV+2021PU_mlpf+TTbar_14TeV_TuneCP5_GenSim+DigiPU+RecoNanoPU+HARVESTNanoPU/step3_inRECOSIM.root
11834.13_TTbar_14TeV+2021PU_mlpf+TTbar_14TeV_TuneCP5_GenSim+DigiPU+RecoNanoPU+HARVESTNanoPU/step3.root
```

The particle flow candidates can be found in `step3.root`:
```
vector<reco::PFCandidate> "particleFlow" "" "RECO"
```

### PF validation
To test MLPF on higher statistics, it's not practical to redo full reconstruction before the particle flow step.
Expand Down
5 changes: 2 additions & 3 deletions scripts/cmssw/validation_job.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ WORKDIR=$CMSSW_BASE/work_${SAMPLE}_${JOBTYPE}_${NJOB}
# cd /scratch/persistent/joosep/CMSSW_14_1_0_pre3
# eval `scram runtime -sh`
# cd $PREVDIR

export OUTDIR=/local/joosep/mlpf/results/cms/${CMSSW_VERSION}/
export WORKDIR=/scratch/local/$USER/${SLURM_JOB_ID}
# OUTDIR=/local/joosep/mlpf/results/cms/${CMSSW_VERSION}/
# WORKDIR=/scratch/local/$USER/${SLURM_JOB_ID}

#abort on error, print all commands
set -e
Expand Down

0 comments on commit 0c2e9da

Please sign in to comment.