Public Member Functions | |
def | __call__ |
def | __copy__ |
copy(self) returns a copy of the tool More... | |
def | __init__ |
def | addParameter |
use addParameter method in the redefinition of tool constructor in order to add parameters to the tools each tool is defined by its label, default value, description, type and allowedValues (the last two attribute can be ignored if the user gives a valid default values and if there is not a list of allowed values) More... | |
def | apply |
def | comment |
def | description |
def | dumpPython |
def | errorMessage |
def | getAllowedValues |
def | getParameters |
def | getvalue |
def | isAllowed |
method isAllowed is called by setParameter to check input values for a specific parameter More... | |
def | reset |
def | setComment |
def | setParameter |
def | setParameters |
def | toolCode |
def | typeError |
check about input value type More... | |
Public Attributes | |
parAccepted | |
Private Attributes | |
_comment | |
_description | |
_parameters | |
_path | |
Static Private Attributes | |
string | _defaultValue = "No default value. Set parameter value." |
string | _label = "ConfigToolBase" |
string | _path = "" |
Base class for PAT tools
Definition at line 33 of file ConfigToolBase.py.
def ConfigToolBase.ConfigToolBase.__init__ | ( | self | ) |
Definition at line 40 of file ConfigToolBase.py.
def ConfigToolBase.ConfigToolBase.__call__ | ( | self, | |
process | |||
) |
Call the instance
Definition at line 54 of file ConfigToolBase.py.
def ConfigToolBase.ConfigToolBase.__copy__ | ( | self | ) |
copy(self) returns a copy of the tool
Definition at line 83 of file ConfigToolBase.py.
References ConfigToolBase.ConfigToolBase._comment, and ConfigToolBase.ConfigToolBase._parameters.
Referenced by ConfigToolBase.ConfigToolBase.apply().
def ConfigToolBase.ConfigToolBase.addParameter | ( | self, | |
dict, | |||
parname, | |||
parvalue, | |||
description, | |||
Type = None , |
|||
allowedValues = None , |
|||
acceptNoneValue = False |
|||
) |
use addParameter method in the redefinition of tool constructor in order to add parameters to the tools each tool is defined by its label, default value, description, type and allowedValues (the last two attribute can be ignored if the user gives a valid default values and if there is not a list of allowed values)
Add a parameter with its label, value, description and type to self._parameters
Definition at line 102 of file ConfigToolBase.py.
Referenced by editorTools.UserCodeTool.__init__(), metTools.AddMETCollection.__init__(), trackTools.MakeAODTrackCandidates.__init__(), coreTools.RunOnData.__init__(), HiCoreTools.RestrictInputToAOD.__init__(), metUncertaintyTools.RunMEtUncertainties.__init__(), jetTools.AddJetCollection.__init__(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool.__init__(), editorTools.ChangeSource.__init__(), cmsswVersionTools.PickRelValInputFiles.__init__(), HiCoreTools.RemoveMCMatching.__init__(), coreTools.RemoveMCMatching.__init__(), trackTools.MakePATTrackCandidates.__init__(), trigTools.SwitchOnTrigger.__init__(), HiCoreTools.RemoveAllPATObjectsBut.__init__(), HiCoreTools.RemoveSpecificPATObjects.__init__(), trigTools.SwitchOnTriggerStandAlone.__init__(), trackTools.MakeTrackCandidates.__init__(), tauTools.AddTauCollection.__init__(), trigTools.SwitchOnTriggerMatching.__init__(), HiCoreTools.RemoveCleaning.__init__(), HiCoreTools.AddCleaning.__init__(), trigTools.SwitchOnTriggerMatchingStandAlone.__init__(), jetTools.SwitchJetCollection.__init__(), trigTools.SwitchOnTriggerMatchEmbedding.__init__(), jetTools.AddJetID.__init__(), and jetTools.SetTagInfos.__init__().
def ConfigToolBase.ConfigToolBase.apply | ( | self, | |
process | |||
) |
Definition at line 59 of file ConfigToolBase.py.
References ConfigToolBase.ConfigToolBase.__copy__(), pos::PixelConfigBase.setComment(), ConfigToolBase.ConfigToolBase.setComment(), Json::Value.setComment(), Json::Value::CommentInfo.setComment(), and ConfigToolBase.ConfigToolBase.toolCode().
Referenced by heavyIonTools.ConfigureHeavyIons.__call__(), editorTools.UserCodeTool.__call__(), HiCoreTools.RestrictInputToAOD.__call__(), coreTools.RunOnData.__call__(), trackTools.MakeAODTrackCandidates.__call__(), metTools.AddMETCollection.__call__(), heavyIonTools.ProductionDefaults.__call__(), editorTools.ChangeSource.__call__(), HiCoreTools.RemoveMCMatching.__call__(), cmsswVersionTools.PickRelValInputFiles.__call__(), jetTools.AddJetCollection.__call__(), coreTools.RemoveMCMatching.__call__(), trackTools.MakePATTrackCandidates.__call__(), trigTools.SwitchOnTrigger.__call__(), heavyIonTools.SelectionDefaults.__call__(), HiCoreTools.RemoveAllPATObjectsBut.__call__(), heavyIonTools.DisbaleMonteCarloDeps.__call__(), HiCoreTools.RemoveSpecificPATObjects.__call__(), trigTools.SwitchOnTriggerStandAlone.__call__(), trackTools.MakeTrackCandidates.__call__(), tauTools.AddTauCollection.__call__(), trigTools.SwitchOnTriggerMatching.__call__(), HiCoreTools.RemoveCleaning.__call__(), HiCoreTools.AddCleaning.__call__(), trigTools.SwitchOnTriggerMatchingStandAlone.__call__(), trigTools.SwitchOnTriggerMatchEmbedding.__call__(), jetTools.SwitchJetCollection.__call__(), jetTools.AddJetID.__call__(), jetTools.SetTagInfos.__call__(), and metUncertaintyTools.RunMEtUncertainties.__call__().
def ConfigToolBase.ConfigToolBase.comment | ( | self | ) |
Return the comment set for this tool
Definition at line 157 of file ConfigToolBase.py.
References ConfigToolBase.ConfigToolBase._comment.
def ConfigToolBase.ConfigToolBase.description | ( | self | ) |
Return a string with a detailed description of the action.
Definition at line 94 of file ConfigToolBase.py.
References ConfigToolBase.ConfigToolBase._description.
def ConfigToolBase.ConfigToolBase.dumpPython | ( | self | ) |
Return the python code to perform the action
Definition at line 134 of file ConfigToolBase.py.
References ConfigToolBase.ConfigToolBase._comment, metTools.AddMETCollection._defaultParameters, editorTools.UserCodeTool._defaultParameters, trackTools.MakeAODTrackCandidates._defaultParameters, heavyIonTools.ConfigureHeavyIons._defaultParameters, HiCoreTools.RestrictInputToAOD._defaultParameters, coreTools.RunOnData._defaultParameters, metUncertaintyTools.RunMEtUncertainties._defaultParameters, jetTools.AddJetCollection._defaultParameters, Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool._defaultParameters, heavyIonTools.ProductionDefaults._defaultParameters, editorTools.ChangeSource._defaultParameters, cmsswVersionTools.PickRelValInputFiles._defaultParameters, HiCoreTools.RemoveMCMatching._defaultParameters, coreTools.RemoveMCMatching._defaultParameters, trackTools.MakePATTrackCandidates._defaultParameters, trigTools.SwitchOnTrigger._defaultParameters, heavyIonTools.SelectionDefaults._defaultParameters, HiCoreTools.RemoveAllPATObjectsBut._defaultParameters, heavyIonTools.DisbaleMonteCarloDeps._defaultParameters, HiCoreTools.RemoveSpecificPATObjects._defaultParameters, trigTools.SwitchOnTriggerStandAlone._defaultParameters, trackTools.MakeTrackCandidates._defaultParameters, tauTools.AddTauCollection._defaultParameters, trigTools.SwitchOnTriggerMatching._defaultParameters, HiCoreTools.RemoveCleaning._defaultParameters, HiCoreTools.AddCleaning._defaultParameters, trigTools.SwitchOnTriggerMatchingStandAlone._defaultParameters, jetTools.SwitchJetCollection._defaultParameters, trigTools.SwitchOnTriggerMatchEmbedding._defaultParameters, jetTools.AddJetID._defaultParameters, jetTools.SetTagInfos._defaultParameters, MagneticFieldMapESProducer._label, TrackerInteractionGeometryESProducer._label, ConfigToolBase.ConfigToolBase._label, ConfigToolBase.ConfigToolBase._parameters, ConfigToolBase.ConfigToolBase._path, CommonAnalyzer._path, and ConfigToolBase.ConfigToolBase.getvalue().
Referenced by Mixins._Parameterizable.__addParameter(), Mixins._ParameterTypeBase.__repr__(), Mixins._Parameterizable.__repr__(), Mixins._ValidatingParameterListBase.__repr__(), Types.VPSet.__repr__(), and Mixins._Parameterizable.__setattr__().
def ConfigToolBase.ConfigToolBase.errorMessage | ( | self, | |
value, | |||
type | |||
) |
Definition at line 161 of file ConfigToolBase.py.
Referenced by Vispa.Main.Application.Application._loadPlugins(), Vispa.Main.Application.Application.openFile(), and ConfigToolBase.ConfigToolBase.typeError().
def ConfigToolBase.ConfigToolBase.getAllowedValues | ( | self, | |
name | |||
) |
Definition at line 192 of file ConfigToolBase.py.
References metTools.AddMETCollection._defaultParameters, trackTools.MakeAODTrackCandidates._defaultParameters, editorTools.UserCodeTool._defaultParameters, heavyIonTools.ConfigureHeavyIons._defaultParameters, coreTools.RunOnData._defaultParameters, HiCoreTools.RestrictInputToAOD._defaultParameters, metUncertaintyTools.RunMEtUncertainties._defaultParameters, jetTools.AddJetCollection._defaultParameters, Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool._defaultParameters, heavyIonTools.ProductionDefaults._defaultParameters, editorTools.ChangeSource._defaultParameters, cmsswVersionTools.PickRelValInputFiles._defaultParameters, HiCoreTools.RemoveMCMatching._defaultParameters, coreTools.RemoveMCMatching._defaultParameters, trackTools.MakePATTrackCandidates._defaultParameters, trigTools.SwitchOnTrigger._defaultParameters, heavyIonTools.SelectionDefaults._defaultParameters, HiCoreTools.RemoveAllPATObjectsBut._defaultParameters, heavyIonTools.DisbaleMonteCarloDeps._defaultParameters, HiCoreTools.RemoveSpecificPATObjects._defaultParameters, trigTools.SwitchOnTriggerStandAlone._defaultParameters, trackTools.MakeTrackCandidates._defaultParameters, tauTools.AddTauCollection._defaultParameters, trigTools.SwitchOnTriggerMatching._defaultParameters, HiCoreTools.RemoveCleaning._defaultParameters, HiCoreTools.AddCleaning._defaultParameters, trigTools.SwitchOnTriggerMatchingStandAlone._defaultParameters, jetTools.SwitchJetCollection._defaultParameters, trigTools.SwitchOnTriggerMatchEmbedding._defaultParameters, jetTools.AddJetID._defaultParameters, and jetTools.SetTagInfos._defaultParameters.
def ConfigToolBase.ConfigToolBase.getParameters | ( | self | ) |
Return a copy of the dict of the parameters.
Definition at line 115 of file ConfigToolBase.py.
References ConfigToolBase.ConfigToolBase._parameters.
def ConfigToolBase.ConfigToolBase.getvalue | ( | self, | |
name | |||
) |
Return the value of parameter 'name'
Definition at line 90 of file ConfigToolBase.py.
References ConfigToolBase.ConfigToolBase._parameters.
Referenced by ConfigToolBase.ConfigToolBase.dumpPython().
def ConfigToolBase.ConfigToolBase.isAllowed | ( | self, | |
name, | |||
value | |||
) |
method isAllowed is called by setParameter to check input values for a specific parameter
Definition at line 164 of file ConfigToolBase.py.
References ConfigToolBase.ConfigToolBase._parameters, and ConfigToolBase.ConfigToolBase.parAccepted.
Referenced by ConfigToolBase.ConfigToolBase.setParameter().
def ConfigToolBase.ConfigToolBase.reset | ( | self | ) |
Definition at line 88 of file ConfigToolBase.py.
References metTools.AddMETCollection._defaultParameters, editorTools.UserCodeTool._defaultParameters, trackTools.MakeAODTrackCandidates._defaultParameters, heavyIonTools.ConfigureHeavyIons._defaultParameters, coreTools.RunOnData._defaultParameters, HiCoreTools.RestrictInputToAOD._defaultParameters, metUncertaintyTools.RunMEtUncertainties._defaultParameters, jetTools.AddJetCollection._defaultParameters, Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool._defaultParameters, heavyIonTools.ProductionDefaults._defaultParameters, editorTools.ChangeSource._defaultParameters, cmsswVersionTools.PickRelValInputFiles._defaultParameters, HiCoreTools.RemoveMCMatching._defaultParameters, coreTools.RemoveMCMatching._defaultParameters, trackTools.MakePATTrackCandidates._defaultParameters, trigTools.SwitchOnTrigger._defaultParameters, heavyIonTools.SelectionDefaults._defaultParameters, HiCoreTools.RemoveAllPATObjectsBut._defaultParameters, heavyIonTools.DisbaleMonteCarloDeps._defaultParameters, HiCoreTools.RemoveSpecificPATObjects._defaultParameters, trigTools.SwitchOnTriggerStandAlone._defaultParameters, trackTools.MakeTrackCandidates._defaultParameters, tauTools.AddTauCollection._defaultParameters, trigTools.SwitchOnTriggerMatching._defaultParameters, HiCoreTools.RemoveCleaning._defaultParameters, HiCoreTools.AddCleaning._defaultParameters, trigTools.SwitchOnTriggerMatchingStandAlone._defaultParameters, jetTools.SwitchJetCollection._defaultParameters, trigTools.SwitchOnTriggerMatchEmbedding._defaultParameters, jetTools.AddJetID._defaultParameters, jetTools.SetTagInfos._defaultParameters, and ConfigToolBase.ConfigToolBase._parameters.
def ConfigToolBase.ConfigToolBase.setComment | ( | self, | |
comment | |||
) |
Write a comment in the configuration file
Definition at line 153 of file ConfigToolBase.py.
References ConfigToolBase.ConfigToolBase._comment.
Referenced by ConfigToolBase.ConfigToolBase.apply().
Change parameter 'name' to a new value
Definition at line 119 of file ConfigToolBase.py.
References metTools.AddMETCollection._defaultParameters, editorTools.UserCodeTool._defaultParameters, trackTools.MakeAODTrackCandidates._defaultParameters, heavyIonTools.ConfigureHeavyIons._defaultParameters, coreTools.RunOnData._defaultParameters, HiCoreTools.RestrictInputToAOD._defaultParameters, metUncertaintyTools.RunMEtUncertainties._defaultParameters, jetTools.AddJetCollection._defaultParameters, Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool._defaultParameters, heavyIonTools.ProductionDefaults._defaultParameters, editorTools.ChangeSource._defaultParameters, cmsswVersionTools.PickRelValInputFiles._defaultParameters, HiCoreTools.RemoveMCMatching._defaultParameters, coreTools.RemoveMCMatching._defaultParameters, trackTools.MakePATTrackCandidates._defaultParameters, trigTools.SwitchOnTrigger._defaultParameters, heavyIonTools.SelectionDefaults._defaultParameters, HiCoreTools.RemoveAllPATObjectsBut._defaultParameters, heavyIonTools.DisbaleMonteCarloDeps._defaultParameters, HiCoreTools.RemoveSpecificPATObjects._defaultParameters, trigTools.SwitchOnTriggerStandAlone._defaultParameters, trackTools.MakeTrackCandidates._defaultParameters, tauTools.AddTauCollection._defaultParameters, trigTools.SwitchOnTriggerMatching._defaultParameters, HiCoreTools.RemoveCleaning._defaultParameters, HiCoreTools.AddCleaning._defaultParameters, trigTools.SwitchOnTriggerMatchingStandAlone._defaultParameters, jetTools.SwitchJetCollection._defaultParameters, trigTools.SwitchOnTriggerMatchEmbedding._defaultParameters, jetTools.AddJetID._defaultParameters, jetTools.SetTagInfos._defaultParameters, ConfigToolBase.ConfigToolBase._parameters, ConfigToolBase.ConfigToolBase.isAllowed(), and ConfigToolBase.ConfigToolBase.typeError().
Referenced by editorTools.UserCodeTool.__call__(), HiCoreTools.RestrictInputToAOD.__call__(), coreTools.RunOnData.__call__(), trackTools.MakeAODTrackCandidates.__call__(), metTools.AddMETCollection.__call__(), editorTools.ChangeSource.__call__(), HiCoreTools.RemoveMCMatching.__call__(), cmsswVersionTools.PickRelValInputFiles.__call__(), jetTools.AddJetCollection.__call__(), coreTools.RemoveMCMatching.__call__(), trackTools.MakePATTrackCandidates.__call__(), trigTools.SwitchOnTrigger.__call__(), HiCoreTools.RemoveAllPATObjectsBut.__call__(), HiCoreTools.RemoveSpecificPATObjects.__call__(), trigTools.SwitchOnTriggerStandAlone.__call__(), trackTools.MakeTrackCandidates.__call__(), tauTools.AddTauCollection.__call__(), trigTools.SwitchOnTriggerMatching.__call__(), HiCoreTools.RemoveCleaning.__call__(), HiCoreTools.AddCleaning.__call__(), trigTools.SwitchOnTriggerMatchingStandAlone.__call__(), trigTools.SwitchOnTriggerMatchEmbedding.__call__(), jetTools.SwitchJetCollection.__call__(), jetTools.AddJetID.__call__(), jetTools.SetTagInfos.__call__(), and metUncertaintyTools.RunMEtUncertainties.__call__().
def ConfigToolBase.ConfigToolBase.setParameters | ( | self, | |
parameters | |||
) |
Definition at line 127 of file ConfigToolBase.py.
References ConfigToolBase.ConfigToolBase._parameters.
def ConfigToolBase.ConfigToolBase.toolCode | ( | self, | |
process | |||
) |
Definition at line 78 of file ConfigToolBase.py.
Referenced by ConfigToolBase.ConfigToolBase.apply().
def ConfigToolBase.ConfigToolBase.typeError | ( | self, | |
name | |||
) |
check about input value type
Definition at line 185 of file ConfigToolBase.py.
References ConfigToolBase.ConfigToolBase._parameters, FWEventItem.errorMessage(), and ConfigToolBase.ConfigToolBase.errorMessage().
Referenced by ConfigToolBase.ConfigToolBase.setParameter().
|
private |
Definition at line 43 of file ConfigToolBase.py.
Referenced by ConfigToolBase.ConfigToolBase.__copy__(), metUncertaintyTools.RunMEtUncertainties.__init__(), ConfigToolBase.ConfigToolBase.comment(), editorTools.UserCodeTool.dumpPython(), ConfigToolBase.ConfigToolBase.dumpPython(), and ConfigToolBase.ConfigToolBase.setComment().
|
staticprivate |
Definition at line 38 of file ConfigToolBase.py.
Referenced by metTools.AddMETCollection.__init__(), HiCoreTools.RemoveAllPATObjectsBut.__init__(), HiCoreTools.RemoveSpecificPATObjects.__init__(), and tauTools.AddTauCollection.__init__().
|
private |
Definition at line 42 of file ConfigToolBase.py.
Referenced by Vispa.Main.Filetype.Filetype.description(), ConfigToolBase.ConfigToolBase.description(), and Vispa.Main.Filetype.Filetype.fileDialogFilter().
|
staticprivate |
Definition at line 37 of file ConfigToolBase.py.
Referenced by cmsswVersionTools.PickRelValInputFiles.apply(), Vispa.Views.LineDecayView.DecayLine.boundingRect(), Vispa.Views.LineDecayView.DecayLine.containsPoint(), Vispa.Views.LineDecayView.DecayLine.drawText(), ConfigToolBase.ConfigToolBase.dumpPython(), 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(), and trigTools.SwitchOnTriggerMatchEmbedding.toolCode().
|
private |
Definition at line 41 of file ConfigToolBase.py.
Referenced by ConfigToolBase.ConfigToolBase.__copy__(), metUncertaintyTools.RunMEtUncertainties.__init__(), cmsswVersionTools.PickRelValInputFiles.apply(), editorTools.UserCodeTool.dumpPython(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool.dumpPython(), ConfigToolBase.ConfigToolBase.dumpPython(), ConfigToolBase.ConfigToolBase.getParameters(), ConfigToolBase.ConfigToolBase.getvalue(), ConfigToolBase.ConfigToolBase.isAllowed(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigFolder.parameters_(), ConfigToolBase.ConfigToolBase.reset(), ConfigToolBase.ConfigToolBase.setParameter(), ConfigToolBase.ConfigToolBase.setParameters(), editorTools.UserCodeTool.toolCode(), HiCoreTools.RestrictInputToAOD.toolCode(), coreTools.RunOnData.toolCode(), trackTools.MakeAODTrackCandidates.toolCode(), metTools.AddMETCollection.toolCode(), editorTools.ChangeSource.toolCode(), HiCoreTools.RemoveMCMatching.toolCode(), coreTools.RemoveMCMatching.toolCode(), trackTools.MakePATTrackCandidates.toolCode(), trigTools.SwitchOnTrigger.toolCode(), jetTools.AddJetCollection.toolCode(), HiCoreTools.RemoveAllPATObjectsBut.toolCode(), HiCoreTools.RemoveSpecificPATObjects.toolCode(), trigTools.SwitchOnTriggerStandAlone.toolCode(), trackTools.MakeTrackCandidates.toolCode(), tauTools.AddTauCollection.toolCode(), HiCoreTools.RemoveCleaning.toolCode(), trigTools.SwitchOnTriggerMatching.toolCode(), HiCoreTools.AddCleaning.toolCode(), trigTools.SwitchOnTriggerMatchingStandAlone.toolCode(), trigTools.SwitchOnTriggerMatchEmbedding.toolCode(), jetTools.SwitchJetCollection.toolCode(), jetTools.AddJetID.toolCode(), jetTools.SetTagInfos.toolCode(), metUncertaintyTools.RunMEtUncertainties.toolCode(), and ConfigToolBase.ConfigToolBase.typeError().
|
staticprivate |
Definition at line 39 of file ConfigToolBase.py.
Referenced by ConfigToolBase.ConfigToolBase.dumpPython(), parserPerfsuiteMetadata.parserPerfsuiteMetadata.getMachineInfo(), parserPerfsuiteMetadata.parserPerfsuiteMetadata.readCmsScimark(), and parserPerfsuiteMetadata.parserPerfsuiteMetadata.readCmsScimarkTest().
|
private |
ConfigToolBase.ConfigToolBase.parAccepted |
Definition at line 44 of file ConfigToolBase.py.
Referenced by ConfigToolBase.ConfigToolBase.isAllowed().