CMS 3D CMS Logo

Classes | Functions

coreTools Namespace Reference

Classes

class  AddCleaning
class  RemoveAllPATObjectsBut
class  RemoveCleaning
class  RemoveMCMatching
class  RemoveSpecificPATObjects
class  RestrictInputToAOD
class  RunOnData

Functions

def _removeMCMatchingForPATObject

Function Documentation

def coreTools::_removeMCMatchingForPATObject (   process,
  matcherName,
  producerName,
  postfix = "" 
) [private]

Definition at line 189 of file coreTools.py.

00190                                                                                  :
00191     ## remove mcMatcher from the default sequence
00192     objectMatcher = getattr(process, matcherName+postfix)
00193     if (producerName=='pfPatMuons'or producerName=='pfPatTaus'):
00194         #no idea what this should do: there is no other occurance of 'PFPATafterPAT' in CMSSW other than here...
00195         getattr(process,"PFPATafterPAT"+postfix).remove(objectMatcher)
00196     if (producerName=='patMuons'or producerName=='patTaus'or
00197         producerName=='patPhotons' or producerName=='patElectrons'):
00198         getattr(process,"patDefaultSequence"+postfix).remove(objectMatcher)
00199     ## straighten photonProducer
00200     objectProducer = getattr(process, producerName+postfix)
00201     objectProducer.addGenMatch      = False
00202     objectProducer.embedGenMatch    = False
00203     objectProducer.genParticleMatch = ''
00204