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 136 of file HiCoreTools.py.

References MatrixUtil.remove().

Referenced by HiCoreTools.RemoveMCMatching.toolCode().

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