Exemplo n.º 1
0
        '/store/data/Run2011A/MuEG/AOD/PromptReco-v6/000/172/791/3887F451-6AC1-E011-838A-001D09F23A34.root',
        '/store/data/Run2011A/MuEG/AOD/PromptReco-v6/000/172/791/40352BF6-8DC1-E011-8EBB-BCAEC5329717.root',
        '/store/data/Run2011A/MuEG/AOD/PromptReco-v6/000/172/791/4E3BE023-97C1-E011-AADD-BCAEC5329730.root',
        '/store/data/Run2011A/MuEG/AOD/PromptReco-v6/000/172/791/4E497E90-65C1-E011-A615-BCAEC5329709.root',
        '/store/data/Run2011A/MuEG/AOD/PromptReco-v6/000/172/791/507EA8FA-7BC1-E011-8021-003048F024C2.root',
        '/store/data/Run2011A/MuEG/AOD/PromptReco-v6/000/172/791/523BA244-6AC1-E011-8FB3-BCAEC518FF7C.root'
    ))

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

from UWAnalysis.Configuration.tools.analysisTools import *
defaultReconstruction(process, 'HLT', [
    'HLT_Mu17_Ele8_CaloIdL', 'HLT_Mu8_Ele17_CaloIdL',
    'HLT_Mu8_Ele17_CaloIdT_CaloIsoVL', 'HLT_Mu17_Ele8_CaloIdT_CaloIsoVL'
])

#EventSelection
process.load("UWAnalysis.Configuration.zEleMuAnalysis_cff")
process.eventSelection = cms.Path(
    process.selectionSequence)  ##changing to multiples see below

#Add event counter
addEventSummary(process)

#ntupleization
from UWAnalysis.Configuration.tools.ntupleTools import addEleMuEventTree

addEleMuEventTree(process, 'eleMuEventTree')

addEleMuEventTree(process, 'eleMuEventTreeNominal', 'eleMuonsOS')
Exemplo n.º 2
0
                           "keep pdgId = {mu+}",
                           "keep pdgId = {mu-}",
                           "keep pdgId = 11",
                           "keep pdgId = -11"
                          ]
)


#Add event counter
addEventSummary(process,True)

#ntupleization

from UWAnalysis.Configuration.tools.ntupleTools import addEleMuEventTree 

addEleMuEventTree(process,'eleMuEventTree')


#Final trees afor shapes after shifts
addEleMuEventTree(process,'eleMuEventTreeNominal','eleMuonsSorted')
#addEleMuEventTree(process,'eleMuEventTreeMuUp','eleMuonsSortedMuUp')
#addEleMuEventTree(process,'eleMuEventTreeMuDown','eleMuonsSortedMuDown')
addEleMuEventTree(process,'eleMuEventTreeEleUp','eleMuonsSortedEleUp')
addEleMuEventTree(process,'eleMuEventTreeEleDown','eleMuonsSortedEleDown')
addEleMuEventTree(process,'eleMuEventTreeMetUp','eleMuonsSortedMetUp')
addEleMuEventTree(process,'eleMuEventTreeMetDown','eleMuonsSortedMetDown')
addEleMuEventTree(process,'eleMuEventTreeMetRUp','eleMuonsSortedMetRUp')
addEleMuEventTree(process,'eleMuEventTreeMetRDown','eleMuonsSortedMetRDown')


Exemplo n.º 3
0
process.eventSelectionMetRUp = createRecoilSystematics(
    process, process.selectionSequence, 'MetRUp', 0.0, 1.0)
process.eventSelectionMetRDown = createRecoilSystematics(
    process, process.selectionSequence, 'MetRDown', 0.0, -1.0)

createGeneratedParticles(process, 'genDaughters', [
    "keep pdgId = 25",
    "keep pdgId = 35",
    "keep abs(pdgId) = 36",
])

#Add event counter
addEventSummary(process, True)

#ntupleization

from UWAnalysis.Configuration.tools.ntupleTools import addEleMuEventTree

addEleMuEventTree(process, 'eleMuEventTree')

#Final trees afor shapes after shifts
addEleMuEventTree(process, 'eleMuEventTreeNominal', 'eleMuonsSorted')
#addEleMuEventTree(process,'eleMuEventTreeMuUp','eleMuonsSortedMuUp')
#addEleMuEventTree(process,'eleMuEventTreeMuDown','eleMuonsSortedMuDown')
addEleMuEventTree(process, 'eleMuEventTreeEleUp', 'eleMuonsSortedEleUp')
addEleMuEventTree(process, 'eleMuEventTreeEleDown', 'eleMuonsSortedEleDown')
addEleMuEventTree(process, 'eleMuEventTreeMetUp', 'eleMuonsSortedMetUp')
addEleMuEventTree(process, 'eleMuEventTreeMetDown', 'eleMuonsSortedMetDown')
addEleMuEventTree(process, 'eleMuEventTreeMetRUp', 'eleMuonsSortedMetRUp')
addEleMuEventTree(process, 'eleMuEventTreeMetRDown', 'eleMuonsSortedMetRDown')
Exemplo n.º 4
0
                           "keep pdgId = {mu+}",
                           "keep pdgId = {mu-}",
                           "keep pdgId = 11",
                           "keep pdgId = -11"
                          ]
)


#Add event counter
addEventSummary(process,True)

#ntupleization

from UWAnalysis.Configuration.tools.ntupleTools import addEleMuEventTree 

addEleMuEventTree(process,'eleMuEventTree')


#Final trees afor shapes after shifts
addEleMuEventTree(process,'eleMuEventTreeNominal','eleMuonsSorted')
#addEleMuEventTree(process,'eleMuEventTreeMuUp','eleMuonsSortedMuUp')
#addEleMuEventTree(process,'eleMuEventTreeMuDown','eleMuonsSortedMuDown')
addEleMuEventTree(process,'eleMuEventTreeEleUp','eleMuonsSortedEleUp')
addEleMuEventTree(process,'eleMuEventTreeEleDown','eleMuonsSortedEleDown')
addEleMuEventTree(process,'eleMuEventTreeJetUp','eleMuonsSortedJetUp')
addEleMuEventTree(process,'eleMuEventTreeJetDown','eleMuonsSortedJetDown')
addEleMuEventTree(process,'eleMuEventTreeUncUp','eleMuonsSortedUncUp')
addEleMuEventTree(process,'eleMuEventTreeUncDown','eleMuonsSortedUncDown')


Exemplo n.º 5
0
process.jetTracksAssociatorAtVertex.tracks = cms.InputTag("tmfTracks")

#EventSelection
process.load("UWAnalysis.Configuration.zEleMuAnalysis_cff")
process.eventSelection = cms.Path(
    process.selectionSequence)  ##changing to multiples see below

process.eventSelectionEleUp = createSystematics(process,
                                                process.selectionSequence,
                                                'EleUp', 1.00, 1.0, 1.00, 0,
                                                1.0, 0.01601, 0.04745)
process.eventSelectionEleDown = createSystematics(process,
                                                  process.selectionSequence,
                                                  'EleDown', 1.0, 1.0, 1.00, 0,
                                                  1.0, -0.01601, -0.04745)

createGeneratedParticles(process, 'genDaughters',
                         ["keep pdgId = 15", "keep pdgId = -15"])

#Add event counter
addEventSummary(process)

#ntupleization

from UWAnalysis.Configuration.tools.ntupleTools import addEleMuEventTree

addEleMuEventTree(process, 'eleMuEventTree')
addEleMuEventTree(process, 'eleMuEventTreeEleUp', 'eleMuonsSortedEleUp')
addEleMuEventTree(process, 'eleMuEventTreeEleDown', 'eleMuonsSortedEleDown')
Exemplo n.º 6
0
                         'genDaughters',
                          [
                           "keep pdgId = 15",
                           "keep pdgId = -15"
                          ]
)


#Add event counter
addEventSummary(process)

#ntupleization

from UWAnalysis.Configuration.tools.ntupleTools import addEleMuEventTree 

addEleMuEventTree(process,'eleMuEventTree')
addEleMuEventTree(process,'eleMuEventTreeEleUp','eleMuonsSortedEleUp')
addEleMuEventTree(process,'eleMuEventTreeEleDown','eleMuonsSortedEleDown')












Exemplo n.º 7
0
                           "keep pdgId = {mu+}",
                           "keep pdgId = {mu-}",
                           "keep pdgId = 11",
                           "keep pdgId = -11"
                          ]
)


#Add event counter
addEventSummary(process,True)

#ntupleization

from UWAnalysis.Configuration.tools.ntupleTools import addEleMuEventTree 

addEleMuEventTree(process,'eleMuEventTree')


