CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
HiHelperTools.MassSearchReplaceParamVisitor Class Reference
Inheritance diagram for HiHelperTools.MassSearchReplaceParamVisitor:

Public Member Functions

def __init__
 
def enter
 
def leave
 

Private Attributes

 _paramName
 
 _paramSearch
 
 _paramValue
 
 _verbose
 

Detailed Description

Visitor that travels within a cms.Sequence, looks for a parameter and replaces its value

Definition at line 35 of file HiHelperTools.py.

Constructor & Destructor Documentation

def HiHelperTools.MassSearchReplaceParamVisitor.__init__ (   self,
  paramName,
  paramSearch,
  paramValue,
  verbose = False 
)

Member Function Documentation

def HiHelperTools.MassSearchReplaceParamVisitor.enter (   self,
  visitee 
)

Definition at line 42 of file HiHelperTools.py.

References HiHelperTools.MassSearchReplaceParamVisitor._paramName, helpers.MassSearchReplaceParamVisitor._paramName, helpers.MassSearchParamVisitor._paramName, HiHelperTools.MassSearchReplaceParamVisitor._paramSearch, helpers.MassSearchReplaceParamVisitor._paramSearch, helpers.MassSearchReplaceAnyInputTagVisitor._paramSearch, helpers.MassSearchParamVisitor._paramSearch, ConfigBuilder.ConfigBuilder.MassSearchReplaceProcessNameVisitor._paramSearch, HiHelperTools.MassSearchReplaceParamVisitor._paramValue, helpers.MassSearchReplaceParamVisitor._paramValue, HiHelperTools.MassSearchReplaceParamVisitor._verbose, HTMHTAnalyzer._verbose, MuCorrMETAnalyzer._verbose, TcMETAnalyzer._verbose, helpers.MassSearchReplaceParamVisitor._verbose, PFMETAnalyzer._verbose, METAnalyzer._verbose, CaloMETAnalyzer._verbose, helpers.MassSearchReplaceAnyInputTagVisitor._verbose, and ConfigBuilder.ConfigBuilder.MassSearchReplaceProcessNameVisitor._verbose.

42 
43  def enter(self,visitee):
44  if (hasattr(visitee,self._paramName)):
45  if getattr(visitee,self._paramName) == self._paramSearch:
46  if self._verbose:print "Replaced %s.%s: %s => %s" % (visitee,self._paramName,getattr(visitee,self._paramName),self._paramValue)
setattr(visitee,self._paramName,self._paramValue)
def HiHelperTools.MassSearchReplaceParamVisitor.leave (   self,
  visitee 
)

Definition at line 47 of file HiHelperTools.py.

47 
48  def leave(self,visitee):
49  pass

Member Data Documentation

HiHelperTools.MassSearchReplaceParamVisitor._paramName
private

Definition at line 38 of file HiHelperTools.py.

Referenced by HiHelperTools.MassSearchReplaceParamVisitor.enter(), and HiHelperTools.MassSearchParamVisitor.enter().

HiHelperTools.MassSearchReplaceParamVisitor._paramSearch
private

Definition at line 40 of file HiHelperTools.py.

Referenced by HiHelperTools.MassSearchReplaceAnyInputTagVisitor.doIt(), HiHelperTools.MassSearchReplaceParamVisitor.enter(), and HiHelperTools.MassSearchParamVisitor.enter().

HiHelperTools.MassSearchReplaceParamVisitor._paramValue
private

Definition at line 39 of file HiHelperTools.py.

Referenced by HiHelperTools.MassSearchReplaceParamVisitor.enter().

HiHelperTools.MassSearchReplaceParamVisitor._verbose
private

Definition at line 41 of file HiHelperTools.py.

Referenced by HiHelperTools.MassSearchReplaceAnyInputTagVisitor.doIt(), HiHelperTools.MassSearchReplaceParamVisitor.enter(), cmsPerfSuite.PerfSuite.mkCandleDir(), cmsPerfSuite.PerfSuite.optionParse(), cmsPerfSuite.PerfSuite.printFlush(), cmsPerfSuite.PerfSuite.runcmd(), and cmsPerfSuite.PerfSuite.runCmdSet().