Skip to content

Instantly share code, notes, and snippets.

@sarafiorendi
Last active August 2, 2017 15:02
Show Gist options
  • Save sarafiorendi/02b4a43c28766ec7beddabe3f5ae036e to your computer and use it in GitHub Desktop.
Save sarafiorendi/02b4a43c28766ec7beddabe3f5ae036e to your computer and use it in GitHub Desktop.
from hlt import *
# remove all the isolation requirements
process.hltMuonEcalMFPFClusterIsoForMuons.doRhoCorrection = cms.bool( False )
process.hltL3fL1sMu22Or25L1f0L2f10QL3Filtered27QL3pfecalIsoRhoFilteredEB0p14EE0p10.thrOverEEE = cms.vdouble( 10000 )
process.hltL3fL1sMu22Or25L1f0L2f10QL3Filtered27QL3pfecalIsoRhoFilteredEB0p14EE0p10.thrOverEEB = cms.vdouble( 10000 )
process.hltMuonHcalM2RegPFClusterIsoForMuons.doRhoCorrection = cms.bool( False )
process.hltL3fL1sMu22Or25L1f0L2f10QL3Filtered27QL3pfhcalIsoRhoFilteredHB0p16HE0p20.thrOverEEE = cms.vdouble( 10000 )
process.hltL3fL1sMu22Or25L1f0L2f10QL3Filtered27QL3pfhcalIsoRhoFilteredHB0p16HE0p20.thrOverEEB = cms.vdouble( 10000 )
process.hltMuonTkRelIsolationCut0p07Map.CutsPSet.Thresholds = cms.vdouble( 1000 )
process.source.fileNames = cms.untracked.vstring([
'root://xrootd.unl.edu//store/mc/RunIIFall15DR76/DYToLL_M_1_TuneCUETP8M1_13TeV_pythia8/AODSIM/25nsFlat10to50ZsecalNzshcalRaw_76X_mcRun2_asymptotic_2016EcalTune_30fb_v1_ext1-v1/00000/1019B170-3DD1-E511-9AE8-003048322B3E.root'
])
process.source.secondaryFileNames = cms.untracked.vstring([
'root://xrootd.unl.edu//store/mc/RunIIFall15DR76/DYToLL_M_1_TuneCUETP8M1_13TeV_pythia8/GEN-SIM-RAW/25nsFlat10to50ZsecalNzshcalRaw_76X_mcRun2_asymptotic_2016EcalTune_30fb_v1_ext1-v1/00000/44A7928D-1DD1-E511-8468-002590D9D880.root',
'root://xrootd.unl.edu//store/mc/RunIIFall15DR76/DYToLL_M_1_TuneCUETP8M1_13TeV_pythia8/GEN-SIM-RAW/25nsFlat10to50ZsecalNzshcalRaw_76X_mcRun2_asymptotic_2016EcalTune_30fb_v1_ext1-v1/00000/6E36DAC0-11D1-E511-B886-002590D9D9E4.root',
'root://xrootd.unl.edu//store/mc/RunIIFall15DR76/DYToLL_M_1_TuneCUETP8M1_13TeV_pythia8/GEN-SIM-RAW/25nsFlat10to50ZsecalNzshcalRaw_76X_mcRun2_asymptotic_2016EcalTune_30fb_v1_ext1-v1/00000/70ECBA6C-09D1-E511-9B94-0CC47A0AD6E4.root',
'root://xrootd.unl.edu//store/mc/RunIIFall15DR76/DYToLL_M_1_TuneCUETP8M1_13TeV_pythia8/GEN-SIM-RAW/25nsFlat10to50ZsecalNzshcalRaw_76X_mcRun2_asymptotic_2016EcalTune_30fb_v1_ext1-v1/00000/7C6637DA-11D1-E511-BAF4-0CC47A57CC8A.root',
'root://xrootd.unl.edu//store/mc/RunIIFall15DR76/DYToLL_M_1_TuneCUETP8M1_13TeV_pythia8/GEN-SIM-RAW/25nsFlat10to50ZsecalNzshcalRaw_76X_mcRun2_asymptotic_2016EcalTune_30fb_v1_ext1-v1/00000/84D56788-11D1-E511-A631-002590812700.root',
'root://xrootd.unl.edu//store/mc/RunIIFall15DR76/DYToLL_M_1_TuneCUETP8M1_13TeV_pythia8/GEN-SIM-RAW/25nsFlat10to50ZsecalNzshcalRaw_76X_mcRun2_asymptotic_2016EcalTune_30fb_v1_ext1-v1/00000/C473F120-20D1-E511-9E47-00259075D708.root',
'root://xrootd.unl.edu//store/mc/RunIIFall15DR76/DYToLL_M_1_TuneCUETP8M1_13TeV_pythia8/GEN-SIM-RAW/25nsFlat10to50ZsecalNzshcalRaw_76X_mcRun2_asymptotic_2016EcalTune_30fb_v1_ext1-v1/00000/E8800B81-1AD1-E511-A149-002590D9D8A4.root',
])
process.maxEvents.input = cms.untracked.int32(-1)
process.muonNtuples = cms.EDAnalyzer("MuonNtuples",
offlineVtx = cms.InputTag("offlinePrimaryVertices"),
offlineMuons = cms.InputTag("muons"),
triggerResult = cms.untracked.InputTag("TriggerResults::REHLT"),
triggerSummary = cms.untracked.InputTag("hltTriggerSummaryAOD::REHLT"),
tagTriggerResult = cms.untracked.InputTag("TriggerResults::HLT"),
tagTriggerSummary = cms.untracked.InputTag("hltTriggerSummaryAOD::HLT"),
L3Candidates = cms.untracked.InputTag("hltIterL3MuonCandidates"),
L2Candidates = cms.untracked.InputTag("hltL2MuonCandidates"),
L1Candidates = cms.untracked.InputTag("gmtStage2Digis", "Muon", "RECO"), #if HLT non re-run
#L1Candidates = cms.untracked.InputTag("hltGmtStage2Digis", "Muon"), # if re-run HLT and L1 emulator
NeutralDeposit = cms.untracked.InputTag("hltMuonHcalPFClusterIsoForMuons"),
PhotonsDeposit = cms.untracked.InputTag("hltMuonEcalPFClusterIsoForMuons"),
ChargedDeposit = cms.untracked.InputTag("hltMuonTkRelIsolationCut0p07Map", "trkIsoDeposits", "REHLT"),
RhoCorrectionOnline = cms.untracked.InputTag("hltFixedGridRhoFastjetAllCaloForMuons"), # for now, same for tag and probe muons
RhoCorrectionOffline = cms.untracked.InputTag("fixedGridRhoFastjetAllCalo"),
RhoCorrectionHCAL = cms.untracked.InputTag("hltFixedGridRhoFastjetHCAL"),
RhoCorrectionECAL = cms.untracked.InputTag("hltFixedGridRhoFastjetECALMFForMuons"),
offlineECalPFIso03 = cms.untracked.InputTag("muonEcalPFClusterIsolationProducer03"),
offlineHCalPFIso03 = cms.untracked.InputTag("muonHcalPFClusterIsolationProducer03"),
offlineECalPFIso04 = cms.untracked.InputTag("muonEcalPFClusterIsolationProducer04"),
offlineHCalPFIso04 = cms.untracked.InputTag("muonHcalPFClusterIsolationProducer04"),
lumiScalerTag = cms.untracked.InputTag("scalersRawToDigi"),
puInfoTag = cms.untracked.InputTag("addPileupInfo"),
genParticlesTag = cms.untracked.InputTag("genParticles"),
doOffline = cms.untracked.bool(False),
)
process.TFileService = cms.Service("TFileService",
fileName = cms.string("muonNtuple.root"),
closeFileFast = cms.untracked.bool(False)
)
process.runAna = cms.EndPath(process.muonNtuples)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment