Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74616
b: "refs/heads/CMSSW_7_1_X"
c: 8e42904
h: "refs/heads/CMSSW_7_1_X"
v: v3
  • Loading branch information
Colin Bernet committed Oct 2, 2009
1 parent 52ba073 commit 06173a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 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": 0e5c36ae56c864bf89bef30222f6bd336a941707
"refs/heads/CMSSW_7_1_X": 8e4290452117ec7b37961665833c7bf620ff3e35
12 changes: 7 additions & 5 deletions trunk/PhysicsTools/PatAlgos/python/tools/pfTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
def warningIsolation():
print "WARNING: particle based isolation must be studied"

def adaptPFMuons(process,module):


def adaptPFMuons(process,module):
print "Adapting PF Muons "
print "***************** "
warningIsolation()
Expand Down Expand Up @@ -70,6 +68,9 @@ def adaptPFElectrons(process,module):
print module.isoDeposits
print

print "removing traditional isolation"
process.patDefaultSequence.remove(getattr(process, 'patElectronIsolation'))




Expand Down Expand Up @@ -145,15 +146,16 @@ def switchToPFMET(process,input=cms.InputTag('pfMET')):
oldMETSource = process.layer1METs.metSource
process.layer1METs.metSource = input
process.layer1METs.addMuonCorrections = False
process.patDefaultSequence.remove(process.patMETCorrections)
process.patDefaultSequence.remove(getattr(process, 'makeLayer1METs'))


def switchToPFJets(process,input=cms.InputTag('pfNoTau')):
print 'Jets: using ', input
switchJetCollection(process,
input,
doJTA=True,
doBTagging=True,
jetCorrLabel=None,
jetCorrLabel=('IC5','PF'),
doType1MET=False)
adaptPFJets(process, process.allLayer1Jets)

Expand Down

0 comments on commit 06173a5

Please sign in to comment.