Skip to content

Commit

Permalink
Merge pull request #18 from CmsHI/ecal_jec_01
Browse files Browse the repository at this point in the history
full sequences for hlt jets with different corrections added
  • Loading branch information
yetkinyilmaz committed Nov 14, 2015
2 parents f134f25 + 3920213 commit 0a925d8
Show file tree
Hide file tree
Showing 3 changed files with 267 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
import FWCore.ParameterSet.Config as cms
from HeavyIonsAnalysis.JetAnalysis.patHeavyIonSequences_cff import patJetGenJetMatch, patJetPartonMatch, patJetCorrFactors, patJets
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *

hltPuAK4CaloJetsCorrectedIDPassedmatch = patJetGenJetMatch.clone(
src = cms.InputTag("hltPuAK4CaloJetsCorrectedIDPassed"),
matched = cms.InputTag("ak4HiGenJets"),
maxDeltaR = 0.4
)

hltPuAK4CaloJetsCorrectedIDPassedparton = patJetPartonMatch.clone(src = cms.InputTag("hltPuAK4CaloJetsCorrectedIDPassed"),
matched = cms.InputTag("genParticles")
)

hltPuAK4CaloJetsCorrectedIDPassedcorr = patJetCorrFactors.clone(
useNPV = False,
levels = cms.vstring('L2Relative','L3Absolute'),
src = cms.InputTag("hltPuAK4CaloJetsCorrectedIDPassed"),
payload = "AK4CaloHLT"
)

hltPuAK4CaloJetsCorrectedIDPassedpatJets = patJets.clone(jetSource = cms.InputTag("hltPuAK4CaloJetsCorrectedIDPassed"),
jetCorrFactorsSource = cms.VInputTag(cms.InputTag("")),
genJetMatch = cms.InputTag("hltPuAK4CaloJetsCorrectedIDPassedmatch"),
genPartonMatch = cms.InputTag("hltPuAK4CaloJetsCorrectedIDPassedparton"),
jetIDMap = cms.InputTag("hltPuAK4CaloJetsCorrectedIDPassedJetID"),
addBTagInfo = False,
addTagInfos = False,
addDiscriminators = False,
addAssociatedTracks = False,
addJetCharge = False,
addJetID = False,
getJetMCFlavour = False,
addGenPartonMatch = True,
addGenJetMatch = True,
embedGenJetMatch = True,
embedGenPartonMatch = True,
addJetCorrFactors = False
)


hltPuAK4CaloJetsCorrectedIDPassedJetAnalyzer = inclusiveJetAnalyzer.clone(
jetTag = cms.InputTag("hltPuAK4CaloJetsCorrectedIDPassedpatJets"),
# jetTag = cms.InputTag("hltPuAK4CaloJetsCorrectedIDPassed"),
genjetTag = 'ak4HiGenJets',
rParam = 0.4,
matchJets = cms.untracked.bool(False),
matchTag = 'patJets',
pfCandidateLabel = cms.untracked.InputTag('particleFlowTmp'),
trackTag = cms.InputTag("hiGeneralTracks"),
fillGenJets = True,
isMC = True,
genParticles = cms.untracked.InputTag("genParticles"),
eventInfoTag = cms.InputTag("generator"),
doHiJetID = False,
useJEC = cms.untracked.bool(False),
)


hltPuAK4CaloJetsCorrectedIDPassedJetSequence_mc = cms.Sequence(
hltPuAK4CaloJetsCorrectedIDPassedmatch
*
hltPuAK4CaloJetsCorrectedIDPassedparton
*
hltPuAK4CaloJetsCorrectedIDPassedcorr
*
hltPuAK4CaloJetsCorrectedIDPassedpatJets
*
hltPuAK4CaloJetsCorrectedIDPassedJetAnalyzer
)

hltPuAK4CaloJetsCorrectedIDPassedJetSequence_data = cms.Sequence(hltPuAK4CaloJetsCorrectedIDPassedcorr
*
hltPuAK4CaloJetsCorrectedIDPassedpatJets
*
hltPuAK4CaloJetsCorrectedIDPassedJetAnalyzer
)

