Dijet Trigger Studies 2018

L1 seeding strategy

Setup

scram p -n CMSSW_10_0_1_DijetL1HLT CMSSW_10_0_1
cd CMSSW_10_0_1_DijetL1HLT/src
cmsenv
ssha

# L1+HLT Setup
git cms-addpkg HLTrigger/Configuration
git cms-addpkg L1Trigger/L1TGlobal
mkdir -p $CMSSW_BASE/src/L1Trigger/L1TGlobal/data/Luminosity/startup
cp /afs/cern.ch/user/n/ndaci/public/STEAM/L1Menus/2017/L1Menu_Collisions2017_v4slim_m6.xml $CMSSW_BASE/src/L1Trigger/L1TGlobal/data/Luminosity/startup/
cp /afs/cern.ch/user/n/ndaci/public/STEAM/Prescales/mask-run306091.xml $CMSSW_BASE/src/L1Trigger/L1TGlobal/data/Luminosity/startup/mask-slim.xml
cp /afs/cern.ch/user/n/ndaci/public/STEAM/Prescales/prescale-run306091.xml $CMSSW_BASE/src/L1Trigger/L1TGlobal/data/Luminosity/startup/prescale-slim.xml

# HLT Ntuples (modified to include branches with the kinematics of the 2 leading jets)
git cms-addpkg HLTrigger/HLTanalyzers
#git clone https://github.com/cms-steam/HLTrigger temp -b b_objects_tests 
#mv temp/* HLTrigger
#mv temp/.git HLTrigger
#rm -rf temp

scram b -j 4

Skim data with L1 seeds of interest unprescaled

mkdir -p MyTests/skim
cd MyTests/skim

cmsDriver.py L1Skim -s L1REPACK:uGT \
  --no_exec --data -n 10 --era=Run2_2017 --conditions=100X_dataRun2_relval_ForTSG_v1 \
  --customise=L1Trigger/Configuration/customiseUtils.L1TGlobalDigisSummary \
  --customise=L1Trigger/Configuration/customiseUtils.L1TAddInfoOutput \
  --filein=root://cms-xrd-global.cern.ch//store/data/Run2017F/EphemeralZeroBias1/RAW/v1/000/305/636/00000/B0AA7A98-8AB9-E711-9725-02163E014232.root

Then follow customization instructions from (twiki revision 4): https://twiki.cern.ch/twiki/bin/view/CMS/SteamL1Skim2017?rev=4#Step2_customize_CMSSW_configurat

Test L1 Skim by running an HLT pass-through path

hltGetConfiguration /users/ndaci/TestL1Skim2018/HLT \
  --setup /dev/CMSSW_10_0_0/HLT \
  --globaltag 100X_dataRun2_relval_ForTSG_v1 \
  --input file:L1Skim.root \
  --data --process MYHLT --full --offline \
  --customise HLTrigger/Configuration/customizeHLTforCMSSW.customiseFor2017DtUnpacking \
  --prescale none --max-events 10 --output none > hlt_TestL1Skim.py

Run L1+HLT+HLTNtuples directly

Generate L1+HLT config file:

hltGetConfiguration /users/ndaci/DijetScouting2018/HLT/V2 \
  --setup /dev/CMSSW_10_0_0/HLT \
  --globaltag 100X_dataRun2_relval_ForTSG_v1 \
  --input root://cms-xrd-global.cern.ch//store/data/Run2017F/EphemeralHLTPhysics1/RAW/v1/000/305/636/00000/00225D9E-1BBA-E711-B067-02163E0142E6.root \
  --data --process MYHLT --full --offline \
  --customise HLTrigger/Configuration/customizeHLTforCMSSW.customiseFor2017DtUnpacking \
  --l1-emulator uGT --l1Xml L1Menu_Collisions2017_v4slim_m6.xml \
  --prescale none --max-events 10 --output none > hlt_DijetScouting2018.py

Then add the following lines at the end of the config file:

# Remove DQM output
if 'DQMOutput' in process.__dict__:
    process.DQMOutput.remove(process.dqmOutput)

# L1 Prescales set from hackConditions module
process.load('L1Trigger.L1TGlobal.hackConditions_cff')
process.L1TGlobalPrescalesVetos.PrescaleXMLFile = cms.string('prescale-slim.xml') 
process.L1TGlobalPrescalesVetos.FinOrMaskXMLFile = cms.string('mask-slim.xml')
process.simGtStage2Digis.AlgorithmTriggersUnmasked = cms.bool(False)
process.simGtStage2Digis.AlgorithmTriggersUnprescaled = cms.bool(False)
process.simGtStage2Digis.PrescaleSet = cms.uint32(1)

# Ntuples
process.load("HLTrigger.HLTanalyzers.HLTBitAnalyser_cfi")
process.hltbitanalysis.HLTProcessName = cms.string(process.name_() )
process.hltbitanalysis.hltresults = cms.InputTag( 'TriggerResults','',process.name_())
process.hltbitanalysis.l1results = cms.InputTag('hltGtStage2Digis', '', process.name_())
process.hltbitanalysis.RunParameters.HistogramFile = cms.untracked.string('hlt.root')
process.hltbitanalysis.RunParameters.isData = cms.untracked.bool(True) ### uncomment this one only to process Data !!!
process.HLTBitAnalysisEndpath = cms.EndPath( process.hltbitanalysis )

process.maxEvents = cms.untracked.PSet(
    input = cms.untracked.int32( 1000 )
)

-- NadirDaci - 2018-02-14

Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r7 - 2018-02-22 - NadirDaci
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback