Skip to content

Commit

Permalink
Remove old wood, related to pfIso.
Browse files Browse the repository at this point in the history
  • Loading branch information
Volker Adler committed Feb 6, 2014
1 parent d068c97 commit 5816abb
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 122 deletions.
29 changes: 0 additions & 29 deletions PhysicsTools/PatAlgos/python/tools/pfTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,6 @@
def warningIsolation():
print "WARNING: particle based isolation must be studied"

from CommonTools.ParticleFlow.Tools.pfIsolation import setupPFElectronIso, setupPFMuonIso

def useGsfElectrons(process, postfix, dR = "04"):
print "using Gsf Electrons in PF2PAT"
print "WARNING: this will destory the feature of top projection which solves the ambiguity between leptons and jets because"
print "WARNING: there will be overlap between non-PF electrons and jets even though top projection is ON!"
print "********************* "
module = applyPostfix(process,"patElectrons",postfix)
module.useParticleFlow = False
print "Building particle-based isolation for GsfElectrons in PF2PAT(PFBRECO)"
print "********************* "
adaptPFIsoElectrons( process, module, postfix+"PFIso", dR )
getattr(process,'patDefaultSequence'+postfix).replace( getattr(process,"patElectrons"+postfix),
setupPFElectronIso(process, 'gsfElectrons', "PFIso", postfix, runPF2PAT=True) +
getattr(process,"patElectrons"+postfix) )

def adaptPFIsoElectrons(process,module, postfix = "PFIso", dR = "04"):
#FIXME: adaptPFElectrons can use this function.
module.isoDeposits = cms.PSet(
Expand Down Expand Up @@ -68,19 +52,6 @@ def adaptPFIsoMuons(process,module, postfix = "PFIso", dR = "04"):
pfPhotons = cms.InputTag("muPFIsoValueGamma" + dR + postfix)
)

def usePFIso(process, postfix = "PFIso"):
print "Building particle-based isolation "
print "***************** "
process.eleIsoSequence = setupPFElectronIso(process, 'gsfElectrons', postfix)
process.muIsoSequence = setupPFMuonIso(process, 'muons', postfix)
adaptPFIsoMuons( process, applyPostfix(process,"patMuons",""), postfix)
adaptPFIsoElectrons( process, applyPostfix(process,"patElectrons",""), postfix)
getattr(process,'patDefaultSequence').replace( getattr(process,"patCandidates"),
process.pfParticleSelectionSequence +
process.eleIsoSequence +
process.muIsoSequence +
getattr(process,"patCandidates") )

def adaptPFMuons(process,module,postfix="" ):
print "Adapting PF Muons "
print "***************** "
Expand Down
51 changes: 0 additions & 51 deletions PhysicsTools/PatAlgos/test/patTuple_PF2PATGsfElectrons_cfg.py

This file was deleted.

38 changes: 0 additions & 38 deletions PhysicsTools/PatAlgos/test/patTuple_pfIso_cfg.py

This file was deleted.

4 changes: 0 additions & 4 deletions PhysicsTools/PatAlgos/test/runtests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ cmsRun ${LOCAL_TEST_DIR}/patTuple_PF2PAT_cfg.py || die 'Failure using patTuple_P

cmsRun ${LOCAL_TEST_DIR}/patTuple_PATandPF2PAT_cfg.py || die 'Failure using patTuple_PATandPF2PAT_cfg.py' $?

# cmsRun ${LOCAL_TEST_DIR}/patTuple_PF2PATGsfElectrons_cfg.py || die 'Failure using patTuple_PATandPF2PAT_cfg.py' $?

# cmsRun ${LOCAL_TEST_DIR}/patTuple_pfIso_cfg.py || die 'Failure using patTuple_pfIso_cfg.py' $?

cmsRun ${LOCAL_TEST_DIR}/patTuple_addDecayInFlight_cfg.py || die 'Failure using patTuple_addDecayInFlight_cfg.py' $?

cmsRun ${LOCAL_TEST_DIR}/patTuple_addBTagging_cfg.py || die 'Failure using patTuple_addBTagging_cfg.py' $?
Expand Down

0 comments on commit 5816abb

Please sign in to comment.