hltPuAK4CaloJetsCorrectedIDPassedJetSequence_jec = cms.Sequence(hltPuAK4CaloJetsCorrectedIDPassedJetSequence_mc)
hltPuAK4CaloJetsCorrectedIDPassedJetSequence_mix = cms.Sequence(hltPuAK4CaloJetsCorrectedIDPassedJetSequence_mc)

hltPuAK4CaloJetsCorrectedIDPassedJetSequence = cms.Sequence(hltPuAK4CaloJetsCorrectedIDPassedJetSequence_mix)









Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
import FWCore.ParameterSet.Config as cms
from HeavyIonsAnalysis.JetAnalysis.patHeavyIonSequences_cff import patJetGenJetMatch, patJetPartonMatch, patJetCorrFactors, patJets
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *

hltPuAK4CaloJetsIDPassedCorrKmatch = patJetGenJetMatch.clone(
src = cms.InputTag("hltPuAK4CaloJetsIDPassed"),
matched = cms.InputTag("ak4HiGenJets"),
maxDeltaR = 0.4
)

hltPuAK4CaloJetsIDPassedCorrKparton = patJetPartonMatch.clone(src = cms.InputTag("hltPuAK4CaloJetsIDPassed"),
matched = cms.InputTag("genParticles")
)

hltPuAK4CaloJetsIDPassedCorrKcorr = patJetCorrFactors.clone(
useNPV = False,
levels = cms.vstring('L2Relative','L3Absolute'),
src = cms.InputTag("hltPuAK4CaloJetsIDPassed"),
payload = "AK4CaloHLT"
)

hltPuAK4CaloJetsIDPassedCorrKpatJets = patJets.clone(jetSource = cms.InputTag("hltPuAK4CaloJetsIDPassed"),
jetCorrFactorsSource = cms.VInputTag(cms.InputTag("hltPuAK4CaloJetsIDPassedCorrKcorr")),
genJetMatch = cms.InputTag("hltPuAK4CaloJetsIDPassedCorrKmatch"),
genPartonMatch = cms.InputTag("hltPuAK4CaloJetsIDPassedCorrKparton"),
jetIDMap = cms.InputTag("hltPuAK4CaloJetsIDPassedCorrKJetID"),
addBTagInfo = False,
addTagInfos = False,
addDiscriminators = False,
addAssociatedTracks = False,
addJetCharge = False,
addJetID = False,
getJetMCFlavour = False,
addGenPartonMatch = True,
addGenJetMatch = True,
embedGenJetMatch = True,
embedGenPartonMatch = True,
)


hltPuAK4CaloJetsIDPassedCorrKJetAnalyzer = inclusiveJetAnalyzer.clone(
jetTag = cms.InputTag("hltPuAK4CaloJetsIDPassedCorrKpatJets"),
genjetTag = 'ak4HiGenJets',
rParam = 0.4,
matchJets = cms.untracked.bool(False),
matchTag = 'patJets',
pfCandidateLabel = cms.untracked.InputTag('particleFlowTmp'),
trackTag = cms.InputTag("hiGeneralTracks"),
fillGenJets = True,
isMC = True,
genParticles = cms.untracked.InputTag("genParticles"),
eventInfoTag = cms.InputTag("generator"),
doHiJetID = False,
)


hltPuAK4CaloJetsIDPassedCorrKJetSequence_mc = cms.Sequence(
hltPuAK4CaloJetsIDPassedCorrKmatch
*
hltPuAK4CaloJetsIDPassedCorrKparton
*
hltPuAK4CaloJetsIDPassedCorrKcorr
*
hltPuAK4CaloJetsIDPassedCorrKpatJets
*
hltPuAK4CaloJetsIDPassedCorrKJetAnalyzer
)

hltPuAK4CaloJetsIDPassedCorrKJetSequence_data = cms.Sequence(hltPuAK4CaloJetsIDPassedCorrKcorr
*
hltPuAK4CaloJetsIDPassedCorrKpatJets
*
hltPuAK4CaloJetsIDPassedCorrKJetAnalyzer
)

hltPuAK4CaloJetsIDPassedCorrKJetSequence_jec = cms.Sequence(hltPuAK4CaloJetsIDPassedCorrKJetSequence_mc)
hltPuAK4CaloJetsIDPassedCorrKJetSequence_mix = cms.Sequence(hltPuAK4CaloJetsIDPassedCorrKJetSequence_mc)

