CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes | Static Private Attributes
jetTools.UpdateJetCollection Class Reference
Inheritance diagram for jetTools.UpdateJetCollection:

Public Member Functions

def __call__ (self, process, labelName=None, postfix=None, btagPrefix=None, jetSource=None, pfCandidates=None, explicitJTA=None, pvSource=None, svSource=None, elSource=None, muSource=None, runIVF=None, tightBTagNTkHits=None, loadStdRecoBTag=None, svClustering=None, fatJets=None, groomedFatJets=None, algo=None, rParam=None, printWarning=None, jetCorrections=None, btagDiscriminators=None, btagInfos=None)
 
def __init__ (self)
 
def getDefaultParameters (self)
 
def toolCode (self, process)
 

Private Attributes

 _comment
 add comments More...
 
 _parameters
 initialization of the base class More...
 

Static Private Attributes

 _defaultParameters
 
 _label
 

Detailed Description

Tool to update a jet collection in your PAT Tuple (primarily intended for MiniAOD for which the default input argument values have been set).

Definition at line 1481 of file jetTools.py.

Constructor & Destructor Documentation

◆ __init__()

def jetTools.UpdateJetCollection.__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 1488 of file jetTools.py.

1488  def __init__(self):
1489  """
1490  Initialize elements of the class. Note that the tool needs to be derived from ConfigToolBase to be usable in the configEditor.
1491  """
1492 
1493  ConfigToolBase.__init__(self)
1494 
1495  self.addParameter(self._defaultParameters,'labelName', '', "Label name of the new patJet collection.", str)
1496  self.addParameter(self._defaultParameters,'postfix','', "Postfix from usePF2PAT.", str)
1497  self.addParameter(self._defaultParameters,'btagPrefix','', "Prefix to be added to b-tag discriminator and TagInfo names", str)
1498  self.addParameter(self._defaultParameters,'jetSource','', "Label of the input collection from which the new patJet collection should be created", cms.InputTag)
1499  self.addParameter(self._defaultParameters,'pfCandidates',cms.InputTag('packedPFCandidates'), "Label of the input collection for candidatecandidatese used in b-tagging", cms.InputTag)
1500  self.addParameter(self._defaultParameters,'explicitJTA', False, "Use explicit jet-track association")
1501  self.addParameter(self._defaultParameters,'pvSource',cms.InputTag('offlineSlimmedPrimaryVertices'), "Label of the input collection for primary vertices used in b-tagging", cms.InputTag)
1502  self.addParameter(self._defaultParameters,'svSource',cms.InputTag('slimmedSecondaryVertices'), "Label of the input collection for IVF vertices used in b-tagging", cms.InputTag)
1503  self.addParameter(self._defaultParameters,'elSource',cms.InputTag('slimmedElectrons'), "Label of the input collection for electrons used in b-tagging", cms.InputTag)
1504  self.addParameter(self._defaultParameters,'muSource',cms.InputTag('slimmedMuons'), "Label of the input collection for muons used in b-tagging", cms.InputTag)
1505  self.addParameter(self._defaultParameters,'runIVF', False, "Re-run IVF secondary vertex reconstruction")
1506  self.addParameter(self._defaultParameters,'tightBTagNTkHits', False, "Enable legacy tight b-tag track selection")
1507  self.addParameter(self._defaultParameters,'loadStdRecoBTag', False, "Load the standard reconstruction b-tagging modules")
1508  self.addParameter(self._defaultParameters,'svClustering', False, "Secondary vertices ghost-associated to jets using jet clustering (mostly intended for subjets)")
1509  self.addParameter(self._defaultParameters,'fatJets', cms.InputTag(''), "Fat jet collection used for secondary vertex clustering", cms.InputTag)
1510  self.addParameter(self._defaultParameters,'groomedFatJets', cms.InputTag(''), "Groomed fat jet collection used for secondary vertex clustering", cms.InputTag)
1511  self.addParameter(self._defaultParameters,'algo', 'AK', "Jet algorithm of the input collection from which the new patJet collection should be created")
1512  self.addParameter(self._defaultParameters,'rParam', 0.4, "Jet size (distance parameter R used in jet clustering)")
1513  self.addParameter(self._defaultParameters,'printWarning', True, "To be use as False in production to reduce log size")
1514  self.addParameter(self._defaultParameters,'jetCorrections',None, "Add all relevant information about jet energy corrections that you want to be added to your new patJet \
1515  collection. The format has to be given in a python tuple of type: (\'AK4Calo\',[\'L2Relative\', \'L3Absolute\'], patMet). Here the first argument corresponds to the payload \
1516  in the CMS Conditions database for the given jet collection; the second argument corresponds to the jet energy correction levels that you want to be embedded into your \
1517  new patJet collection. This should be given as a list of strings. Available values are L1Offset, L1FastJet, L1JPTOffset, L2Relative, L3Absolute, L5Falvour, L7Parton; the \
1518  third argument indicates whether MET(Type1/2) corrections should be applied corresponding to the new patJetCollection. If so a new patMet collection will be added to your PAT \
1519  Tuple in addition to the raw patMet. This new patMet collection will have the MET(Type1/2) corrections applied. The argument can have the following types: \'type-1\' for \
1520  type-1 corrected MET; \'type-2\' for type-1 plus type-2 corrected MET; \'\' or \'none\' if no further MET corrections should be applied to your MET. The arguments \'type-1\' \
1521  and \'type-2\' are not case sensitive.", tuple, acceptNoneValue=True)
1522  self.addParameter(self._defaultParameters,'btagDiscriminators',['None'], "If you are interested in btagging, in most cases just the labels of the btag discriminators that \
1523  you are interested in is all relevant information that you need for a high level analysis. Add here all btag discriminators, that you are interested in as a list of strings. \
1524  If this list is empty no btag discriminator information will be added to your new patJet collection.", allowedValues=(list(set().union(supportedBtagDiscr.keys(),supportedMetaDiscr.keys()))),Type=list)
1525  self.addParameter(self._defaultParameters,'btagInfos',['None'], "The btagInfos objects contain all relevant information from which all discriminators of a certain \
1526  type have been calculated. You might be interested in keeping this information for low level tests or to re-calculate some discriminators from hand. Note that this information \
1527  on the one hand can be very space consuming and that it is not necessary to access the pre-calculated btag discriminator information that has been derived from it. Only in very \
1528  special cases the btagInfos might really be needed in your analysis. Add here all btagInfos, that you are interested in as a list of strings. If this list is empty no btagInfos \
1529  will be added to your new patJet collection.", allowedValues=supportedBtagInfos,Type=list)
1530  self.addParameter(self._defaultParameters,'outputModules',['out'],"Add a list of all output modules to which you would like the new jet collection to be added. Usually this is \
1531  just one single output module with name \'out\', which corresponds also the default configuration of the tool. There is cases though where you might want to add this collection \
1532  to more than one output module.")
1533 
1534  self._parameters=copy.deepcopy(self._defaultParameters)
1535 
1536  self._comment = "This is a tool to add more patJet collectinos to your PAT Tuple or to re-configure the default collection. You can add and embed additional information like jet\
1537  energy correction factors, btag information and generator match information to the new patJet collection depending on the parameters that you pass on to this function. Consult \
1538  the descriptions of each parameter for more information."
1539 

