# set up JSON --------------------------------------------------------------- if runOnMC==False: from CMGTools.H2TauTau.tools.setupJSON import setupJSON json = setupJSON(process) # load the channel paths ------------------------------------------- process.load('CMGTools.H2TauTau.h2TauTau_cff') # setting up the recoil correction according to the input file --------------- print sep_line from CMGTools.H2TauTau.tools.setupRecoilCorrection import setupRecoilCorrection # WARNING DISABLING RECOIL CORRECTIONS FOR 2012!!! setupRecoilCorrection( process, runOnMC, True, cmsswIs52X(), 'WJetsToLNu') # OUTPUT definition ---------------------------------------------------------- process.outpath = cms.EndPath() # generator ---------------------------------------------- if not runOnMC: process.tauMuPath.remove( process.genSequence ) process.tauElePath.remove( process.genSequence ) process.diTauPath.remove( process.genSequence ) # muon removal sequence # ---- # need to clean that up a bit...
# set up JSON --------------------------------------------------------------- if runOnMC==False: from CMGTools.H2TauTau.tools.setupJSON import setupJSON json = setupJSON(process) # load the channel paths ------------------------------------------- process.load('CMGTools.H2TauTau.h2TauTau_cff') # setting up the recoil correction according to the input file --------------- print sep_line from CMGTools.H2TauTau.tools.setupRecoilCorrection import setupRecoilCorrection recoilEnabled = True setupRecoilCorrection( process, runOnMC, enable=recoilEnabled, is53X=isNewerThan('CMSSW_5_2_X'),channel=channel) # Kinematic reweighting for the embedded samples from here https://twiki.cern.ch/twiki/bin/viewauth/CMS/MuonTauReplacementRecHit # Can also put this into a separate file under tools isEmbedded = process.source.fileNames[0].find('embedded') != -1 if isEmbedded: process.load('TauAnalysis.MCEmbeddingTools.embeddingKineReweight_cff') if channel == 'all': print 'ERROR: not possible to run all the channels for the embedded samples right now' # for "standard" e+tau channel if channel == 'tau-ele':
json = setupJSON(process) # load the channel paths ------------------------------------------- process.load('CMGTools.H2TauTau.h2TauTau_cff') # REMOVING SKIMMING CUTS process.diTauCuts.baseline.mass = '' process.cmgDiTauPreSel.cut = '' process.diTauFullSelCount.minNumber = 0 # setting up the recoil correction according to the input file --------------- print sep_line from CMGTools.H2TauTau.tools.setupRecoilCorrection import setupRecoilCorrection # WARNING DISABLING RECOIL CORRECTIONS FOR 2012!!! setupRecoilCorrection(process, runOnMC, True, cmsswIs52X()) # OUTPUT definition ---------------------------------------------------------- process.outpath = cms.EndPath() # generator ---------------------------------------------- if not runOnMC: process.tauMuPath.remove(process.genSequence) process.tauElePath.remove(process.genSequence) process.diTauPath.remove(process.genSequence) #Jose: process.schedule doesn't have a += operator? if channel == 'all': process.schedule = cms.Schedule( process.tauMuPath, process.tauElePath,
# Sequence & path definition ------------------------------------------------- # set up JSON --------------------------------------------------------------- if runOnMC == False: from CMGTools.H2TauTau.tools.setupJSON import setupJSON json = setupJSON(process) # load the channel paths ------------------------------------------- process.load('CMGTools.H2TauTau.h2TauTau_cff') # setting up the recoil correction according to the input file --------------- print sep_line from CMGTools.H2TauTau.tools.setupRecoilCorrection import setupRecoilCorrection setupRecoilCorrection(process, runOnMC) # OUTPUT definition ---------------------------------------------------------- process.outpath = cms.EndPath() # generator ---------------------------------------------- if not runOnMC: process.tauMuPath.remove(process.genSequence) process.tauElePath.remove(process.genSequence) process.diTauPath.remove(process.genSequence) #Jose: process.schedule doesn't have a += operator? if channel == 'all': process.schedule = cms.Schedule( process.tauMuPath, process.tauElePath,
if runOnMC==False: from CMGTools.H2TauTau.tools.setupJSON import setupJSON json = setupJSON(process) # setting up vertex weighting ----------------------------------------------- if runOnMC: #SIMULATION process.load('CMGTools.Common.generator.vertexWeight.vertexWeight_cff') process.objectSequence += process.vertexWeightSequence # setting up the recoil correction according to the input file --------------- print sep_line from CMGTools.H2TauTau.tools.setupRecoilCorrection import setupRecoilCorrection setupRecoilCorrection( process ) # OUTPUT definition ---------------------------------------------------------- process.out = cms.OutputModule("PoolOutputModule", fileName = cms.untracked.string('patTuple.root'), SelectEvents = cms.untracked.PSet( SelectEvents = cms.vstring('p') ), outputCommands = cms.untracked.vstring('keep *') ) # skim (basic selection) ------ outFileNameExt = 'CMG' basicName = 'h2TauTau_presel_tree_%s.root' % outFileNameExt process.out.fileName = cms.untracked.string( basicName ) from CMGTools.H2TauTau.eventContent.tauMu_cff import tauMu as tauMuEventContent
# set up JSON --------------------------------------------------------------- if runOnMC == False: from CMGTools.H2TauTau.tools.setupJSON import setupJSON json = setupJSON(process) # load the channel paths ------------------------------------------- process.load("CMGTools.H2TauTau.h2TauTau_cff") # setting up the recoil correction according to the input file --------------- print sep_line from CMGTools.H2TauTau.tools.setupRecoilCorrection import setupRecoilCorrection setupRecoilCorrection(process, runOnMC) # OUTPUT definition ---------------------------------------------------------- process.outpath = cms.EndPath() # generator ---------------------------------------------- if not runOnMC: process.tauMuPath.remove(process.genSequence) process.tauElePath.remove(process.genSequence) process.diTauPath.remove(process.genSequence) # Jose: process.schedule doesn't have a += operator? if channel == "all": process.schedule = cms.Schedule(
# set up JSON --------------------------------------------------------------- if runOnMC == False: from CMGTools.Common.Tools.applyJSON_cff import applyJSON json = "/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/certification/Collisions12/8TeV/Prompt/Cert_190456-208686_8TeV_PromptReco_Collisions12_JSON.txt" #json="/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/certification/Collisions12/8TeV/Reprocessing/Cert_190456-196531_8TeV_13Jul2012ReReco_Collisions12_JSON_v2.txt" applyJSON(process, json) # load the channel paths ------------------------------------------- process.load('CMGTools.H2TauTau.h2TauTau_cff') # setting up the recoil correction according to the input file --------------- print sep_line from CMGTools.H2TauTau.tools.setupRecoilCorrection import setupRecoilCorrection, lookup, rootfile_dir # WARNING DISABLING RECOIL CORRECTIONS FOR 2012!!! setupRecoilCorrection(process, runOnMC, True, cmsswIs52X(), None, channel) # OUTPUT definition ---------------------------------------------------------- process.outpath = cms.EndPath() # generator ---------------------------------------------- if not runOnMC: process.tauMuPath.remove(process.genSequence) process.tauElePath.remove(process.genSequence) process.diTauPath.remove(process.genSequence) if channel == 'all': process.schedule = cms.Schedule( process.tauMuPath, process.tauElePath, # process.muElePath,
# load the channel paths ------------------------------------------- process.load('CMGTools.H2TauTau.h2TauTau_cff') # REMOVING SKIMMING CUTS process.diTauCuts.baseline.mass='' process.cmgDiTauPreSel.cut='' process.diTauFullSelCount.minNumber=0 # setting up the recoil correction according to the input file --------------- print sep_line from CMGTools.H2TauTau.tools.setupRecoilCorrection import setupRecoilCorrection # WARNING DISABLING RECOIL CORRECTIONS FOR 2012!!! setupRecoilCorrection( process, runOnMC, True, cmsswIs52X()) # OUTPUT definition ---------------------------------------------------------- process.outpath = cms.EndPath() # generator ---------------------------------------------- if not runOnMC: process.tauMuPath.remove( process.genSequence ) process.tauElePath.remove( process.genSequence ) process.diTauPath.remove( process.genSequence ) #Jose: process.schedule doesn't have a += operator? if channel=='all': process.schedule = cms.Schedule( process.tauMuPath,
from CMGTools.Common.Tools.applyJSON_cff import applyJSON json="/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/certification/Collisions12/8TeV/Prompt/Cert_190456-208686_8TeV_PromptReco_Collisions12_JSON.txt" #json="/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/certification/Collisions12/8TeV/Reprocessing/Cert_190456-196531_8TeV_13Jul2012ReReco_Collisions12_JSON_v2.txt" applyJSON(process, json ) # load the channel paths ------------------------------------------- process.load('CMGTools.H2TauTau.h2TauTau_cff') # setting up the recoil correction according to the input file --------------- print sep_line from CMGTools.H2TauTau.tools.setupRecoilCorrection import setupRecoilCorrection,lookup,rootfile_dir # WARNING DISABLING RECOIL CORRECTIONS FOR 2012!!! setupRecoilCorrection( process, runOnMC, True, cmsswIs52X(), None, channel) # OUTPUT definition ---------------------------------------------------------- process.outpath = cms.EndPath() # generator ---------------------------------------------- if not runOnMC: process.tauMuPath.remove( process.genSequence ) process.tauElePath.remove( process.genSequence ) process.diTauPath.remove( process.genSequence ) if channel=='all': process.schedule = cms.Schedule( process.tauMuPath, process.tauElePath,
# Sequence & path definition ------------------------------------------------- # set up JSON --------------------------------------------------------------- if runOnMC == False: from CMGTools.H2TauTau.tools.setupJSON import setupJSON json = setupJSON(process) # load the channel paths ------------------------------------------- process.load('CMGTools.H2TauTau.h2TauTau_cff') # setting up the recoil correction according to the input file --------------- print sep_line from CMGTools.H2TauTau.tools.setupRecoilCorrection import setupRecoilCorrection # WARNING DISABLING RECOIL CORRECTIONS FOR 2012!!! setupRecoilCorrection(process, runOnMC, True, cmsswIs52X(), 'WJetsToLNu') # OUTPUT definition ---------------------------------------------------------- process.outpath = cms.EndPath() # generator ---------------------------------------------- if not runOnMC: process.tauMuPath.remove(process.genSequence) process.tauElePath.remove(process.genSequence) process.diTauPath.remove(process.genSequence) # muon removal sequence # ---- # need to clean that up a bit... # mu faking tau small, but we could think of removing tau candidates corresponding to the removed mu
# set up JSON --------------------------------------------------------------- if runOnMC == False: from CMGTools.H2TauTau.tools.setupJSON import setupJSON json = setupJSON(process) # load the channel paths ------------------------------------------- process.load('CMGTools.H2TauTau.h2TauTau_cff') # setting up the recoil correction according to the input file --------------- print sep_line from CMGTools.H2TauTau.tools.setupRecoilCorrection import setupRecoilCorrection recoilEnabled = True setupRecoilCorrection(process, runOnMC, enable=recoilEnabled, is53X=isNewerThan('CMSSW_5_2_X')) # Kinematic reweighting for the embedded samples from here https://twiki.cern.ch/twiki/bin/viewauth/CMS/MuonTauReplacementRecHit # Can also put this into a separate file under tools isEmbedded = process.source.fileNames[0].find('embedded') != -1 if isEmbedded: process.load('TauAnalysis.MCEmbeddingTools.embeddingKineReweight_cff') if channel == 'all': print 'ERROR: not possible to run all the channels for the embedded samples right now' # for "standard" e+tau channel if channel == 'tau-ele':