Example #1
0
process.GlobalTag.globaltag = 'GR_R_42_V19::All'

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

process.source = cms.Source("PoolSource",
                            fileNames=cms.untracked.vstring(
                                'file:pickevents1.root',
                                'file:pickevents2.root'))

process.load("PhysicsTools.PatAlgos.patSequences_cff")

from UWAnalysis.Configuration.tools.analysisTools import *
defaultReconstruction(process, 'HLT', [
    "HLT_Ele15_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_LooseIsoPFTau20",
    "HLT_Ele15_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_TightIsoPFTau20",
    "HLT_Ele18_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_MediumIsoPFTau20",
    "HLT_Ele20_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_MediumIsoPFTau20",
])

#EventSelection
process.load("UWAnalysis.Configuration.zEleTauAnalysis_cff")
process.eventSelection = cms.Path(process.selectionSequence)

from UWAnalysis.Configuration.tools.ntupleTools import addEleTauEventTree

addEleTauEventTree(process, 'eleTauEventTree')
addEleTauEventTree(process, 'eleTauEventTreeFinal', 'eleTausOS',
                   'osDiElectrons')

addEventSummary(process)
Example #2
0

process.eventSelection = cms.Path(process.selectionSequence)

#Systematic Shifts
process.eventSelectionTauUp    = createSystematics(process,process.selectionSequence,'TauUp',1.00,1.0,1.03,0,1.0)
process.eventSelectionTauDown  = createSystematics(process,process.selectionSequence,'TauDown',1.0,1.0,0.97,0,1.0)
process.eventSelectionMetUp    = createRecoilSystematics(process,process.selectionSequence,'MetUp',1.0,0.0)
process.eventSelectionMetDown  = createRecoilSystematics(process,process.selectionSequence,'MetDown',-1.0,0.0)
process.eventSelectionMetRUp    = createRecoilSystematics(process,process.selectionSequence,'MetRUp',0.0,1.0)
process.eventSelectionMetRDown  = createRecoilSystematics(process,process.selectionSequence,'MetRDown',0.0,-1.0)


from UWAnalysis.Configuration.tools.ntupleTools import addEleTauEventTree

addEleTauEventTree(process,'eleTauEventTree')
addEleTauEventTree(process,'eleTauEventTreeFinal','eleTausOS','osDiElectrons')
addEleTauEventTree(process,'eleTauEventTreeTauUp','eleTausSortedTauUp','osDiElectronsTauUp','eleTracksSortedTauUp','eleGSFTracksSortedTauUp')
addEleTauEventTree(process,'eleTauEventTreeTauDown','eleTausSortedTauDown','osDiElectronsTauDown','eleTracksSortedTauDown','eleGSFTracksSortedTauDown')
addEleTauEventTree(process,'eleTauEventTreeMetUp','eleTausSortedMetUp','osDiElectronsMetUp','eleTracksSortedMetUp','eleGSFTracksSortedMetUp')
addEleTauEventTree(process,'eleTauEventTreeMetDown','eleTausSortedMetDown','osDiElectronsMetDown','eleTracksSortedMetDown','eleGSFTracksSortedMetDown')
addEleTauEventTree(process,'eleTauEventTreeMetRUp','eleTausSortedMetRUp','osDiElectronsMetRUp','eleTracksSortedMetRUp','eleGSFTracksSortedMetRUp')
addEleTauEventTree(process,'eleTauEventTreeMetRDown','eleTausSortedMetRDown','osDiElectronsMetRDown','eleTracksSortedMetRDown','eleGSFTracksSortedMetRDown')



