Public Member Functions | |
def | __call__ |
def | __init__ |
def | getDefaultParameters |
def | toolCode |
Static Public Attributes | |
tuple | acceptedBtagDiscriminators = list() |
setup all required btagDiscriminators More... | |
tuple | acceptedTagInfos = list() |
prepare setups for simple secondary vertex infos More... | |
tuple | addJetCollection = AddJetCollection() |
switch jetCorrFactors off More... | |
tuple | bHadrons = cms.InputTag("patJetPartons"+postfix,"bHadrons") |
tuple | cHadrons = cms.InputTag("patJetPartons"+postfix,"cHadrons") |
error = False | |
check whether L1Offset or L1FastJet is part of levels More... | |
jetAlgorithm = _algo, | |
jets = jetSource, | |
tuple | partons = cms.InputTag("patJetPartons"+postfix,"partons") |
tuple | requiredTagInfos = list(btagInfos) |
modify new patJets collection accordingly More... | |
rParam = rParam, | |
tagInfoCovered = False | |
Private Attributes | |
_comment | |
add comments More... | |
_parameters | |
initialization of the base class More... | |
Static Private Attributes | |
tuple | _defaultParameters = dicttypes.SortedKeysDict() |
string | _label = 'addJetCollection' |
_labelCorrName = _labelName | |
set up MET(Type1) correction modules More... | |
string | _labelCorrName = 'For' |
tuple | _newJetTracksAssociationAtVertex = getattr(process, 'jetTracksAssociatorAtVertex'+_labelName+postfix) |
tuple | _newPatJetCharge = getattr(process, 'patJetCharge'+_labelName+postfix) |
tuple | _newPatJetCorrFactors = getattr(process, 'patJetCorrFactors'+_labelName+postfix) |
tuple | _newPatJetFlavourAssociation = getattr(process, 'patJetFlavourAssociationLegacy'+_labelName+postfix) |
tuple | _newPatJetGenJetMatch = getattr(process, 'patJetGenJetMatch'+_labelName+postfix) |
tuple | _newPatJetPartonAssociation = getattr(process, 'patJetPartonAssociationLegacy'+_labelName+postfix) |
tuple | _newPatJetPartonMatch = getattr(process, 'patJetPartonMatch'+_labelName+postfix) |
string | _type = "NONE" |
replace corresponding tags for pat jet production More... | |
Tool to add a new jet collection to your PAT Tuple or to modify an existing one.
Definition at line 17 of file jetTools.py.
def jetTools.AddJetCollection.__init__ | ( | self | ) |
Initialize elements of the class. Note that the tool needs to be derived from ConfigToolBase to be usable in the configEditor.
Definition at line 24 of file jetTools.py.
References editorTools.UserCodeTool._defaultParameters, heavyIonTools.ConfigureHeavyIons._defaultParameters, coreTools.RunOnData._defaultParameters, jetTools.AddJetCollection._defaultParameters, Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool._defaultParameters, heavyIonTools.ProductionDefaults._defaultParameters, editorTools.ChangeSource._defaultParameters, cmsswVersionTools.PickRelValInputFiles._defaultParameters, coreTools.RemoveMCMatching._defaultParameters, heavyIonTools.SelectionDefaults._defaultParameters, heavyIonTools.DisbaleMonteCarloDeps._defaultParameters, root::helper::RootFunctionAdapter< F, args >.addParameter(), root::helper::RootFunctionHelper< F, args, Tag >.addParameter(), ParameterMgr.addParameter(), fit::RootMinuit< Function >.addParameter(), DropBoxMetadata::Parameters.addParameter(), PythonParameterSet.addParameter(), LutXml.addParameter(), ConfigToolBase.ConfigToolBase.addParameter(), and edm::ParameterSet.addParameter().
def jetTools.AddJetCollection.__call__ | ( | self, | |
process, | |||
labelName = None , |
|||
postfix = None , |
|||
jetSource = None , |
|||
trackSource = None , |
|||
pvSource = None , |
|||
svSource = None , |
|||
algo = None , |
|||
rParam = None , |
|||
getJetMCFlavour = None , |
|||
genJetCollection = None , |
|||
jetCorrections = None , |
|||
btagDiscriminators = None , |
|||
btagInfos = None , |
|||
jetTrackAssociation = None , |
|||
outputModules = None |
|||
) |
Function call wrapper. This will check the parameters and call the actual implementation that can be found in toolCode via the base class function apply.
Definition at line 76 of file jetTools.py.
References editorTools.UserCodeTool._defaultParameters, heavyIonTools.ConfigureHeavyIons._defaultParameters, coreTools.RunOnData._defaultParameters, jetTools.AddJetCollection._defaultParameters, Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool._defaultParameters, heavyIonTools.ProductionDefaults._defaultParameters, editorTools.ChangeSource._defaultParameters, cmsswVersionTools.PickRelValInputFiles._defaultParameters, coreTools.RemoveMCMatching._defaultParameters, heavyIonTools.SelectionDefaults._defaultParameters, heavyIonTools.DisbaleMonteCarloDeps._defaultParameters, SignedImpactParameter3D.apply(), gen::PhotosInterfaceBase.apply(), SignedTransverseImpactParameter.apply(), MatrixReader.MatrixReader.apply, SignedDecayLength3D.apply(), DummyOOTPileupCorrection.apply(), gen::PhotosppInterface.apply(), FWPSetCellEditor.apply(), gen::PhotosInterface.apply(), SurveyParameters.apply(), FWGUIEventFilter.apply(), DeviationsFromFileSensor2D.apply(), BeamSpotAlignmentParameters.apply(), RigidBodyAlignmentParameters.apply(), MatRepSparse< T, D1, D2, S, F >.apply(), ConfigToolBase.ConfigToolBase.apply(), OOTPileupCorrData.apply(), AlignmentParameters.apply(), BowedSurfaceAlignmentParameters.apply(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool.apply(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ApplyTool.apply(), AbsOOTPileupCorrection.apply(), TwoBowedSurfacesAlignmentParameters.apply(), reco::modules::TrackerTrackHitFilter::Rule.apply(), Vispa.Gui.BoxContentDialog.BoxContentDialog.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(), ora::OraMainTable.setParameter(), ora::IMainTable.setParameter(), PedeReader.setParameter(), ora::PoolMainTable.setParameter(), IntegratedCalibrationBase.setParameter(), SiStripLorentzAngleCalibration.setParameter(), SiPixelLorentzAngleCalibration.setParameter(), SiStripBackplaneCalibration.setParameter(), fit::RootMinuit< Function >.setParameter(), and ConfigToolBase.ConfigToolBase.setParameter().
def jetTools.AddJetCollection.getDefaultParameters | ( | self | ) |
Return default parameters of the class
Definition at line 70 of file jetTools.py.
References editorTools.UserCodeTool._defaultParameters, heavyIonTools.ConfigureHeavyIons._defaultParameters, coreTools.RunOnData._defaultParameters, jetTools.AddJetCollection._defaultParameters, Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool._defaultParameters, heavyIonTools.ProductionDefaults._defaultParameters, editorTools.ChangeSource._defaultParameters, cmsswVersionTools.PickRelValInputFiles._defaultParameters, coreTools.RemoveMCMatching._defaultParameters, heavyIonTools.SelectionDefaults._defaultParameters, and heavyIonTools.DisbaleMonteCarloDeps._defaultParameters.
def jetTools.AddJetCollection.toolCode | ( | self, | |
process | |||
) |
Tool code implementation
Definition at line 131 of file jetTools.py.
References editorTools.UserCodeTool._parameters, heavyIonTools.ConfigureHeavyIons._parameters, coreTools.RunOnData._parameters, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigFolder._parameters, Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool._parameters, heavyIonTools.ProductionDefaults._parameters, ConfigToolBase.ConfigToolBase._parameters, editorTools.ChangeSource._parameters, TAbsFitConstraint._parameters, TAbsFitParticle._parameters, jetTools.AddJetCollection._parameters, cmsswVersionTools.PickRelValInputFiles._parameters, coreTools.RemoveMCMatching._parameters, heavyIonTools.SelectionDefaults._parameters, heavyIonTools.DisbaleMonteCarloDeps._parameters, spr.find(), list(), split, jetTools.undefinedLabelName(), jetTools.unsupportedJetAlgorithm(), and pileupCalc.upper.
|
private |
add comments
Definition at line 66 of file jetTools.py.
Referenced by metUncertaintyTools.RunMEtUncertainties.__init__().
|
staticprivate |
Definition at line 22 of file jetTools.py.
Referenced by HiCoreTools.RestrictInputToAOD.__call__(), trackTools.MakeAODTrackCandidates.__call__(), metTools.AddMETCollection.__call__(), HiCoreTools.RemoveMCMatching.__call__(), jetTools.AddJetCollection.__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__(), metUncertaintyTools.RunMEtUncertainties.__call__(), metTools.AddMETCollection.__init__(), trackTools.MakeAODTrackCandidates.__init__(), HiCoreTools.RestrictInputToAOD.__init__(), metUncertaintyTools.RunMEtUncertainties.__init__(), jetTools.AddJetCollection.__init__(), HiCoreTools.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__(), jetTools.SetTagInfos.__init__(), metUncertaintyTools.RunMEtUncertainties._initializeInputTag(), ConfigToolBase.ConfigToolBase.dumpPython(), ConfigToolBase.ConfigToolBase.getAllowedValues(), HiCoreTools.RestrictInputToAOD.getDefaultParameters(), trackTools.MakeAODTrackCandidates.getDefaultParameters(), metTools.AddMETCollection.getDefaultParameters(), HiCoreTools.RemoveMCMatching.getDefaultParameters(), jetTools.AddJetCollection.getDefaultParameters(), metUncertaintyTools.RunMEtUncertainties.getDefaultParameters(), trackTools.MakePATTrackCandidates.getDefaultParameters(), trigTools.SwitchOnTrigger.getDefaultParameters(), HiCoreTools.RemoveAllPATObjectsBut.getDefaultParameters(), HiCoreTools.RemoveSpecificPATObjects.getDefaultParameters(), trigTools.SwitchOnTriggerStandAlone.getDefaultParameters(), trackTools.MakeTrackCandidates.getDefaultParameters(), tauTools.AddTauCollection.getDefaultParameters(), trigTools.SwitchOnTriggerMatching.getDefaultParameters(), HiCoreTools.RemoveCleaning.getDefaultParameters(), HiCoreTools.AddCleaning.getDefaultParameters(), trigTools.SwitchOnTriggerMatchingStandAlone.getDefaultParameters(), trigTools.SwitchOnTriggerMatchEmbedding.getDefaultParameters(), jetTools.SwitchJetCollection.getDefaultParameters(), jetTools.AddJetID.getDefaultParameters(), jetTools.SetTagInfos.getDefaultParameters(), ConfigToolBase.ConfigToolBase.reset(), and ConfigToolBase.ConfigToolBase.setParameter().
|
staticprivate |
Definition at line 21 of file jetTools.py.
Referenced by trigTools.SwitchOnTrigger.toolCode(), trigTools.SwitchOnTriggerStandAlone.toolCode(), trigTools.SwitchOnTriggerMatching.toolCode(), trigTools.SwitchOnTriggerMatchingStandAlone.toolCode(), and trigTools.SwitchOnTriggerMatchEmbedding.toolCode().
|
staticprivate |
set up MET(Type1) correction modules
Definition at line 479 of file jetTools.py.
|
staticprivate |
Definition at line 481 of file jetTools.py.
|
staticprivate |
Definition at line 281 of file jetTools.py.
|
staticprivate |
Definition at line 291 of file jetTools.py.
|
staticprivate |
Definition at line 409 of file jetTools.py.
|
staticprivate |
Definition at line 236 of file jetTools.py.
|
staticprivate |
Definition at line 207 of file jetTools.py.
|
staticprivate |
Definition at line 228 of file jetTools.py.
|
staticprivate |
Definition at line 199 of file jetTools.py.
|
private |
initialization of the base class
add all parameters that should be known to the class set defaults
Definition at line 64 of file jetTools.py.
Referenced by metUncertaintyTools.RunMEtUncertainties.__init__(), HiCoreTools.RestrictInputToAOD.toolCode(), trackTools.MakeAODTrackCandidates.toolCode(), metTools.AddMETCollection.toolCode(), HiCoreTools.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(), and metUncertaintyTools.RunMEtUncertainties.toolCode().
|
staticprivate |
replace corresponding tags for pat jet production
modify new patJets collection accordingly adjust output module; these collections will be empty anyhow, but we do it to stay clean add jet correction factors if required by user check for the correct format determine type of jet constituents from jetSource; supported jet constituent types are calo, pf, jpt, for pf also particleflow is aloowed as part of the jetSource label, which might be used in CommonTools.ParticleFlow
Definition at line 398 of file jetTools.py.
|
static |
setup all required btagDiscriminators
Definition at line 358 of file jetTools.py.
|
static |
prepare setups for simple secondary vertex infos
prepare setups for transient tracks setup all required btagInfos : we give a dedicated treatment for all five different types of tagINfos here. A common treatment is possible but might require a more general approach anyway in coordination with the btaggin POG.
Definition at line 335 of file jetTools.py.
|
static |
switch jetCorrFactors off
Definition at line 520 of file jetTools.py.
|
static |
Definition at line 265 of file jetTools.py.
|
static |
Definition at line 266 of file jetTools.py.
|
static |
check whether L1Offset or L1FastJet is part of levels
configure module
we set this to True now as a L1 correction type should appear only once otherwise levels is miss configured
Definition at line 418 of file jetTools.py.
Referenced by argparse.ArgumentParser._get_option_tuples(), python.rootplot.argparse.ArgumentParser._get_option_tuples(), argparse.ArgumentParser._parse_known_args(), python.rootplot.argparse.ArgumentParser._parse_known_args(), argparse.ArgumentParser._parse_optional(), python.rootplot.argparse.ArgumentParser._parse_optional(), argparse.ArgumentParser._read_args_from_files(), python.rootplot.argparse.ArgumentParser._read_args_from_files(), argparse.ArgumentParser.add_subparsers(), python.rootplot.argparse.ArgumentParser.add_subparsers(), argparse.ArgumentParser.parse_args(), python.rootplot.argparse.ArgumentParser.parse_args(), argparse.ArgumentParser.parse_known_args(), and python.rootplot.argparse.ArgumentParser.parse_known_args().
|
static |
Definition at line 263 of file jetTools.py.
|
static |
Definition at line 262 of file jetTools.py.
|
static |
Definition at line 267 of file jetTools.py.
|
static |
modify new patJets collection accordingly
modify new patJets collection accordingly run btagging if required by user expand tagInfos to what is explicitely required by user + implicit requirements that come in from one or the other discriminator
Definition at line 311 of file jetTools.py.
|
static |
Definition at line 264 of file jetTools.py.
|
static |
Definition at line 314 of file jetTools.py.