コード例 #1
0
# 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...
コード例 #2
0
# 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':
コード例 #3
0
    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,
コード例 #4
0
ファイル: h2TauTau_cfg.py プロジェクト: pcirkovic/cmg-cmssw
# 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,
コード例 #5
0
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
コード例 #6
0
ファイル: h2TauTau_cfg.py プロジェクト: 12345ieee/cmg-cmssw
# 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(
コード例 #7
0
ファイル: h2TauTau_diTau_cfg.py プロジェクト: anantoni/CMG
# 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,
コード例 #8
0
# 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,
コード例 #9
0
    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,
コード例 #10
0
# 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
コード例 #11
0
ファイル: h2TauTau_cfg.py プロジェクト: anantoni/CMG
# 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':