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 (process, matcherName, producerName, postfix="")
 

Function Documentation

def HiCoreTools._removeMCMatchingForPATObject (   process,
  matcherName,
  producerName,
  postfix = "" 
)
private

Definition at line 135 of file HiCoreTools.py.

References MatrixUtil.remove().

Referenced by HiCoreTools.RemoveMCMatching.toolCode().

135 def _removeMCMatchingForPATObject(process, matcherName, producerName, postfix=""):
136  ## remove mcMatcher from the default sequence
137  objectMatcher = getattr(process, matcherName+postfix)
138  if (producerName=='pfPatMuons'or producerName=='pfPatTaus'):
139  #no idea what this should do: there is no other occurance of 'PFPATafterPAT' in CMSSW other than here...
140  getattr(process,"PFPATafterPAT"+postfix).remove(objectMatcher)
141  if (producerName=='patMuons'or producerName=='patTaus'or
142  producerName=='patPhotons' or producerName=='patElectrons'):
143  getattr(process,"patHeavyIonDefaultSequence"+postfix).remove(objectMatcher)
144  ## straighten photonProducer
145  objectProducer = getattr(process, producerName+postfix)
146  objectProducer.addGenMatch = False
147  objectProducer.embedGenMatch = False
148  objectProducer.genParticleMatch = ''
149 
150 
def _removeMCMatchingForPATObject(process, matcherName, producerName, postfix="")
Definition: HiCoreTools.py:135
def remove(d, key, TELL=False)
Definition: MatrixUtil.py:209