scaleF =  2.826*10*1000/1703863.
from RA2Classic.WeightProducer.weightProducer_cfi import weightProducer
process.eventWeight = weightProducer.clone(
    weight = cms.double(scaleF),
)
from RA2Classic.WeightProducer.puWeightProducer_cfi import puWeightProducer
process.puWeight = puWeightProducer.clone(
    weight = cms.double(1.0),
)
from ZInvisibleBkgds.Photons.treemaker_cfi import photonTree
from ZInvisibleBkgds.Photons.treemaker_cfi import dimuonTree
process.analysisNoMuon = dimuonTree.clone(
    Debug           = cms.bool(False),
    Data            = cms.bool(False),
    ScaleFactor     = cms.double(scaleF),
    DoPUReweight    = cms.bool(True),
    metSource       = cms.InputTag("pfMetType1NoMuon","selected"),
    topTaggerSource = cms.string("myTopTaggerNoMuon"),
)
process.analysisNoMuon4M = process.analysisNoMuon.clone(
    topTaggerSource = cms.string("myTopTaggerNoMuon4M"),
)
process.analysisNoMuon5M = process.analysisNoMuon4M.clone(
    topTaggerSource = cms.string("myTopTaggerNoMuon5M"),
)
process.analysisNoMuon6M = process.analysisNoMuon4M.clone(
    topTaggerSource = cms.string("myTopTaggerNoMuon6M"),
)
process.analysisNoMuon4T = process.analysisNoMuon.clone(
    bJetSrc         = cms.InputTag("patCSVTJetsPFNoMuonPt30Eta24"),
    topTaggerSource = cms.string("myTopTaggerNoMuon4T"),
    weight = cms.double(scaleF),
)
from RA2Classic.WeightProducer.puWeightProducer_cfi import puWeightProducer
process.puWeight = puWeightProducer.clone(
    weight = cms.double(1.0),
)
from ZInvisibleBkgds.Photons.treemaker_cfi import dimuonTree
process.analysis = dimuonTree.clone(
    Debug           = cms.bool(False),
    Data            = cms.bool(False),
    ScaleFactor     = cms.double(scaleF),
    DoPUReweight    = cms.bool(True),

    metSource       = cms.InputTag("pfType1MetNoMuon","pfcand"),

    runTopTagger           = cms.bool(True),
    looseTopTaggerSource   = cms.string("diMuonTopTagger5Loose"),
    nominalTopTaggerSource = cms.string("diMuonTopTagger5M"),

    storeExtraVetos    = cms.bool(True),
    muonVetoSource     = cms.InputTag("sTopPFMuonVetoDiMuon"),
    electronVetoSource = cms.InputTag("sTopPFElectronVeto"),
    tauVetoSource      = cms.InputTag("sTopTauVetoDiMuon"),
    isoTrkVetoSource   = cms.InputTag("sTopIsoTrkVetoDiLeptons"),
)

#================ analysis sequence =======================#

process.load('SandBox.Skims.RA2Objects_cff')
process.load('SandBox.Skims.RA2Selection_cff')
process.load('ZInvisibleBkgds.Photons.ZinvMuonJets_cff')
process.load('ZInvisibleBkgds.Photons.ZinvBkgdJets_cff')
process.zToMuMu = cms.EDProducer("CandViewShallowCloneCombiner",
                                 decay = cms.string('patMuonsIDIso@+ patMuonsIDIso@-'),
                                 cut = cms.string('50.0 < mass < 120.0'),
                                 name = cms.string('zToMuMu'),
                                 roles = cms.vstring('muon1', 'muon2')
                                 )

#scaleF = 2950*10*1000/30460994.
from ZInvisibleBkgds.Photons.treemaker_cfi import dimuonTree
process.analysis = dimuonTree.clone(
    Debug           = cms.bool(False),
    Data            = cms.bool(True),
    ScaleFactor     = cms.double(1.0),
    MuonSrc         = cms.InputTag("specialMuonCollection"),
    VertexSrc       = cms.InputTag("goodVertices"),
    JetSrc          = cms.InputTag("patJetsPFNoMuonPt30"),
    htJetSrc        = cms.InputTag("patJetsPFNoMuonPt50Eta25"),
    bJetSrc         = cms.InputTag("patCSVJetsPFNoMuonPt30Eta24"),
    htSource        = cms.InputTag("htPFchsNoMuon"),
    mhtSource       = cms.InputTag("mhtPFchsNoMuon"),
    DoPUReweight    = cms.bool(False),
    PUWeightSource  = cms.InputTag("puWeight")
)

#================ configure filters and analysis sequence=======================

process.load('SandBox.Skims.RA2Objects_cff')
process.load('SandBox.Skims.RA2Selection_cff')
#from SusyAnalysis.MyAnalysis.filterBoolean_cfi import *
#process.load("SusyAnalysis.MyAnalysis.filterBoolean_cfi")

process.load('ZInvisibleBkgds.Photons.ZinvMuonJets_cff')
Exemplo n.º 4
0
process.source.skipEvents = cms.untracked.uint32(SKIPEVENTS)  

#========================= analysis module =====================================
process.zToMuMu = cms.EDProducer("CandViewShallowCloneCombiner",
                                 decay = cms.string('patMuonsPFIDIso@+ patMuonsPFIDIso@-'),
                                 cut = cms.string('50.0 < mass < 120.0'),
                                 name = cms.string('zToMuMu'),
                                 roles = cms.vstring('muon1', 'muon2')
                                 )

