Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77556
b: "refs/heads/CMSSW_7_1_X"
c: 11c7551
h: "refs/heads/CMSSW_7_1_X"
v: v3
  • Loading branch information
Colin Bernet committed Nov 10, 2009
1 parent 4eae78c commit e11bc0f
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
refs/heads/gh-pages: 09c786f70121f131b3715aaf3464996502bbeb7e
"refs/heads/CMSSW_7_1_X": fbc8bd7e7fa9c5f5f4abe9f2730c1f7fc72fa908
"refs/heads/CMSSW_7_1_X": 11c7551f5413449c426735028ea04bb0fdf9af76
15 changes: 4 additions & 11 deletions trunk/PhysicsTools/PFCandProducer/python/PF2PAT_cff.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import FWCore.ParameterSet.Config as cms

from PhysicsTools.PFCandProducer.GeneratorTools.genMetTrue_cff import *

from PhysicsTools.PFCandProducer.pfMET_cfi import *
from PhysicsTools.PFCandProducer.pfNoPileUp_cff import *
from PhysicsTools.PFCandProducer.pfElectrons_cff import *
Expand All @@ -17,7 +15,7 @@
from PhysicsTools.PFCandProducer.TopProjectors.pfNoTau_cfi import *

# generator tools
from PhysicsTools.PFCandProducer.GeneratorTools.sortGenParticles_cff import *
from PhysicsTools.PFCandProducer.genForPF2PAT_cff import *

# To reconstruct genjets without the neutrinos
from RecoJets.Configuration.GenJetParticles_cff import *
Expand All @@ -44,12 +42,7 @@
pfJetSequence +
pfNoJet +
pfTauSequence +
pfNoTau
pfNoTau +
# putting the following in the sequence, as we don't want to leave the responsibility to forget it to the user.
genForPF2PATSequence
)


genForPF2PAT = cms.Sequence(
genMetTrueSequence +
genJetParticles +
iterativeCone5GenJets
)
17 changes: 17 additions & 0 deletions trunk/PhysicsTools/PFCandProducer/python/Tools/jetTools.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import FWCore.ParameterSet.Config as cms

import RecoJets.JetProducers.ak5PFJets_cfi
import RecoJets.JetProducers.ic5PFJets_cfi

def jetAlgo( algo ):

print 'PF2PAT: selecting jet algorithm ', algo

if algo == 'IC5':
#allPfJets = RecoJets.JetProducers.ic5PFJets_cfi.iterativeCone5PFJets.clone()
jetAlgo = RecoJets.JetProducers.ic5PFJets_cfi.iterativeCone5PFJets.clone()
elif algo == 'AK5':
jetAlgo = RecoJets.JetProducers.ak5PFJets_cfi.ak5PFJets.clone()

jetAlgo.src = 'pfNoElectron'
return jetAlgo
24 changes: 24 additions & 0 deletions trunk/PhysicsTools/PFCandProducer/python/genForPF2PAT_cff.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import FWCore.ParameterSet.Config as cms

from PhysicsTools.PFCandProducer.GeneratorTools.genMetTrue_cff import *

#not necessary?
from PhysicsTools.PFCandProducer.GeneratorTools.sortGenParticles_cff import *

# To reconstruct genjets without the neutrinos
from RecoJets.Configuration.GenJetParticles_cff import *
from RecoJets.Configuration.RecoGenJets_cff import *
genParticlesForJets.ignoreParticleIDs.append(14)
genParticlesForJets.ignoreParticleIDs.append(12)
genParticlesForJets.ignoreParticleIDs.append(16)
genParticlesForJets.excludeResonances = False

ak5GenJetsNoNu.src = "genParticlesForJets"
iterativeCone5GenJetsNoNu.src = "genParticlesForJets"

genForPF2PATSequence = cms.Sequence(
genMetTrueSequence +
genJetParticles +
ak5GenJetsNoNu +
iterativeCone5GenJetsNoNu
)
6 changes: 3 additions & 3 deletions trunk/PhysicsTools/PFCandProducer/python/pfJets_cff.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import FWCore.ParameterSet.Config as cms

import RecoJets.JetProducers.ic5PFJets_cfi
from PhysicsTools.PFCandProducer.ParticleSelectors.ptMinPFJetSelector_cfi import ptMinPFJets as pfJets
from PhysicsTools.PFCandProducer.Tools.jetTools import jetAlgo


allPfJets = RecoJets.JetProducers.ic5PFJets_cfi.iterativeCone5PFJets.clone()
allPfJets.src = 'pfNoElectron'
#allPfJets = RecoJets.JetProducers.ic5PFJets_cfi.iterativeCone5PFJets.clone()
allPfJets = jetAlgo('IC5')

pfJets.src = 'allPfJets'
pfJets.ptMin = 10
Expand Down

0 comments on commit e11bc0f

Please sign in to comment.