#Final trees afor shapes after shifts
addEleMuEventTree(process,'eleMuEventTreeNominal','eleMuonsSorted')
#addEleMuEventTree(process,'eleMuEventTreeMuUp','eleMuonsSortedMuUp')
#addEleMuEventTree(process,'eleMuEventTreeMuDown','eleMuonsSortedMuDown')
addEleMuEventTree(process,'eleMuEventTreeEleUp','eleMuonsSortedEleUp')
addEleMuEventTree(process,'eleMuEventTreeEleDown','eleMuonsSortedEleDown')
addEleMuEventTree(process,'eleMuEventTreeJetUp','eleMuonsSortedJetUp')
addEleMuEventTree(process,'eleMuEventTreeJetDown','eleMuonsSortedJetDown')
addEleMuEventTree(process,'eleMuEventTreeUncUp','eleMuonsSortedUncUp')
addEleMuEventTree(process,'eleMuEventTreeUncDown','eleMuonsSortedUncDown')


Exemplo n.º 8
0
        "keep pdgId = {tau+}",
        "keep pdgId = {tau-}",
        "keep pdgId = {mu+}",
        "keep pdgId = {mu-}",
        "keep pdgId = 11",
        "keep pdgId = -11",
    ],
)


# Add event counter
addEventSummary(process, True)

# ntupleization

from UWAnalysis.Configuration.tools.ntupleTools import addEleMuEventTree

addEleMuEventTree(process, "eleMuEventTree")


# Final trees afor shapes after shifts
addEleMuEventTree(process, "eleMuEventTreeNominal", "eleMuonsSorted")
# addEleMuEventTree(process,'eleMuEventTreeMuUp','eleMuonsSortedMuUp')
# addEleMuEventTree(process,'eleMuEventTreeMuDown','eleMuonsSortedMuDown')
addEleMuEventTree(process, "eleMuEventTreeEleUp", "eleMuonsSortedEleUp")
addEleMuEventTree(process, "eleMuEventTreeEleDown", "eleMuonsSortedEleDown")
addEleMuEventTree(process, "eleMuEventTreeMetUp", "eleMuonsSortedMetUp")
addEleMuEventTree(process, "eleMuEventTreeMetDown", "eleMuonsSortedMetDown")
addEleMuEventTree(process, "eleMuEventTreeMetRUp", "eleMuonsSortedMetRUp")
addEleMuEventTree(process, "eleMuEventTreeMetRDown", "eleMuonsSortedMetRDown")
Exemplo n.º 9
0
'HLT_Mu8_Ele17_CaloIdL',
'HLT_Mu8_Ele17_CaloIdT_CaloIsoVL',
'HLT_Mu17_Ele8_CaloIdT_CaloIsoVL'
    ])

#EventSelection
process.load("UWAnalysis.Configuration.zEleMuAnalysis_cff")
process.eventSelection = cms.Path(process.selectionSequence) ##changing to multiples see below

#Add event counter
addEventSummary(process)

#ntupleization
from UWAnalysis.Configuration.tools.ntupleTools import addEleMuEventTree 

addEleMuEventTree(process,'eleMuEventTree')

addEleMuEventTree(process,'eleMuEventTreeNominal','eleMuonsOS')












Exemplo n.º 10
0
        "keep pdgId = {tau+}",
        "keep pdgId = {tau-}",
        "keep pdgId = {mu+}",
        "keep pdgId = {mu-}",
        "keep pdgId = 11",
        "keep pdgId = -11",
    ],
)


# Add event counter
addEventSummary(process, True)

# ntupleization

from UWAnalysis.Configuration.tools.ntupleTools import addEleMuEventTree

addEleMuEventTree(process, "eleMuEventTree")


# Final trees afor shapes after shifts
addEleMuEventTree(process, "eleMuEventTreeNominal", "eleMuonsSorted")
# addEleMuEventTree(process,'eleMuEventTreeMuUp','eleMuonsSortedMuUp')
# addEleMuEventTree(process,'eleMuEventTreeMuDown','eleMuonsSortedMuDown')
addEleMuEventTree(process, "eleMuEventTreeEleUp", "eleMuonsSortedEleUp")
addEleMuEventTree(process, "eleMuEventTreeEleDown", "eleMuonsSortedEleDown")
addEleMuEventTree(process, "eleMuEventTreeJetUp", "eleMuonsSortedJetUp")
addEleMuEventTree(process, "eleMuEventTreeJetDown", "eleMuonsSortedJetDown")
addEleMuEventTree(process, "eleMuEventTreeUncUp", "eleMuonsSortedUncUp")
addEleMuEventTree(process, "eleMuEventTreeUncDown", "eleMuonsSortedUncDown")