CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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.

References python.multivaluedict.remove().

Referenced by coreTools.RemoveMCMatching.toolCode().

190 def _removeMCMatchingForPATObject(process, matcherName, producerName, postfix=""):
191  ## remove mcMatcher from the default sequence
192  objectMatcher = getattr(process, matcherName+postfix)
193  if (producerName=='pfPatMuons'or producerName=='pfPatTaus'):
194  #no idea what this should do: there is no other occurance of 'PFPATafterPAT' in CMSSW other than here...
195  getattr(process,"PFPATafterPAT"+postfix).remove(objectMatcher)
196  if (producerName=='patMuons'or producerName=='patTaus'or
197  producerName=='patPhotons' or producerName=='patElectrons'):
198  getattr(process,"patDefaultSequence"+postfix).remove(objectMatcher)
199  ## straighten photonProducer
200  objectProducer = getattr(process, producerName+postfix)
201  objectProducer.addGenMatch = False
202  objectProducer.embedGenMatch = False
203  objectProducer.genParticleMatch = ''
204 
def _removeMCMatchingForPATObject
Definition: coreTools.py:189