scaleF = 2950*10*1000/30460994.
from ZInvisibleBkgds.Photons.treemaker_cfi import dimuonTree
process.analysisNoMuon = dimuonTree.clone(
    Debug           = cms.bool(True),
    Data            = cms.bool(False),
    ScaleFactor     = cms.double(scaleF),
    DoPUReweight    = cms.bool(True),
)
process.analysisWithMuon = process.analysisNoMuon.clone()
process.analysisWithMuon.JetSrc    = cms.InputTag("patJetsPFchsPt30")
process.analysisWithMuon.htJetSrc  = cms.InputTag("patJetsPFchsPt50Eta25")
process.analysisWithMuon.bJetSrc   = cms.InputTag("patCSVJetsPFPt30Eta24")
process.analysisWithMuon.htSource  = cms.InputTag("htPFchs")
process.analysisWithMuon.mhtSource = cms.InputTag("mhtPFchs")

#================ configure filters and analysis sequence=======================

process.load('SandBox.Skims.RA2Objects_cff')
process.load('SandBox.Skims.RA2Selection_cff')
#from SusyAnalysis.MyAnalysis.filterBoolean_cfi import *
#process.load("SusyAnalysis.MyAnalysis.filterBoolean_cfi")
from RA2Classic.WeightProducer.weightProducer_cfi import weightProducer
process.eventWeight = weightProducer.clone(
    weight = cms.double(1.0),
)
from RA2Classic.WeightProducer.puWeightProducer_cfi import puWeightProducer
process.puWeight = puWeightProducer.clone(
    weight = cms.double(1.0),
)
from ZInvisibleBkgds.Photons.treemaker_cfi import dimuonTree
process.analysis = dimuonTree.clone(
    Debug           = cms.bool(False),
    Data            = cms.bool(False),
    ScaleFactor     = cms.double(1.0),
    DoPUReweight    = cms.bool(False),
    metSource       = cms.InputTag("pfType1MetNoMuon","selected"),
    TriggerResults  = cms.InputTag("TriggerResults"),
    topTaggerSource = cms.string("myTopTaggerNoMuon"),
    electronVetoSource = cms.InputTag("sTopPFElectronVeto"),
    tauVetoSource      = cms.InputTag("sTopTauVeto"),
    isoTrkVetoSource   = cms.InputTag("sTopIsoTrkVeto"),
)
process.analysis4Loose = process.analysis.clone(
    topTaggerSource = cms.string("myTopTagger4Loose"),
)
process.analysis5Loose = process.analysis4Loose.clone(
    topTaggerSource = cms.string("myTopTagger5Loose"),
)
process.analysis6Loose = process.analysis4Loose.clone(
    topTaggerSource = cms.string("myTopTagger6Loose"),
)
process.analysis4M = process.analysis.clone(
process.eventWeight = weightProducer.clone(
    weight = cms.double(scaleF),
)
from RA2Classic.WeightProducer.puWeightProducer_cfi import puWeightProducer
process.puWeight = puWeightProducer.clone(
    weight = cms.double(1.0),
)
from ZInvisibleBkgds.Photons.treemaker_cfi import dimuonTree
process.analysisNoRem = dimuonTree.clone(
    Debug           = cms.bool(False),
    Data            = cms.bool(False),
    ScaleFactor     = cms.double(scaleF),
    DoPUReweight    = cms.bool(True),

    MuonSrc         = cms.InputTag("patMuonsPFIDIso"),

    JetSrc          = cms.InputTag("patJetsPFchsPt30"),
    htJetSrc        = cms.InputTag("patJetsPFchsPt50Eta25"),
    bJetSrc         = cms.InputTag("patCSVMJetsPFPt30Eta24"),
    htSource        = cms.InputTag("htPFchs"),
    mhtSource       = cms.InputTag("mhtPFchs"),
    metSource       = cms.InputTag("newMETwPhiCorr"),

)
process.analysisIDIso = dimuonTree.clone(
    Debug           = cms.bool(False),
    Data            = cms.bool(False),
    ScaleFactor     = cms.double(scaleF),
    DoPUReweight    = cms.bool(True),
)
process.analysisGEN = process.analysisNoRem.clone(
    Debug           = cms.bool(False),
Exemplo n.º 7
0
scaleF = 2950*10*1000/30460994.
from RA2Classic.WeightProducer.weightProducer_cfi import weightProducer
process.eventWeight = weightProducer.clone(
    weight = cms.double(scaleF),
)
from RA2Classic.WeightProducer.puWeightProducer_cfi import puWeightProducer
process.puWeight = puWeightProducer.clone(
    weight = cms.double(1.0),
)
from ZInvisibleBkgds.Photons.treemaker_cfi import photonTree
from ZInvisibleBkgds.Photons.treemaker_cfi import dimuonTree
process.analysisNoMuon = dimuonTree.clone(
    Debug           = cms.bool(False),
    Data            = cms.bool(False),
    ScaleFactor     = cms.double(scaleF),
    DoPUReweight    = cms.bool(True),
    topTaggerSource = cms.string("myTopTaggerNoMuon"),
)
process.analysisNoMuon4M = process.analysisNoMuon.clone(
    topTaggerSource = cms.string("myTopTaggerNoMuon4M"),
)
process.analysisNoMuon5M = process.analysisNoMuon4M.clone(
    topTaggerSource = cms.string("myTopTaggerNoMuon5M"),
)
process.analysisNoMuon6M = process.analysisNoMuon4M.clone(
    topTaggerSource = cms.string("myTopTaggerNoMuon6M"),
)
process.analysisNoMuon4T = process.analysisNoMuon.clone(
    bJetSrc         = cms.InputTag("patCSVTJetsPFNoMuonPt30Eta24"),
    topTaggerSource = cms.string("myTopTaggerNoMuon4T"),