References heavyIonTools.ConfigureHeavyIons._defaultParameters, coreTools.RunOnData._defaultParameters, heavyIonTools.ProductionDefaults._defaultParameters, cmsswVersionTools.PickRelValInputFiles._defaultParameters, coreTools.RemoveMCMatching._defaultParameters, heavyIonTools.SelectionDefaults._defaultParameters, heavyIonTools.DisbaleMonteCarloDeps._defaultParameters, jetTools.AddJetCollection._defaultParameters, jetTools.SwitchJetCollection._defaultParameters, jetTools.UpdateJetCollection._defaultParameters, root::helper::RootFunctionAdapter< F, args >.addParameter(), root::helper::RootFunctionHelper< F, args, Tag >.addParameter(), ParameterMgr.addParameter(), fit::RootMinuit< Function >.addParameter(), DropBoxMetadata::Parameters.addParameter(), Python11ParameterSet.addParameter(), cmspython3::Python11ParameterSet.addParameter(), l1t::TriggerSystem.addParameter(), LutXml.addParameter(), ConfigToolBase.ConfigToolBase.addParameter(), edm::ParameterSet.addParameter(), and list().

Member Function Documentation

◆ __call__()

def jetTools.UpdateJetCollection.__call__ (   self,
  process,
  labelName = None,
  postfix = None,
  btagPrefix = None,
  jetSource = None,
  pfCandidates = None,
  explicitJTA = None,
  pvSource = None,
  svSource = None,
  elSource = None,
  muSource = None,
  runIVF = None,
  tightBTagNTkHits = None,
  loadStdRecoBTag = None,
  svClustering = None,
  fatJets = None,
  groomedFatJets = None,
  algo = None,
  rParam = None,
  printWarning = None,
  jetCorrections = None,
  btagDiscriminators = None,
  btagInfos = 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 1546 of file jetTools.py.

1546  def __call__(self,process,labelName=None,postfix=None,btagPrefix=None,jetSource=None,pfCandidates=None,explicitJTA=None,pvSource=None,svSource=None,elSource=None,muSource=None,runIVF=None,tightBTagNTkHits=None,loadStdRecoBTag=None,svClustering=None,fatJets=None,groomedFatJets=None,algo=None,rParam=None,printWarning=None,jetCorrections=None,btagDiscriminators=None,btagInfos=None):
1547  """
1548  Function call wrapper. This will check the parameters and call the actual implementation that
1549  can be found in toolCode via the base class function apply.
1550  """
1551  if labelName is None:
1552  labelName=self._defaultParameters['labelName'].value
1553  self.setParameter('labelName', labelName)
1554  if postfix is None:
1555  postfix=self._defaultParameters['postfix'].value
1556  self.setParameter('postfix', postfix)
1557  if btagPrefix is None:
1558  btagPrefix=self._defaultParameters['btagPrefix'].value
1559  self.setParameter('btagPrefix', btagPrefix)
1560  if jetSource is None:
1561  jetSource=self._defaultParameters['jetSource'].value
1562  self.setParameter('jetSource', jetSource)
1563  if pfCandidates is None:
1564  pfCandidates=self._defaultParameters['pfCandidates'].value
1565  self.setParameter('pfCandidates', pfCandidates)
1566  if explicitJTA is None:
1567  explicitJTA=self._defaultParameters['explicitJTA'].value
1568  self.setParameter('explicitJTA', explicitJTA)
1569  if pvSource is None:
1570  pvSource=self._defaultParameters['pvSource'].value
1571  self.setParameter('pvSource', pvSource)
1572  if svSource is None:
1573  svSource=self._defaultParameters['svSource'].value
1574  self.setParameter('svSource', svSource)
1575  if elSource is None:
1576  elSource=self._defaultParameters['elSource'].value
1577  self.setParameter('elSource', elSource)
1578  if muSource is None:
1579  muSource=self._defaultParameters['muSource'].value
1580  self.setParameter('muSource', muSource)
1581  if runIVF is None:
1582  runIVF=self._defaultParameters['runIVF'].value
1583  self.setParameter('runIVF', runIVF)
1584  if tightBTagNTkHits is None:
1585  tightBTagNTkHits=self._defaultParameters['tightBTagNTkHits'].value
1586  self.setParameter('tightBTagNTkHits', tightBTagNTkHits)
1587  if loadStdRecoBTag is None:
1588  loadStdRecoBTag=self._defaultParameters['loadStdRecoBTag'].value
1589  self.setParameter('loadStdRecoBTag', loadStdRecoBTag)
1590  if svClustering is None:
1591  svClustering=self._defaultParameters['svClustering'].value
1592  self.setParameter('svClustering', svClustering)
1593  if fatJets is None:
1594  fatJets=self._defaultParameters['fatJets'].value
1595  self.setParameter('fatJets', fatJets)
1596  if groomedFatJets is None:
1597  groomedFatJets=self._defaultParameters['groomedFatJets'].value
1598  self.setParameter('groomedFatJets', groomedFatJets)
1599  if algo is None:
1600  algo=self._defaultParameters['algo'].value
1601  self.setParameter('algo', algo)
1602  if rParam is None:
1603  rParam=self._defaultParameters['rParam'].value
1604  self.setParameter('rParam', rParam)
1605  if printWarning is None:
1606  printWarning=self._defaultParameters['printWarning'].value
1607  self.setParameter('printWarning', printWarning)
1608  if jetCorrections is None:
1609  jetCorrections=self._defaultParameters['jetCorrections'].value
1610  self.setParameter('jetCorrections', jetCorrections)
1611  if btagDiscriminators is None:
1612  btagDiscriminators=self._defaultParameters['btagDiscriminators'].value
1613  self.setParameter('btagDiscriminators', btagDiscriminators)
1614  if btagInfos is None:
1615  btagInfos=self._defaultParameters['btagInfos'].value
1616  self.setParameter('btagInfos', btagInfos)
1617  self.apply(process)
1618 

References heavyIonTools.ConfigureHeavyIons._defaultParameters, coreTools.RunOnData._defaultParameters, heavyIonTools.ProductionDefaults._defaultParameters, cmsswVersionTools.PickRelValInputFiles._defaultParameters, coreTools.RemoveMCMatching._defaultParameters, heavyIonTools.SelectionDefaults._defaultParameters, heavyIonTools.DisbaleMonteCarloDeps._defaultParameters, jetTools.AddJetCollection._defaultParameters, jetTools.SwitchJetCollection._defaultParameters, jetTools.UpdateJetCollection._defaultParameters, SignedImpactParameter3D.apply(), SignedDecayLength3D.apply(), SignedTransverseImpactParameter.apply(), gen::PhotosInterfaceBase.apply(), SurveyParameters.apply(), DummyOOTPileupCorrection.apply(), MatrixReader.MatrixReader.apply, gen::PhotosppInterface.apply(), gen::PhotosInterface.apply(), FWPSetCellEditor.apply(), BeamSpotAlignmentParameters.apply(), RigidBodyAlignmentParameters.apply(), FWGUIEventFilter.apply(), DeviationsFromFileSensor2D.apply(), AlignmentParameters.apply(), ConfigToolBase.ConfigToolBase.apply(), BowedSurfaceAlignmentParameters.apply(), OOTPileupCorrData.apply(), AbsOOTPileupCorrection.apply(), TwoBowedSurfacesAlignmentParameters.apply(), reco::modules::TrackerTrackHitFilter::Rule.apply(), cmsswVersionTools.PickRelValInputFiles.apply(), models.RegExp.apply(), npstat::ArrayND< Numeric >.apply(), npstat::ArrayND< Num1, Len1, Dim1 >.apply(), npstat::ArrayND< Numeric, StackLen, StackDim >.apply(), Config.ProcessModifier.apply(), PedeReader.setParameter(), QIE8Simulator.setParameter(), AbsElectronicODERHS.setParameter(), SiStripLorentzAngleCalibration.setParameter(), IntegratedCalibrationBase.setParameter(), SiPixelLorentzAngleCalibration.setParameter(), SiStripBackplaneCalibration.setParameter(), fit::RootMinuit< Function >.setParameter(), and ConfigToolBase.ConfigToolBase.setParameter().

◆ getDefaultParameters()

def jetTools.UpdateJetCollection.getDefaultParameters (   self)

◆ toolCode()

def jetTools.UpdateJetCollection.toolCode (   self,
  process 
)
Tool code implementation

Definition at line 1619 of file jetTools.py.

1619  def toolCode(self, process):
1620  """
1621  Tool code implementation
1622  """
1623 
1624  labelName=self._parameters['labelName'].value
1625  postfix=self._parameters['postfix'].value
1626  btagPrefix=self._parameters['btagPrefix'].value
1627  jetSource=self._parameters['jetSource'].value
1628  pfCandidates=self._parameters['pfCandidates'].value
1629  explicitJTA=self._parameters['explicitJTA'].value
1630  pvSource=self._parameters['pvSource'].value
1631  svSource=self._parameters['svSource'].value
1632  elSource=self._parameters['elSource'].value
1633  muSource=self._parameters['muSource'].value
1634  runIVF=self._parameters['runIVF'].value
1635  tightBTagNTkHits=self._parameters['tightBTagNTkHits'].value
1636  loadStdRecoBTag=self._parameters['loadStdRecoBTag'].value
1637  svClustering=self._parameters['svClustering'].value
1638  fatJets=self._parameters['fatJets'].value
1639  groomedFatJets=self._parameters['groomedFatJets'].value
1640  algo=self._parameters['algo'].value
1641  rParam=self._parameters['rParam'].value
1642  printWarning=self._parameters['printWarning'].value
1643  jetCorrections=self._parameters['jetCorrections'].value
1644  btagDiscriminators=list(self._parameters['btagDiscriminators'].value)
1645  btagInfos=list(self._parameters['btagInfos'].value)
1646 
1647 
1648  knownModules = process.producerNames().split()
1649 
1650  if btagDiscriminators.count('None')>0:
1651  btagDiscriminators.remove('None')
1652  if btagInfos.count('None')>0:
1653  btagInfos.remove('None')
1654  bTagging=(len(btagDiscriminators)>0 or len(btagInfos)>0)
1655 
1656 
1659  _labelName=labelName[:1].upper()+labelName[1:]
1660 
1661 
1662  _algo=''
1663  for x in ["ak", "ca", "kt"]:
1664  if x in algo.lower():
1665  _algo=supportedJetAlgos[x]
1666  break
1667  if _algo=='':
1669 
1670  task = getPatAlgosToolsTask(process)
1671 
1672 
1673  from PhysicsTools.PatAlgos.producersLayer1.jetUpdater_cfi import updatedPatJets
1674  if 'updatedPatJets'+_labelName+postfix in knownModules :
1675  _newPatJets=getattr(process, 'updatedPatJets'+_labelName+postfix)
1676  _newPatJets.jetSource=jetSource
1677  else :
1678  addToProcessAndTask('updatedPatJets'+_labelName+postfix,
1679  updatedPatJets.clone(jetSource=jetSource,
1680  printWarning=printWarning), process, task)
1681  _newPatJets=getattr(process, 'updatedPatJets'+_labelName+postfix)
1682  knownModules.append('updatedPatJets'+_labelName+postfix)
1683 
1684  from PhysicsTools.PatAlgos.selectionLayer1.jetSelector_cfi import selectedPatJets
1685  if 'selectedUpdatedPatJets'+_labelName+postfix in knownModules :
1686  _newSelectedPatJets=getattr(process, 'selectedUpdatedPatJets'+_labelName+postfix)
1687  _newSelectedPatJets.src='updatedPatJets'+_labelName+postfix
1688  else :
1689  addToProcessAndTask('selectedUpdatedPatJets'+_labelName+postfix,
1690  selectedPatJets.clone(src='updatedPatJets'+_labelName+postfix),
1691  process, task)
1692  knownModules.append('selectedUpdatedPatJets'+_labelName+postfix)
1693 
1694 
1695  if (bTagging):
1696  if printWarning:
1697  sys.stderr.write("**************************************************************\n")
1698  sys.stderr.write("b tagging needs to be run on uncorrected jets. Hence, the JECs\n")
1699  sys.stderr.write("will first be undone for 'updatedPatJets%s' and then applied to\n" % (_labelName+postfix) )
1700  sys.stderr.write("'updatedPatJetsTransientCorrected%s'.\n" % (_labelName+postfix) )
1701  sys.stderr.write("**************************************************************\n")
1702  _jetSource = cms.InputTag('updatedPatJets'+_labelName+postfix)
1703 
1704  self(
1705  process,
1706  labelName = ('TransientCorrected'+_labelName),
1707  jetSource = _jetSource,
1708  pfCandidates=pfCandidates,
1709  explicitJTA=explicitJTA,
1710  pvSource=pvSource,
1711  svSource=svSource,
1712  elSource=elSource,
1713  muSource=muSource,
1714  runIVF=runIVF,
1715  tightBTagNTkHits=tightBTagNTkHits,
1716  loadStdRecoBTag=loadStdRecoBTag,
1717  svClustering=svClustering,
1718  fatJets=fatJets,
1719  groomedFatJets=groomedFatJets,
1720  algo=algo,
1721  rParam=rParam,
1722  jetCorrections = jetCorrections,
1723  btagPrefix = btagPrefix,
1724  postfix = postfix
1725  )
1726 
1727  _patJets=getattr(process, 'updatedPatJetsTransientCorrected'+_labelName+postfix)
1728  setupBTagging(process, _jetSource, pfCandidates, explicitJTA, pvSource, svSource, elSource, muSource, runIVF, tightBTagNTkHits, loadStdRecoBTag, svClustering, fatJets, groomedFatJets,
1729  _algo, rParam, btagDiscriminators, btagInfos, _patJets, _labelName, btagPrefix, postfix)
1730 
1731  _newSelectedPatJets=getattr(process, 'selectedUpdatedPatJets'+_labelName+postfix)
1732  _newSelectedPatJets.src='updatedPatJetsTransientCorrected'+_labelName+postfix
1733 
1734  delattr(process, 'selectedUpdatedPatJetsTransientCorrected'+_labelName+postfix)
1735  else:
1736  _newPatJets.addBTagInfo = False
1737  _newPatJets.addTagInfos = False
1738 
1739 
1740  if (jetCorrections != None or bTagging):
1741 
1742  checkJetCorrectionsFormat(jetCorrections)
1743 
1744  if jetCorrections[2].lower() != 'none' and jetCorrections[2] != '':
1745  sys.stderr.write("-------------------------------------------------------------------\n")
1746  sys.stderr.write(" Warning: MET correction was set to " + jetCorrections[2] + " but\n")
1747  sys.stderr.write(" will be ignored. Please set it to \"None\" to avoid\n")
1748  sys.stderr.write(" getting this warning.\n")
1749  sys.stderr.write("-------------------------------------------------------------------\n")
1750  jetCorrectionsList = list(jetCorrections)
1751  jetCorrectionsList[2] = 'None'
1752  jetCorrections = tuple(jetCorrectionsList)
1753 
1754  if (bTagging):
1755  jetCorrections = ('AK4PFchs', cms.vstring([]), 'None')
1756 
1757  setupJetCorrections(process, knownModules, jetCorrections, jetSource, pvSource, _newPatJets, _labelName, postfix)
1758  else:
1759 
1760  _newPatJets.addJetCorrFactors=False
1761 
1762 updateJetCollection=UpdateJetCollection()
1763 
1764 

References heavyIonTools.ConfigureHeavyIons._parameters, coreTools.RunOnData._parameters, heavyIonTools.ProductionDefaults._parameters, ConfigToolBase.ConfigToolBase._parameters, TAbsFitConstraint._parameters, TAbsFitParticle._parameters, cmsswVersionTools.PickRelValInputFiles._parameters, coreTools.RemoveMCMatching._parameters, heavyIonTools.SelectionDefaults._parameters, heavyIonTools.DisbaleMonteCarloDeps._parameters, jetTools.AddJetCollection._parameters, jetTools.SwitchJetCollection._parameters, jetTools.UpdateJetCollection._parameters, helpers.addToProcessAndTask(), jetTools.checkJetCorrectionsFormat(), helpers.getPatAlgosToolsTask(), list(), jetTools.setupBTagging(), jetTools.setupJetCorrections(), cms::dd.split(), jetTools.unsupportedJetAlgorithm(), and pileupCalc.upper.

Member Data Documentation

◆ _comment

jetTools.UpdateJetCollection._comment
private

add comments

Definition at line 1536 of file jetTools.py.

◆ _defaultParameters

jetTools.UpdateJetCollection._defaultParameters
staticprivate

Definition at line 1486 of file jetTools.py.

Referenced by trackTools.MakeAODTrackCandidates.__call__(), runJetUncertainties.RunJetUncertainties.__call__(), metTools.AddMETCollection.__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.UpdateJetCollection.__call__(), jetTools.AddJetID.__call__(), jetTools.SetTagInfos.__call__(), trackTools.MakeAODTrackCandidates.__init__(), metTools.AddMETCollection.__init__(), runJetUncertainties.RunJetUncertainties.__init__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.__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.UpdateJetCollection.__init__(), jetTools.AddJetID.__init__(), jetTools.SetTagInfos.__init__(), ConfigToolBase.ConfigToolBase.dumpPython(), ConfigToolBase.ConfigToolBase.getAllowedValues(), trackTools.MakeAODTrackCandidates.getDefaultParameters(), metTools.AddMETCollection.getDefaultParameters(), trackTools.MakePATTrackCandidates.getDefaultParameters(), trigTools.SwitchOnTrigger.getDefaultParameters(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.getDefaultParameters(), trigTools.SwitchOnTriggerStandAlone.getDefaultParameters(), tauTools.AddTauCollection.getDefaultParameters(), trackTools.MakeTrackCandidates.getDefaultParameters(), trigTools.SwitchOnTriggerMatching.getDefaultParameters(), trigTools.SwitchOnTriggerMatchingStandAlone.getDefaultParameters(), trigTools.SwitchOnTriggerMatchEmbedding.getDefaultParameters(), jetTools.UpdateJetCollection.getDefaultParameters(), jetTools.AddJetID.getDefaultParameters(), jetTools.SetTagInfos.getDefaultParameters(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.initializeInputTag(), ConfigToolBase.ConfigToolBase.reset(), and ConfigToolBase.ConfigToolBase.setParameter().

◆ _label

jetTools.UpdateJetCollection._label
staticprivate

◆ _parameters

jetTools.UpdateJetCollection._parameters
private

initialization of the base class

add all parameters that should be known to the class set defaults

Definition at line 1534 of file jetTools.py.

Referenced by runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.ak4JetReclustering(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.createMVAMETModule(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.createSmearedJetModule(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.extractMET(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.getCorrectedMET(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.getMETUncertainties(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.getUnclusteredVariationsForMVAMET(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.getVariations(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.jetCleaning(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.jetConfiguration(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.miniAODConfiguration(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.miniAODConfigurationPost(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.recomputeRawMetFromPfcs(), trackTools.MakeAODTrackCandidates.toolCode(), metTools.AddMETCollection.toolCode(), runJetUncertainties.RunJetUncertainties.toolCode(), trigTools.SwitchOnTrigger.toolCode(), trackTools.MakePATTrackCandidates.toolCode(), trigTools.SwitchOnTriggerStandAlone.toolCode(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.toolCode(), tauTools.AddTauCollection.toolCode(), trackTools.MakeTrackCandidates.toolCode(), trigTools.SwitchOnTriggerMatching.toolCode(), trigTools.SwitchOnTriggerMatchingStandAlone.toolCode(), trigTools.SwitchOnTriggerMatchEmbedding.toolCode(), jetTools.UpdateJetCollection.toolCode(), jetTools.AddJetID.toolCode(), jetTools.SetTagInfos.toolCode(), and runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.updateJECs().

helpers.getPatAlgosToolsTask
def getPatAlgosToolsTask(process)
Definition: helpers.py:14
jetTools.checkJetCorrectionsFormat
def checkJetCorrectionsFormat(jetCorrections)
Definition: jetTools.py:18
jetSelector_cfi
cms::dd::split
std::vector< std::string_view > split(std::string_view, const char *)
jetTools.setupJetCorrections
def setupJetCorrections(process, knownModules, jetCorrections, jetSource, pvSource, patJets, labelName, postfix)
Definition: jetTools.py:26
jetTools.unsupportedJetAlgorithm
def unsupportedJetAlgorithm(obj)
Definition: jetTools.py:1877
jetUpdater_cfi
jetTools.setupBTagging
def setupBTagging(process, jetSource, pfCandidates, explicitJTA, pvSource, svSource, elSource, muSource, runIVF, tightBTagNTkHits, loadStdRecoBTag, svClustering, fatJets, groomedFatJets, algo, rParam, btagDiscriminators, btagInfos, patJets, labelName, btagPrefix, postfix)
Definition: jetTools.py:238
pileupCalc.upper
upper
Definition: pileupCalc.py:214
list
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*", "!HLTx*" if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL. It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of "!*" before the partial wildcard feature was incorporated). Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run
helpers.addToProcessAndTask
def addToProcessAndTask(label, module, process, task)
Definition: helpers.py:29