Last active
June 28, 2016 09:39
-
-
Save matz-e/1cfcaf728cbc905839e7f8c4f9020eaf to your computer and use it in GitHub Desktop.
Recipe for trigger update studies (Phase 1)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Recipe from the RECO/DIGI part of HCAL: | |
# https://twiki.cern.ch/twiki/bin/view/CMS/HcalPhase1SoftwareSimulationRecipe | |
# has a useful script for MC generation | |
cmsrel CMSSW_8_1_0_pre8 | |
cd CMSSW_8_1_0_pre8/src | |
cmsenv | |
git cms-init | |
git cms-merge-topic matz-e:hcal-tp-2017-v3 | |
scram b -j 12 | |
# Download SinglePi_Phase1.sh from the twiki above and copy it into local directory | |
sh ./SinglePi_Phase1.sh -m 2 | |
# Have a look at SinglePiE50HCAL_pythia8_cfi_GEN_SIM.py while the script is running | |
# Look for "Pythia8EGun" to modify parameters (to shoot π or e into HF) | |
# To run with new settings: | |
cmsRun SinglePiE50HCAL_pythia8_cfi_GEN_SIM.py | |
cmsRun step2*.py | |
cmsRun step3*.py | |
# Useful collections (in i.e. step3.root): | |
# * genParticles | |
# * HFRecHitsSorted hfreco (empty for me) | |
# * HFPreRecHitsSorted hfprereco (are filled for me) long fiber: depths 1, 3; short fiber: depths 2, 4 | |
# In step2.root: | |
# * simHcalTriggerPrimitiveDigis (HF: version 1; tp.id().version() == 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment