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
 
def depricatedOptionOutputInProcess
 

Function Documentation

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

Definition at line 222 of file coreTools.py.

References python.multivaluedict.remove().

Referenced by coreTools.RemoveMCMatching.toolCode().

223 def _removeMCMatchingForPATObject(process, matcherName, producerName, postfix=""):
224  ## remove mcMatcher from the default sequence
225  objectMatcher = getattr(process, matcherName+postfix)
226  if (producerName=='pfPatMuons'or producerName=='pfPatTaus'):
227  #no idea what this should do: there is no other occurance of 'PFPATafterPAT' in CMSSW other than here...
228  getattr(process,"PFPATafterPAT"+postfix).remove(objectMatcher)
229  if (producerName=='patMuons'or producerName=='patTaus'or
230  producerName=='patPhotons' or producerName=='patElectrons'):
231  getattr(process,"patDefaultSequence"+postfix).remove(objectMatcher)
232  ## straighten photonProducer
233  objectProducer = getattr(process, producerName+postfix)
234  objectProducer.addGenMatch = False
235  objectProducer.embedGenMatch = False
236  objectProducer.genParticleMatch = ''
237 
def _removeMCMatchingForPATObject
Definition: coreTools.py:222
def coreTools.depricatedOptionOutputInProcess (   obj)

Definition at line 537 of file coreTools.py.

Referenced by coreTools.RunOnData.__call__(), coreTools.RemoveMCMatching.__call__(), coreTools.RemoveAllPATObjectsBut.__call__(), coreTools.RemoveSpecificPATObjects.__call__(), coreTools.RemoveCleaning.__call__(), and coreTools.AddCleaning.__call__().

539  print "-------------------------------------------------------"
540  print " INFO: the option 'outputInProcess' will be deprecated "
541  print " soon:", obj._label
542  print " please use the option 'outputModules' now and "
543  print " specify the names of all needed OutModules in "
544  print " there (default: ['out'])"
545  print "-------------------------------------------------------"
546  #raise KeyError, "unsupported option 'outputInProcess' used in '"+obj._label+"'"
def depricatedOptionOutputInProcess
Definition: coreTools.py:537