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 | Static Private Attributes
editorTools.UserCodeTool Class Reference
Inheritance diagram for editorTools.UserCodeTool:

Public Member Functions

def __call__
 
def __init__
 
def dumpPython
 
def toolCode
 

Private Attributes

 _comment
 
 _parameters
 

Static Private Attributes

tuple _defaultParameters = dicttypes.SortedKeysDict()
 
string _label = "userCode"
 

Detailed Description

User code tool 

Definition at line 6 of file editorTools.py.

Constructor & Destructor Documentation

def editorTools.UserCodeTool.__init__ (   self)

Member Function Documentation

def editorTools.UserCodeTool.__call__ (   self,
  process,
  code 
)

Definition at line 21 of file editorTools.py.

References SignedImpactParameter3D.apply(), gen::PhotosInterfaceBase.apply(), SignedTransverseImpactParameter.apply(), MatrixReader.MatrixReader.apply, SignedDecayLength3D.apply(), HcalDeterministicFit.apply(), DummyOOTPileupCorrection.apply(), gen::PhotosppInterface.apply(), gen::PhotosInterface.apply(), SurveyParameters.apply(), FWPSetCellEditor.apply(), FWGUIEventFilter.apply(), DeviationsFromFileSensor2D.apply(), RigidBodyAlignmentParameters.apply(), BeamSpotAlignmentParameters.apply(), ConfigToolBase.ConfigToolBase.apply(), BowedSurfaceAlignmentParameters.apply(), OOTPileupCorrData.apply(), AlignmentParameters.apply(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool.apply(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ApplyTool.apply(), AbsOOTPileupCorrection.apply(), TwoBowedSurfacesAlignmentParameters.apply(), Vispa.Gui.BoxContentDialog.BoxContentDialog.apply(), reco::modules::TrackerTrackHitFilter::Rule.apply(), PulseShapeFitOOTPileupCorrection.apply(), Vispa.Plugins.ConfigEditor.ToolDialog.ToolDialog.apply(), reco::Add< T >.apply(), reco::Sub< T >.apply(), reco::Mul< T >.apply(), reco::Div< T >.apply(), cmsswVersionTools.PickRelValInputFiles.apply(), reco::And< bool >.apply(), reco::Or< bool >.apply(), reco::Less< T >.apply(), reco::LessEqual< T >.apply(), reco::More< T >.apply(), reco::MoreEqual< T >.apply(), reco::Equal< T >.apply(), npstat::ArrayND< Numeric, StackLen, StackDim >.apply(), npstat::ArrayND< Numeric >.apply(), npstat::ArrayND< Num1, Len1, Dim1 >.apply(), Config.ProcessModifier.apply(), ora::OraMainTable.setParameter(), ora::IMainTable.setParameter(), PedeReader.setParameter(), ora::PoolMainTable.setParameter(), QIE8Simulator.setParameter(), AbsElectronicODERHS.setParameter(), IntegratedCalibrationBase.setParameter(), SiStripLorentzAngleCalibration.setParameter(), SiPixelLorentzAngleCalibration.setParameter(), SiStripBackplaneCalibration.setParameter(), fit::RootMinuit< Function >.setParameter(), and ConfigToolBase.ConfigToolBase.setParameter().

21 
22  def __call__(self,process,code):
23  self.setParameter('code',code)
24  self.apply(process)
return self
def editorTools.UserCodeTool.dumpPython (   self)

Definition at line 15 of file editorTools.py.

References editorTools.UserCodeTool._comment, ConfigToolBase.ConfigToolBase._comment, editorTools.UserCodeTool._parameters, and ConfigToolBase.ConfigToolBase._parameters.

15 
16  def dumpPython(self):
17  dumpPython=""
18  if self._comment!="":
19  dumpPython = "#"+self._comment+"\n"
20  dumpPython+=self._parameters['code'].value
return ("",dumpPython)
def editorTools.UserCodeTool.toolCode (   self,
  process 
)

Definition at line 25 of file editorTools.py.

References editorTools.UserCodeTool._parameters, and ConfigToolBase.ConfigToolBase._parameters.

25 
26  def toolCode(self,process):
27  code=self._parameters['code'].value
28  exec code
29 
30 userCodeTool=UserCodeTool()

Member Data Documentation

editorTools.UserCodeTool._comment
private

Definition at line 14 of file editorTools.py.

Referenced by editorTools.UserCodeTool.dumpPython().

tuple editorTools.UserCodeTool._defaultParameters = dicttypes.SortedKeysDict()
staticprivate

Definition at line 9 of file editorTools.py.

Referenced by metTools.AddMETCollection.__call__(), editorTools.ChangeSource.__call__(), editorTools.UserCodeTool.__init__(), metTools.AddMETCollection.__init__(), editorTools.ChangeSource.__init__(), metTools.AddMETCollection.getDefaultParameters(), and editorTools.ChangeSource.getDefaultParameters().

string editorTools.UserCodeTool._label = "userCode"
staticprivate

Definition at line 8 of file editorTools.py.

editorTools.UserCodeTool._parameters
private

Definition at line 13 of file editorTools.py.

Referenced by editorTools.UserCodeTool.dumpPython(), editorTools.UserCodeTool.toolCode(), metTools.AddMETCollection.toolCode(), and editorTools.ChangeSource.toolCode().