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
helpers.MassSearchReplaceParamVisitor Class Reference
Inheritance diagram for helpers.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 helpers.py.

Constructor & Destructor Documentation

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

Definition at line 37 of file helpers.py.

37 
38  def __init__(self,paramName,paramSearch,paramValue,verbose=False):
39  self._paramName = paramName
40  self._paramValue = paramValue
41  self._paramSearch = paramSearch
self._verbose = verbose

Member Function Documentation

def helpers.MassSearchReplaceParamVisitor.enter (   self,
  visitee 
)

Definition at line 42 of file helpers.py.

References helpers.MassSearchReplaceParamVisitor._paramName, helpers.MassSearchReplaceParamVisitor._paramSearch, ConfigBuilder.ConfigBuilder.MassSearchReplaceProcessNameVisitor._paramSearch, helpers.MassSearchReplaceParamVisitor._paramValue, helpers.MassSearchReplaceParamVisitor._verbose, HTMHTAnalyzer._verbose, MuCorrMETAnalyzer._verbose, TcMETAnalyzer._verbose, PFMETAnalyzer._verbose, METAnalyzer._verbose, CaloMETAnalyzer._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 helpers.MassSearchReplaceParamVisitor.leave (   self,
  visitee 
)

Definition at line 47 of file helpers.py.

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

Member Data Documentation

helpers.MassSearchReplaceParamVisitor._paramName
private

Definition at line 38 of file helpers.py.

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

helpers.MassSearchReplaceParamVisitor._paramSearch
private

Definition at line 40 of file helpers.py.

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

helpers.MassSearchReplaceParamVisitor._paramValue
private

Definition at line 39 of file helpers.py.

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

helpers.MassSearchReplaceParamVisitor._verbose
private

Definition at line 41 of file helpers.py.

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