createGeneratedParticles(process,
                         'genTauCands',
                          [
                           "keep pdgId = {tau+} & mother.pdgId()= {Z0}",
                           "keep pdgId = {tau-} & mother.pdgId() = {Z0} "
Example #3
0
#EventSelection
process.load("UWAnalysis.Configuration.zEleTauAnalysis_cff")

process.metCalibration.applyCalibration = cms.bool(True)
process.metCalibration.calibrationScheme = cms.string("Phil_W")

process.eventSelection = cms.Path(process.selectionSequence)
process.eventSelectionTauUp    = createSystematics(process,process.selectionSequence,'TauUp',1.00,1.0,1.03,0,1.0)
process.eventSelectionTauDown  = createSystematics(process,process.selectionSequence,'TauDown',1.0,1.0,0.97,0,1.0)
process.eventSelectionEleUp    = createSystematics(process,process.selectionSequence,'EleUp',1.01,1.0,1.03,0,1.0)
process.eventSelectionEleDown  = createSystematics(process,process.selectionSequence,'EleDown',0.99,1.0,0.97,0,1.0)


from UWAnalysis.Configuration.tools.ntupleTools import addEleTauEventTree

addEleTauEventTree(process,'eleTauEventTree')
addEleTauEventTree(process,'eleTauEventTreeFinal','eleTausOS','osDiElectrons')
addEleTauEventTree(process,'eleTauEventTreeTauUp','eleTausSortedTauUp','osDiElectronsTauUp','eleTracksSortedTauUp','eleGSFTracksSortedTauUp')
addEleTauEventTree(process,'eleTauEventTreeTauDown','eleTausSortedTauDown','osDiElectronsTauDown','eleTracksSortedTauDown','eleGSFTracksSortedTauDown')

addEleTauEventTree(process,'eleTauEventTreeEleUp','eleTausSortedEleUp','osDiElectronsEleUp','eleTracksSortedEleUp','eleGSFTracksSortedEleUp')
addEleTauEventTree(process,'eleTauEventTreeEleDown','eleTausSortedEleDown','osDiElectronsEleDown','eleTracksSortedEleDown','eleGSFTracksSortedEleDown')


createGeneratedParticles(process,
                         'genTauCands',
                          [
                           "keep pdgId = {tau+} & mother.pdgId()= {Z0}",
                           "keep pdgId = {tau-} & mother.pdgId() = {Z0} "
                          ]
)
Example #4
0
#EventSelection
process.load("UWAnalysis.Configuration.zEleTauAnalysis_cff")
process.eventSelection = cms.Path(process.selectionSequence)


#Systematic Shifts
process.eventSelectionTauUp    = createSystematics(process,process.selectionSequence,'TauUp',1.00,1.0,1.03,0,1.0)
process.eventSelectionTauDown  = createSystematics(process,process.selectionSequence,'TauDown',1.0,1.0,0.97,0,1.0)
process.eventSelectionJetUp    = createSystematics(process,process.selectionSequence,'JetUp',1.00,1.0,1.0,1,1.0)
process.eventSelectionJetDown  = createSystematics(process,process.selectionSequence,'JetDown',1.0,1.0,1.0,-1,1.0)
process.eventSelectionUncUp    = createSystematics(process,process.selectionSequence,'UncUp',1.00,1.0,1.0,0,1.1)
process.eventSelectionUncDown  = createSystematics(process,process.selectionSequence,'UncDown',1.0,1.0,1.0,0,0.9)

from UWAnalysis.Configuration.tools.ntupleTools import addEleTauEventTree

addEleTauEventTree(process,'eleTauEventTree')
addEleTauEventTree(process,'eleTauEventTreeFinal','eleTausOS','osDiElectrons')
addEleTauEventTree(process,'eleTauEventTreeTauUp','eleTausSortedTauUp','osDiElectronsTauUp','eleTracksSortedTauUp','eleGSFTracksSortedTauUp')
addEleTauEventTree(process,'eleTauEventTreeTauDown','eleTausSortedTauDown','osDiElectronsTauDown','eleTracksSortedTauDown','eleGSFTracksSortedTauDown')
addEleTauEventTree(process,'eleTauEventTreeJetUp','eleTausSortedJetUp','osDiElectronsJetUp','eleTracksSortedJetUp','eleGSFTracksSortedJetUp')
addEleTauEventTree(process,'eleTauEventTreeJetDown','eleTausSortedJetDown','osDiElectronsJetDown','eleTracksSortedJetDown','eleGSFTracksSortedJetDown')
addEleTauEventTree(process,'eleTauEventTreeUncUp','eleTausSortedUncUp','osDiElectronsUncUp','eleTracksSortedUncUp','eleGSFTracksSortedUncUp')
addEleTauEventTree(process,'eleTauEventTreeUncDown','eleTausSortedUncDown','osDiElectronsUncDown','eleTracksSortedUncDown','eleGSFTracksSortedUncDown')





createGeneratedParticles(process,
                         'genTauCands',
                          [
Example #5
0

#EventSelection
process.load("UWAnalysis.Configuration.zEleTauAnalysis_cff")
process.eventSelection = cms.Path(process.selectionSequence)
#Systematic Shifts
# process.eventSelectionTauUp    = createSystematics(process,process.selectionSequence,'TauUp',1.00,1.0,1.03,0,1.0)
# process.eventSelectionTauDown  = createSystematics(process,process.selectionSequence,'TauDown',1.0,1.0,0.97,0,1.0)
# process.eventSelectionJetUp    = createSystematics(process,process.selectionSequence,'JetUp',1.00,1.0,1.0,1,1.0)
# process.eventSelectionJetDown  = createSystematics(process,process.selectionSequence,'JetDown',1.0,1.0,1.0,-1,1.0)
# process.eventSelectionUncUp    = createSystematics(process,process.selectionSequence,'UncUp',1.00,1.0,1.0,0,1.1)
# process.eventSelectionUncDown  = createSystematics(process,process.selectionSequence,'UncDown',1.0,1.0,1.0,0,0.9)

from UWAnalysis.Configuration.tools.ntupleTools import addEleTauEventTree

addEleTauEventTree(process,'eleTauEventTree')
# addEleTauEventTree(process,'eleTauEventTreeFinal','eleTausOS','osDiElectrons')
# addEleTauEventTree(process,'eleTauEventTreeTauUp','eleTausSortedTauUp','osDiElectronsTauUp','eleTracksSortedTauUp','eleGSFTracksSortedTauUp')
# addEleTauEventTree(process,'eleTauEventTreeTauDown','eleTausSortedTauDown','osDiElectronsTauDown','eleTracksSortedTauDown','eleGSFTracksSortedTauDown')
# addEleTauEventTree(process,'eleTauEventTreeJetUp','eleTausSortedJetUp','osDiElectronsJetUp','eleTracksSortedJetUp','eleGSFTracksSortedJetUp')
# addEleTauEventTree(process,'eleTauEventTreeJetDown','eleTausSortedJetDown','osDiElectronsJetDown','eleTracksSortedJetDown','eleGSFTracksSortedJetDown')
# addEleTauEventTree(process,'eleTauEventTreeUncUp','eleTausSortedUncUp','osDiElectronsUncUp','eleTracksSortedUncUp','eleGSFTracksSortedUncUp')
# addEleTauEventTree(process,'eleTauEventTreeUncDown','eleTausSortedUncDown','osDiElectronsUncDown','eleTracksSortedUncDown','eleGSFTracksSortedUncDown')




createGeneratedParticles(process,
                         'genTauCands',
                          [
                           "keep pdgId = {tau+} & mother.pdgId()= {Z0}",
Example #6
0
from UWAnalysis.Configuration.tools.analysisTools import *
defaultReconstruction(process,'HLT',["HLT_Ele15_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_LooseIsoPFTau20",
                                     "HLT_Ele15_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_TightIsoPFTau20",
                                     "HLT_Ele18_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_MediumIsoPFTau20",
                                     "HLT_Ele20_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_MediumIsoPFTau20",                                    
                                     ])




#EventSelection
process.load("UWAnalysis.Configuration.zEleTauAnalysis_cff")
process.eventSelection = cms.Path(process.selectionSequence)


from UWAnalysis.Configuration.tools.ntupleTools import addEleTauEventTree

addEleTauEventTree(process,'eleTauEventTree')
addEleTauEventTree(process,'eleTauEventTreeFinal','eleTausOS','osDiElectrons')

addEventSummary(process)








Example #7
0
process.eventSelectionTauDown = createSystematics(process,
                                                  process.selectionSequence,
                                                  'TauDown', 1.0, 1.0, 0.97, 0,
                                                  1.0)
process.eventSelectionEleUp = createSystematics(process,
                                                process.selectionSequence,
                                                'EleUp', 1.01, 1.0, 1.03, 0,
                                                1.0)
process.eventSelectionEleDown = createSystematics(process,
                                                  process.selectionSequence,
                                                  'EleDown', 0.99, 1.0, 0.97,
                                                  0, 1.0)

from UWAnalysis.Configuration.tools.ntupleTools import addEleTauEventTree

addEleTauEventTree(process, 'eleTauEventTree')
addEleTauEventTree(process, 'eleTauEventTreeFinal', 'eleTausOS',
                   'osDiElectrons')
addEleTauEventTree(process, 'eleTauEventTreeTauUp', 'eleTausSortedTauUp',
                   'osDiElectronsTauUp', 'eleTracksSortedTauUp',
                   'eleGSFTracksSortedTauUp')
addEleTauEventTree(process, 'eleTauEventTreeTauDown', 'eleTausSortedTauDown',
                   'osDiElectronsTauDown', 'eleTracksSortedTauDown',
                   'eleGSFTracksSortedTauDown')

addEleTauEventTree(process, 'eleTauEventTreeEleUp', 'eleTausSortedEleUp',
                   'osDiElectronsEleUp', 'eleTracksSortedEleUp',
                   'eleGSFTracksSortedEleUp')
addEleTauEventTree(process, 'eleTauEventTreeEleDown', 'eleTausSortedEleDown',
                   'osDiElectronsEleDown', 'eleTracksSortedEleDown',
                   'eleGSFTracksSortedEleDown')
Example #8
0
process.eventSelection = cms.Path(process.selectionSequence)


# Systematic Shifts
process.eventSelectionTauUp = createSystematics(process, process.selectionSequence, "TauUp", 1.00, 1.0, 1.03, 0, 1.0)
process.eventSelectionTauDown = createSystematics(process, process.selectionSequence, "TauDown", 1.0, 1.0, 0.97, 0, 1.0)
process.eventSelectionMetUp = createRecoilSystematics(process, process.selectionSequence, "MetUp", 1.0, 0.0)
process.eventSelectionMetDown = createRecoilSystematics(process, process.selectionSequence, "MetDown", -1.0, 0.0)
process.eventSelectionMetRUp = createRecoilSystematics(process, process.selectionSequence, "MetRUp", 0.0, 1.0)
process.eventSelectionMetRDown = createRecoilSystematics(process, process.selectionSequence, "MetRDown", 0.0, -1.0)


from UWAnalysis.Configuration.tools.ntupleTools import addEleTauEventTree

addEleTauEventTree(process, "eleTauEventTree")
addEleTauEventTree(process, "eleTauEventTreeFinal", "eleTausOS", "osDiElectrons")
addEleTauEventTree(
    process,
    "eleTauEventTreeTauUp",
    "eleTausSortedTauUp",
    "osDiElectronsTauUp",
    "eleTracksSortedTauUp",
    "eleGSFTracksSortedTauUp",
)
addEleTauEventTree(
    process,
    "eleTauEventTreeTauDown",
    "eleTausSortedTauDown",
    "osDiElectronsTauDown",
    "eleTracksSortedTauDown",