CMS 3D CMS Logo

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 214 of file coreTools.py.

00215                                                                                  :
00216     ## remove mcMatcher from the default sequence
00217     objectMatcher = getattr(process, matcherName+postfix)
00218     if (producerName=='pfPatMuons'or producerName=='pfPatTaus'):
00219         #no idea what this should do: there is no other occurance of 'PFPATafterPAT' in CMSSW other than here...
00220         getattr(process,"PFPATafterPAT"+postfix).remove(objectMatcher)
00221     if (producerName=='patMuons'or producerName=='patTaus'or
00222         producerName=='patPhotons' or producerName=='patElectrons'):
00223         getattr(process,"patDefaultSequence"+postfix).remove(objectMatcher)
00224     ## straighten photonProducer
00225     objectProducer = getattr(process, producerName+postfix)
00226     objectProducer.addGenMatch      = False
00227     objectProducer.embedGenMatch    = False
00228     objectProducer.genParticleMatch = ''
00229 

def coreTools::depricatedOptionOutputInProcess (   obj)

Definition at line 529 of file coreTools.py.

00530                                         :
00531     print "-------------------------------------------------------"
00532     print " Error: the option 'outputInProcess' is not supported"
00533     print "        anymore by:"
00534     print "                   ", obj._label
00535     print "        please use 'outputModules' now and specify the"
00536     print "        names of all needed OutModules in there"
00537     print "        (default: ['out'])"
00538     print "-------------------------------------------------------"
00539     raise KeyError, "unsupported option 'outputInProcess' used in '"+obj._label+"'"