hltPuAK4CaloJetsIDPassedCorrKJetSequence = cms.Sequence(hltPuAK4CaloJetsIDPassedCorrKJetSequence_mix)









Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
import FWCore.ParameterSet.Config as cms
from HeavyIonsAnalysis.JetAnalysis.patHeavyIonSequences_cff import patJetGenJetMatch, patJetPartonMatch, patJetCorrFactors, patJets
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *

hltPuAK4CaloJetsIDPassedCorrLmatch = patJetGenJetMatch.clone(
src = cms.InputTag("hltPuAK4CaloJetsIDPassed"),
matched = cms.InputTag("ak4HiGenJets"),
maxDeltaR = 0.4
)

hltPuAK4CaloJetsIDPassedCorrLparton = patJetPartonMatch.clone(src = cms.InputTag("hltPuAK4CaloJetsIDPassed"),
matched = cms.InputTag("genParticles")
)

hltPuAK4CaloJetsIDPassedCorrLcorr = patJetCorrFactors.clone(
useNPV = False,
levels = cms.vstring('L2Relative','L3Absolute'),
src = cms.InputTag("hltPuAK4CaloJetsIDPassed"),
payload = "AK4Calo"
)

hltPuAK4CaloJetsIDPassedCorrLpatJets = patJets.clone(jetSource = cms.InputTag("hltPuAK4CaloJetsIDPassed"),
jetCorrFactorsSource = cms.VInputTag(cms.InputTag("hltPuAK4CaloJetsIDPassedCorrLcorr")),
genJetMatch = cms.InputTag("hltPuAK4CaloJetsIDPassedCorrLmatch"),
genPartonMatch = cms.InputTag("hltPuAK4CaloJetsIDPassedCorrLparton"),
jetIDMap = cms.InputTag("hltPuAK4CaloJetsIDPassedCorrLJetID"),
addBTagInfo = False,
addTagInfos = False,
addDiscriminators = False,
addAssociatedTracks = False,
addJetCharge = False,
addJetID = False,
getJetMCFlavour = False,
addGenPartonMatch = True,
addGenJetMatch = True,
embedGenJetMatch = True,
embedGenPartonMatch = True,
)


hltPuAK4CaloJetsIDPassedCorrLJetAnalyzer = inclusiveJetAnalyzer.clone(
jetTag = cms.InputTag("hltPuAK4CaloJetsIDPassedCorrLpatJets"),
genjetTag = 'ak4HiGenJets',
rParam = 0.4,
matchJets = cms.untracked.bool(False),
matchTag = 'patJets',
pfCandidateLabel = cms.untracked.InputTag('particleFlowTmp'),
trackTag = cms.InputTag("hiGeneralTracks"),
fillGenJets = True,
isMC = True,
genParticles = cms.untracked.InputTag("genParticles"),
eventInfoTag = cms.InputTag("generator"),
doHiJetID = False,
)


hltPuAK4CaloJetsIDPassedCorrLJetSequence_mc = cms.Sequence(
hltPuAK4CaloJetsIDPassedCorrLmatch
*
hltPuAK4CaloJetsIDPassedCorrLparton
*
hltPuAK4CaloJetsIDPassedCorrLcorr
*
hltPuAK4CaloJetsIDPassedCorrLpatJets
*
hltPuAK4CaloJetsIDPassedCorrLJetAnalyzer
)

hltPuAK4CaloJetsIDPassedCorrLJetSequence_data = cms.Sequence(hltPuAK4CaloJetsIDPassedCorrLcorr
*
hltPuAK4CaloJetsIDPassedCorrLpatJets
*
hltPuAK4CaloJetsIDPassedCorrLJetAnalyzer
)

hltPuAK4CaloJetsIDPassedCorrLJetSequence_jec = cms.Sequence(hltPuAK4CaloJetsIDPassedCorrLJetSequence_mc)
hltPuAK4CaloJetsIDPassedCorrLJetSequence_mix = cms.Sequence(hltPuAK4CaloJetsIDPassedCorrLJetSequence_mc)

hltPuAK4CaloJetsIDPassedCorrLJetSequence = cms.Sequence(hltPuAK4CaloJetsIDPassedCorrLJetSequence_mix)









0 comments on commit 0a925d8

Please sign in to comment.