Public Member Functions | |
def | __call__ (self, process) |
def | __copy__ (self) |
copy(self) returns a copy of the tool More... | |
def | __init__ (self) |
def | 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) More... | |
def | apply (self, process) |
def | comment (self) |
def | description (self) |
def | dumpPython (self) |
def | errorMessage (self, value, type) |
def | getAllowedValues (self, name) |
def | getParameters (self) |
def | getvalue (self, name) |
def | isAllowed (self, name, value) |
method isAllowed is called by setParameter to check input values for a specific parameter More... | |
def | reset (self) |
def | setComment (self, comment) |
def | setParameter (self, name, value, typeNone=False) |
def | setParameters (self, parameters) |
def | toolCode (self, process) |
def | typeError (self, name) |
check about input value type More... | |
Public Attributes | |
parAccepted | |
Private Attributes | |
_comment | |
_description | |
_parameters | |
Static Private Attributes | |
_defaultValue | |
_label | |
_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, cmsswVersionTools.PickRelValInputFiles._comment, ConfigToolBase.ConfigToolBase._parameters, TAbsFitConstraint._parameters, TAbsFitParticle._parameters, and cmsswVersionTools.PickRelValInputFiles._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 metTools.AddMETCollection.__init__(), trackTools.MakeAODTrackCandidates.__init__(), coreTools.RunOnData.__init__(), runJetUncertainties.RunJetUncertainties.__init__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.__init__(), cmsswVersionTools.PickRelValInputFiles.__init__(), coreTools.RemoveMCMatching.__init__(), trackTools.MakePATTrackCandidates.__init__(), trigTools.SwitchOnTrigger.__init__(), trigTools.SwitchOnTriggerStandAlone.__init__(), tauTools.AddTauCollection.__init__(), trackTools.MakeTrackCandidates.__init__(), trigTools.SwitchOnTriggerMatching.__init__(), trigTools.SwitchOnTriggerMatchingStandAlone.__init__(), trigTools.SwitchOnTriggerMatchEmbedding.__init__(), jetTools.AddJetCollection.__init__(), jetTools.SwitchJetCollection.__init__(), jetTools.UpdateJetCollection.__init__(), jetTools.AddJetID.__init__(), and jetTools.SetTagInfos.__init__().
def ConfigToolBase.ConfigToolBase.apply | ( | self, | |
process | |||
) |
Definition at line 59 of file ConfigToolBase.py.
References PhysicsObject.PhysicsObject.__copy__(), ConfigToolBase.ConfigToolBase.__copy__(), RunCommentDat.setComment(), ODFEDAQConfig.setComment(), edm::ConfigurationDescriptions.setComment(), pos::PixelConfigBase.setComment(), edm::ParameterSetDescription.setComment(), edm::ParameterDescriptionNode.setComment(), L1TUtmTriggerMenu.setComment(), ConfigToolBase.ConfigToolBase.setComment(), Json::Value.setComment(), Json::Value::CommentInfo.setComment(), and ConfigToolBase.ConfigToolBase.toolCode().
Referenced by heavyIonTools.ConfigureHeavyIons.__call__(), coreTools.RunOnData.__call__(), trackTools.MakeAODTrackCandidates.__call__(), runJetUncertainties.RunJetUncertainties.__call__(), metTools.AddMETCollection.__call__(), heavyIonTools.ProductionDefaults.__call__(), coreTools.RemoveMCMatching.__call__(), trackTools.MakePATTrackCandidates.__call__(), trigTools.SwitchOnTrigger.__call__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.__call__(), heavyIonTools.SelectionDefaults.__call__(), heavyIonTools.DisbaleMonteCarloDeps.__call__(), trigTools.SwitchOnTriggerStandAlone.__call__(), tauTools.AddTauCollection.__call__(), trackTools.MakeTrackCandidates.__call__(), trigTools.SwitchOnTriggerMatching.__call__(), trigTools.SwitchOnTriggerMatchingStandAlone.__call__(), trigTools.SwitchOnTriggerMatchEmbedding.__call__(), jetTools.AddJetCollection.__call__(), jetTools.SwitchJetCollection.__call__(), jetTools.UpdateJetCollection.__call__(), jetTools.AddJetID.__call__(), and jetTools.SetTagInfos.__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, and cmsswVersionTools.PickRelValInputFiles._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, cmsswVersionTools.PickRelValInputFiles._comment, heavyIonTools.ConfigureHeavyIons._defaultParameters, metTools.AddMETCollection._defaultParameters, trackTools.MakeAODTrackCandidates._defaultParameters, coreTools.RunOnData._defaultParameters, runJetUncertainties.RunJetUncertainties._defaultParameters, runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties._defaultParameters, heavyIonTools.ProductionDefaults._defaultParameters, cmsswVersionTools.PickRelValInputFiles._defaultParameters, coreTools.RemoveMCMatching._defaultParameters, trackTools.MakePATTrackCandidates._defaultParameters, trigTools.SwitchOnTrigger._defaultParameters, heavyIonTools.SelectionDefaults._defaultParameters, heavyIonTools.DisbaleMonteCarloDeps._defaultParameters, trigTools.SwitchOnTriggerStandAlone._defaultParameters, tauTools.AddTauCollection._defaultParameters, trackTools.MakeTrackCandidates._defaultParameters, trigTools.SwitchOnTriggerMatching._defaultParameters, trigTools.SwitchOnTriggerMatchingStandAlone._defaultParameters, trigTools.SwitchOnTriggerMatchEmbedding._defaultParameters, jetTools.AddJetCollection._defaultParameters, jetTools.SwitchJetCollection._defaultParameters, jetTools.UpdateJetCollection._defaultParameters, jetTools.AddJetID._defaultParameters, jetTools.SetTagInfos._defaultParameters, MagneticFieldMapESProducer._label, TrackerInteractionGeometryESProducer._label, ConfigToolBase.ConfigToolBase._label, LHECOMWeightProducer._label, cmsswVersionTools.PickRelValInputFiles._label, ConfigToolBase.ConfigToolBase._parameters, TAbsFitConstraint._parameters, TAbsFitParticle._parameters, cmsswVersionTools.PickRelValInputFiles._parameters, HIPplots._path, ConfigToolBase.ConfigToolBase._path, CommonAnalyzer._path, ConfigToolBase.ConfigToolBase.getvalue(), relativeConstraints.keys, and str.
def ConfigToolBase.ConfigToolBase.errorMessage | ( | self, | |
value, | |||
type | |||
) |
Definition at line 161 of file ConfigToolBase.py.
References str.
Referenced by ConfigToolBase.ConfigToolBase.typeError().
def ConfigToolBase.ConfigToolBase.getAllowedValues | ( | self, | |
name | |||
) |
Definition at line 192 of file ConfigToolBase.py.
References heavyIonTools.ConfigureHeavyIons._defaultParameters, metTools.AddMETCollection._defaultParameters, trackTools.MakeAODTrackCandidates._defaultParameters, coreTools.RunOnData._defaultParameters, runJetUncertainties.RunJetUncertainties._defaultParameters, runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties._defaultParameters, heavyIonTools.ProductionDefaults._defaultParameters, cmsswVersionTools.PickRelValInputFiles._defaultParameters, coreTools.RemoveMCMatching._defaultParameters, trackTools.MakePATTrackCandidates._defaultParameters, trigTools.SwitchOnTrigger._defaultParameters, heavyIonTools.SelectionDefaults._defaultParameters, heavyIonTools.DisbaleMonteCarloDeps._defaultParameters, trigTools.SwitchOnTriggerStandAlone._defaultParameters, tauTools.AddTauCollection._defaultParameters, trackTools.MakeTrackCandidates._defaultParameters, trigTools.SwitchOnTriggerMatching._defaultParameters, trigTools.SwitchOnTriggerMatchingStandAlone._defaultParameters, trigTools.SwitchOnTriggerMatchEmbedding._defaultParameters, jetTools.AddJetCollection._defaultParameters, jetTools.SwitchJetCollection._defaultParameters, jetTools.UpdateJetCollection._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, TAbsFitConstraint._parameters, TAbsFitParticle._parameters, and cmsswVersionTools.PickRelValInputFiles._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, TAbsFitConstraint._parameters, TAbsFitParticle._parameters, and cmsswVersionTools.PickRelValInputFiles._parameters.
Referenced by runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.createShiftedModules(), ConfigToolBase.ConfigToolBase.dumpPython(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.getCorrectedMET(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.getMETUncertainties(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.produceMET(), and runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.recomputeRawMetFromPfcs().
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, TAbsFitConstraint._parameters, TAbsFitParticle._parameters, cmsswVersionTools.PickRelValInputFiles._parameters, ConfigToolBase.ConfigToolBase.parAccepted, and str.
Referenced by ConfigToolBase.ConfigToolBase.setParameter().
def ConfigToolBase.ConfigToolBase.reset | ( | self | ) |
Definition at line 88 of file ConfigToolBase.py.
References heavyIonTools.ConfigureHeavyIons._defaultParameters, metTools.AddMETCollection._defaultParameters, trackTools.MakeAODTrackCandidates._defaultParameters, coreTools.RunOnData._defaultParameters, runJetUncertainties.RunJetUncertainties._defaultParameters, runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties._defaultParameters, heavyIonTools.ProductionDefaults._defaultParameters, cmsswVersionTools.PickRelValInputFiles._defaultParameters, coreTools.RemoveMCMatching._defaultParameters, trackTools.MakePATTrackCandidates._defaultParameters, trigTools.SwitchOnTrigger._defaultParameters, heavyIonTools.SelectionDefaults._defaultParameters, heavyIonTools.DisbaleMonteCarloDeps._defaultParameters, trigTools.SwitchOnTriggerStandAlone._defaultParameters, tauTools.AddTauCollection._defaultParameters, trackTools.MakeTrackCandidates._defaultParameters, trigTools.SwitchOnTriggerMatching._defaultParameters, trigTools.SwitchOnTriggerMatchingStandAlone._defaultParameters, trigTools.SwitchOnTriggerMatchEmbedding._defaultParameters, jetTools.AddJetCollection._defaultParameters, jetTools.SwitchJetCollection._defaultParameters, jetTools.UpdateJetCollection._defaultParameters, jetTools.AddJetID._defaultParameters, jetTools.SetTagInfos._defaultParameters, ConfigToolBase.ConfigToolBase._parameters, TAbsFitConstraint._parameters, TAbsFitParticle._parameters, and cmsswVersionTools.PickRelValInputFiles._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, cmsswVersionTools.PickRelValInputFiles._comment, and str.
Referenced by ConfigToolBase.ConfigToolBase.apply().
def ConfigToolBase.ConfigToolBase.setParameter | ( | self, | |
name, | |||
value, | |||
typeNone = False |
|||
) |
Change parameter 'name' to a new value
Definition at line 119 of file ConfigToolBase.py.
References heavyIonTools.ConfigureHeavyIons._defaultParameters, metTools.AddMETCollection._defaultParameters, trackTools.MakeAODTrackCandidates._defaultParameters, coreTools.RunOnData._defaultParameters, runJetUncertainties.RunJetUncertainties._defaultParameters, runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties._defaultParameters, heavyIonTools.ProductionDefaults._defaultParameters, cmsswVersionTools.PickRelValInputFiles._defaultParameters, coreTools.RemoveMCMatching._defaultParameters, trackTools.MakePATTrackCandidates._defaultParameters, trigTools.SwitchOnTrigger._defaultParameters, heavyIonTools.SelectionDefaults._defaultParameters, heavyIonTools.DisbaleMonteCarloDeps._defaultParameters, trigTools.SwitchOnTriggerStandAlone._defaultParameters, tauTools.AddTauCollection._defaultParameters, trackTools.MakeTrackCandidates._defaultParameters, trigTools.SwitchOnTriggerMatching._defaultParameters, trigTools.SwitchOnTriggerMatchingStandAlone._defaultParameters, trigTools.SwitchOnTriggerMatchEmbedding._defaultParameters, jetTools.AddJetCollection._defaultParameters, jetTools.SwitchJetCollection._defaultParameters, jetTools.UpdateJetCollection._defaultParameters, jetTools.AddJetID._defaultParameters, jetTools.SetTagInfos._defaultParameters, ConfigToolBase.ConfigToolBase._parameters, TAbsFitConstraint._parameters, TAbsFitParticle._parameters, cmsswVersionTools.PickRelValInputFiles._parameters, ConfigToolBase.ConfigToolBase.isAllowed(), and ConfigToolBase.ConfigToolBase.typeError().
Referenced by coreTools.RunOnData.__call__(), trackTools.MakeAODTrackCandidates.__call__(), runJetUncertainties.RunJetUncertainties.__call__(), metTools.AddMETCollection.__call__(), cmsswVersionTools.PickRelValInputFiles.__call__(), coreTools.RemoveMCMatching.__call__(), trackTools.MakePATTrackCandidates.__call__(), trigTools.SwitchOnTrigger.__call__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.__call__(), trigTools.SwitchOnTriggerStandAlone.__call__(), tauTools.AddTauCollection.__call__(), trackTools.MakeTrackCandidates.__call__(), trigTools.SwitchOnTriggerMatching.__call__(), trigTools.SwitchOnTriggerMatchingStandAlone.__call__(), trigTools.SwitchOnTriggerMatchEmbedding.__call__(), jetTools.AddJetCollection.__call__(), jetTools.SwitchJetCollection.__call__(), jetTools.UpdateJetCollection.__call__(), jetTools.AddJetID.__call__(), jetTools.SetTagInfos.__call__(), and runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.jetConfiguration().
def ConfigToolBase.ConfigToolBase.setParameters | ( | self, | |
parameters | |||
) |
Definition at line 127 of file ConfigToolBase.py.
References ConfigToolBase.ConfigToolBase._parameters, TAbsFitConstraint._parameters, TAbsFitParticle._parameters, and cmsswVersionTools.PickRelValInputFiles._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, TAbsFitConstraint._parameters, TAbsFitParticle._parameters, cmsswVersionTools.PickRelValInputFiles._parameters, CTPPSPixelDataError.errorMessage(), 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__(), ConfigToolBase.ConfigToolBase.comment(), ConfigToolBase.ConfigToolBase.dumpPython(), and ConfigToolBase.ConfigToolBase.setComment().
|
staticprivate |
Definition at line 38 of file ConfigToolBase.py.
Referenced by metTools.AddMETCollection.__init__(), and tauTools.AddTauCollection.__init__().
|
private |
Definition at line 42 of file ConfigToolBase.py.
Referenced by ConfigToolBase.ConfigToolBase.description().
|
staticprivate |
Definition at line 37 of file ConfigToolBase.py.
Referenced by validation.SimpleSample.digest(), ConfigToolBase.ConfigToolBase.dumpPython(), validation.SimpleSample.label(), 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__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.ak4JetReclustering(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.createMVAMETModule(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.createSmearedJetModule(), ConfigToolBase.ConfigToolBase.dumpPython(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.extractMET(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.getCorrectedMET(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.getMETUncertainties(), ConfigToolBase.ConfigToolBase.getParameters(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.getUnclusteredVariationsForMVAMET(), ConfigToolBase.ConfigToolBase.getvalue(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.getVariations(), ConfigToolBase.ConfigToolBase.isAllowed(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.jetCleaning(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.jetConfiguration(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.miniAODConfiguration(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.miniAODConfigurationPost(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.recomputeRawMetFromPfcs(), ConfigToolBase.ConfigToolBase.reset(), ConfigToolBase.ConfigToolBase.setParameter(), ConfigToolBase.ConfigToolBase.setParameters(), coreTools.RunOnData.toolCode(), trackTools.MakeAODTrackCandidates.toolCode(), metTools.AddMETCollection.toolCode(), runJetUncertainties.RunJetUncertainties.toolCode(), coreTools.RemoveMCMatching.toolCode(), trigTools.SwitchOnTrigger.toolCode(), trackTools.MakePATTrackCandidates.toolCode(), trigTools.SwitchOnTriggerStandAlone.toolCode(), tauTools.AddTauCollection.toolCode(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.toolCode(), trackTools.MakeTrackCandidates.toolCode(), trigTools.SwitchOnTriggerMatching.toolCode(), trigTools.SwitchOnTriggerMatchingStandAlone.toolCode(), trigTools.SwitchOnTriggerMatchEmbedding.toolCode(), jetTools.AddJetCollection.toolCode(), jetTools.SwitchJetCollection.toolCode(), jetTools.UpdateJetCollection.toolCode(), jetTools.AddJetID.toolCode(), jetTools.SetTagInfos.toolCode(), ConfigToolBase.ConfigToolBase.typeError(), and runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.updateJECs().
|
staticprivate |
Definition at line 39 of file ConfigToolBase.py.
Referenced by ConfigToolBase.ConfigToolBase.dumpPython().
ConfigToolBase.ConfigToolBase.parAccepted |
Definition at line 44 of file ConfigToolBase.py.
Referenced by ConfigToolBase.ConfigToolBase.isAllowed().