CMS 3D CMS Logo

Classes | Functions

HiCoreTools Namespace Reference

Classes

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

Functions

def _removeMCMatchingForPATObject

Function Documentation

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

Definition at line 135 of file HiCoreTools.py.

00136                                                                                  :
00137     ## remove mcMatcher from the default sequence
00138     objectMatcher = getattr(process, matcherName+postfix)
00139     if (producerName=='pfPatMuons'or producerName=='pfPatTaus'):
00140         #no idea what this should do: there is no other occurance of 'PFPATafterPAT' in CMSSW other than here...
00141         getattr(process,"PFPATafterPAT"+postfix).remove(objectMatcher)
00142     if (producerName=='patMuons'or producerName=='patTaus'or
00143         producerName=='patPhotons' or producerName=='patElectrons'):
00144         getattr(process,"patHeavyIonDefaultSequence"+postfix).remove(objectMatcher)
00145     ## straighten photonProducer
00146     objectProducer = getattr(process, producerName+postfix)
00147     objectProducer.addGenMatch      = False
00148     objectProducer.embedGenMatch    = False
00149     objectProducer.genParticleMatch = ''
00150