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(), SignedDecayLength3D.apply(), SurveyParameters.apply(), FWPSetCellEditor.apply(), gen::PhotosInterface.apply(), gen::PhotosInterface53XLegacy.apply(), cmsswVersionTools.Run52xOn51xTrigger.apply(), FWGUIEventFilter.apply(), DeviationsFromFileSensor2D.apply(), RigidBodyAlignmentParameters.apply(), BeamSpotAlignmentParameters.apply(), ConfigToolBase.ConfigToolBase.apply(), AlignmentParameters.apply(), BowedSurfaceAlignmentParameters.apply(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool.apply(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ApplyTool.apply(), TwoBowedSurfacesAlignmentParameters.apply(), Vispa.Gui.BoxContentDialog.BoxContentDialog.apply(), reco::modules::TrackerTrackHitFilter::Rule.apply(), Vispa.Plugins.ConfigEditor.ToolDialog.ToolDialog.apply(), reco::Add< T >.apply(), reco::Sub< T >.apply(), reco::Mul< T >.apply(), reco::Div< T >.apply(), reco::And< bool >.apply(), reco::Or< bool >.apply(), reco::Less< T >.apply(), cmsswVersionTools.PickRelValInputFiles.apply(), reco::LessEqual< T >.apply(), reco::More< T >.apply(), reco::MoreEqual< T >.apply(), reco::Equal< T >.apply(), jetTools.RunBTagging.apply(), ora::OraMainTable.setParameter(), ora::IMainTable.setParameter(), PedeReader.setParameter(), ora::PoolMainTable.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.

Referenced by Mixins._Parameterizable.__addParameter(), Mixins._ParameterTypeBase.__repr__(), Mixins._Parameterizable.__repr__(), Mixins._ValidatingParameterListBase.__repr__(), Types.VPSet.__repr__(), and Mixins._Parameterizable.__setattr__().

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 metUncertaintyTools.RunMEtUncertainties.__init__(), and editorTools.UserCodeTool.dumpPython().

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

Definition at line 9 of file editorTools.py.

Referenced by electronTools.AddElectronUserIsolation.__call__(), photonTools.AddPhotonUserIsolation.__call__(), muonTools.AddMuonUserIsolation.__call__(), metTools.AddTcMET.__call__(), HiCoreTools.RestrictInputToAOD.__call__(), coreTools.RestrictInputToAOD.__call__(), trackTools.MakeAODTrackCandidates.__call__(), cmsswVersionTools.Run52xOn51xTrigger.__call__(), editorTools.ChangeSource.__call__(), metTools.AddPfMET.__call__(), HiCoreTools.RemoveMCMatching.__call__(), coreTools.RunOnData.__call__(), trackTools.MakePATTrackCandidates.__call__(), trigTools.SwitchOnTrigger.__call__(), coreTools.RemoveMCMatching.__call__(), HiCoreTools.RemoveAllPATObjectsBut.__call__(), jetTools.RunBTagging.__call__(), HiCoreTools.RemoveSpecificPATObjects.__call__(), trigTools.SwitchOnTriggerStandAlone.__call__(), coreTools.RemoveAllPATObjectsBut.__call__(), trackTools.MakeTrackCandidates.__call__(), coreTools.RemoveSpecificPATObjects.__call__(), HiCoreTools.RemoveCleaning.__call__(), trigTools.SwitchOnTriggerMatching.__call__(), HiCoreTools.AddCleaning.__call__(), coreTools.RemoveCleaning.__call__(), tauTools.AddTauCollection.__call__(), trigTools.SwitchOnTriggerMatchingStandAlone.__call__(), coreTools.AddCleaning.__call__(), jetTools.AddJetCollection.__call__(), trigTools.SwitchOnTriggerMatchEmbedding.__call__(), trigTools.RemoveCleaningFromTriggerMatching.__call__(), jetTools.SwitchJetCollection.__call__(), jetTools.AddJetID.__call__(), metUncertaintyTools.RunMEtUncertainties.__call__(), jetTools.SetTagInfos.__call__(), jetTools.SwitchJetCorrLevels.__call__(), photonTools.AddPhotonUserIsolation.__init__(), editorTools.UserCodeTool.__init__(), electronTools.AddElectronUserIsolation.__init__(), muonTools.AddMuonUserIsolation.__init__(), trackTools.MakeAODTrackCandidates.__init__(), metTools.AddTcMET.__init__(), coreTools.RestrictInputToAOD.__init__(), HiCoreTools.RestrictInputToAOD.__init__(), metUncertaintyTools.RunMEtUncertainties.__init__(), cmsswVersionTools.Run52xOn51xTrigger.__init__(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool.__init__(), editorTools.ChangeSource.__init__(), metTools.AddPfMET.__init__(), coreTools.RunOnData.__init__(), HiCoreTools.RemoveMCMatching.__init__(), trackTools.MakePATTrackCandidates.__init__(), trigTools.SwitchOnTrigger.__init__(), cmsswVersionTools.PickRelValInputFiles.__init__(), coreTools.RemoveMCMatching.__init__(), HiCoreTools.RemoveAllPATObjectsBut.__init__(), jetTools.RunBTagging.__init__(), HiCoreTools.RemoveSpecificPATObjects.__init__(), trigTools.SwitchOnTriggerStandAlone.__init__(), trackTools.MakeTrackCandidates.__init__(), coreTools.RemoveAllPATObjectsBut.__init__(), coreTools.RemoveSpecificPATObjects.__init__(), HiCoreTools.RemoveCleaning.__init__(), trigTools.SwitchOnTriggerMatching.__init__(), HiCoreTools.AddCleaning.__init__(), tauTools.AddTauCollection.__init__(), coreTools.RemoveCleaning.__init__(), trigTools.SwitchOnTriggerMatchingStandAlone.__init__(), coreTools.AddCleaning.__init__(), jetTools.AddJetCollection.__init__(), trigTools.SwitchOnTriggerMatchEmbedding.__init__(), trigTools.RemoveCleaningFromTriggerMatching.__init__(), jetTools.SwitchJetCollection.__init__(), jetTools.AddJetID.__init__(), jetTools.SetTagInfos.__init__(), jetTools.SwitchJetCorrLevels.__init__(), metUncertaintyTools.RunMEtUncertainties._initializeInputTag(), ConfigToolBase.ConfigToolBase.dumpPython(), ConfigToolBase.ConfigToolBase.getAllowedValues(), photonTools.AddPhotonUserIsolation.getDefaultParameters(), electronTools.AddElectronUserIsolation.getDefaultParameters(), muonTools.AddMuonUserIsolation.getDefaultParameters(), heavyIonTools.ConfigureHeavyIons.getDefaultParameters(), metTools.AddTcMET.getDefaultParameters(), coreTools.RestrictInputToAOD.getDefaultParameters(), HiCoreTools.RestrictInputToAOD.getDefaultParameters(), trackTools.MakeAODTrackCandidates.getDefaultParameters(), cmsswVersionTools.Run52xOn51xTrigger.getDefaultParameters(), heavyIonTools.ProductionDefaults.getDefaultParameters(), editorTools.ChangeSource.getDefaultParameters(), metTools.AddPfMET.getDefaultParameters(), HiCoreTools.RemoveMCMatching.getDefaultParameters(), coreTools.RunOnData.getDefaultParameters(), metUncertaintyTools.RunMEtUncertainties.getDefaultParameters(), trackTools.MakePATTrackCandidates.getDefaultParameters(), cmsswVersionTools.PickRelValInputFiles.getDefaultParameters(), trigTools.SwitchOnTrigger.getDefaultParameters(), coreTools.RemoveMCMatching.getDefaultParameters(), heavyIonTools.SelectionDefaults.getDefaultParameters(), HiCoreTools.RemoveAllPATObjectsBut.getDefaultParameters(), heavyIonTools.DisbaleMonteCarloDeps.getDefaultParameters(), jetTools.RunBTagging.getDefaultParameters(), HiCoreTools.RemoveSpecificPATObjects.getDefaultParameters(), trigTools.SwitchOnTriggerStandAlone.getDefaultParameters(), coreTools.RemoveAllPATObjectsBut.getDefaultParameters(), trackTools.MakeTrackCandidates.getDefaultParameters(), coreTools.RemoveSpecificPATObjects.getDefaultParameters(), HiCoreTools.RemoveCleaning.getDefaultParameters(), trigTools.SwitchOnTriggerMatching.getDefaultParameters(), HiCoreTools.AddCleaning.getDefaultParameters(), coreTools.RemoveCleaning.getDefaultParameters(), tauTools.AddTauCollection.getDefaultParameters(), trigTools.SwitchOnTriggerMatchingStandAlone.getDefaultParameters(), coreTools.AddCleaning.getDefaultParameters(), jetTools.AddJetCollection.getDefaultParameters(), trigTools.SwitchOnTriggerMatchEmbedding.getDefaultParameters(), trigTools.RemoveCleaningFromTriggerMatching.getDefaultParameters(), jetTools.SwitchJetCollection.getDefaultParameters(), jetTools.AddJetID.getDefaultParameters(), jetTools.SetTagInfos.getDefaultParameters(), jetTools.SwitchJetCorrLevels.getDefaultParameters(), ConfigToolBase.ConfigToolBase.reset(), and ConfigToolBase.ConfigToolBase.setParameter().

string editorTools.UserCodeTool._label = "userCode"
staticprivate

Definition at line 8 of file editorTools.py.

Referenced by cmsswVersionTools.PickRelValInputFiles.apply(), Vispa.Views.LineDecayView.DecayLine.boundingRect(), Vispa.Views.LineDecayView.DecayLine.containsPoint(), Vispa.Views.LineDecayView.DecayLine.drawText(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigFolder.label_(), Vispa.Views.LineDecayView.DecayLine.labelBoundingRect(), cmsswVersionTools.PickRelValInputFiles.messageEmptyList(), Vispa.Views.LineDecayView.DecayLine.setLabel(), trigTools.SwitchOnTrigger.toolCode(), trigTools.SwitchOnTriggerStandAlone.toolCode(), trigTools.SwitchOnTriggerMatching.toolCode(), trigTools.SwitchOnTriggerMatchingStandAlone.toolCode(), trigTools.SwitchOnTriggerMatchEmbedding.toolCode(), and trigTools.RemoveCleaningFromTriggerMatching.toolCode().

editorTools.UserCodeTool._parameters
private

Definition at line 13 of file editorTools.py.

Referenced by coreTools.RemoveMCMatching.__call__(), metUncertaintyTools.RunMEtUncertainties.__init__(), cmsswVersionTools.Run52xOn51xTrigger.apply(), cmsswVersionTools.PickRelValInputFiles.apply(), jetTools.RunBTagging.apply(), editorTools.UserCodeTool.dumpPython(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool.dumpPython(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigFolder.parameters_(), editorTools.UserCodeTool.toolCode(), electronTools.AddElectronUserIsolation.toolCode(), photonTools.AddPhotonUserIsolation.toolCode(), metTools.AddTcMET.toolCode(), muonTools.AddMuonUserIsolation.toolCode(), HiCoreTools.RestrictInputToAOD.toolCode(), coreTools.RestrictInputToAOD.toolCode(), trackTools.MakeAODTrackCandidates.toolCode(), editorTools.ChangeSource.toolCode(), metTools.AddPfMET.toolCode(), HiCoreTools.RemoveMCMatching.toolCode(), coreTools.RunOnData.toolCode(), trackTools.MakePATTrackCandidates.toolCode(), trigTools.SwitchOnTrigger.toolCode(), coreTools.RemoveMCMatching.toolCode(), HiCoreTools.RemoveAllPATObjectsBut.toolCode(), HiCoreTools.RemoveSpecificPATObjects.toolCode(), trigTools.SwitchOnTriggerStandAlone.toolCode(), coreTools.RemoveAllPATObjectsBut.toolCode(), trackTools.MakeTrackCandidates.toolCode(), coreTools.RemoveSpecificPATObjects.toolCode(), HiCoreTools.RemoveCleaning.toolCode(), trigTools.SwitchOnTriggerMatching.toolCode(), HiCoreTools.AddCleaning.toolCode(), coreTools.RemoveCleaning.toolCode(), tauTools.AddTauCollection.toolCode(), trigTools.SwitchOnTriggerMatchingStandAlone.toolCode(), coreTools.AddCleaning.toolCode(), jetTools.AddJetCollection.toolCode(), trigTools.SwitchOnTriggerMatchEmbedding.toolCode(), trigTools.RemoveCleaningFromTriggerMatching.toolCode(), jetTools.SwitchJetCollection.toolCode(), jetTools.AddJetID.toolCode(), jetTools.SetTagInfos.toolCode(), jetTools.SwitchJetCorrLevels.toolCode(), and metUncertaintyTools.RunMEtUncertainties.toolCode().