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, sortByPt=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 1558 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 1565 of file jetTools.py.

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(), l1t::TriggerSystem.addParameter(), LutXml.addParameter(), ConfigToolBase.ConfigToolBase.addParameter(), and edm::ParameterSet.addParameter().

1565  def __init__(self):
1566  """
1567  Initialize elements of the class. Note that the tool needs to be derived from ConfigToolBase to be usable in the configEditor.
1568  """
1569 
1570  ConfigToolBase.__init__(self)
1571 
1572  self.addParameter(self._defaultParameters,'labelName', '', "Label name of the new patJet collection.", str)
1573  self.addParameter(self._defaultParameters,'postfix','', "Postfix from usePF2PAT.", str)
1574  self.addParameter(self._defaultParameters,'btagPrefix','', "Prefix to be added to b-tag discriminator and TagInfo names", str)
1575  self.addParameter(self._defaultParameters,'jetSource','', "Label of the input collection from which the new patJet collection should be created", cms.InputTag)
1576  self.addParameter(self._defaultParameters,'pfCandidates',cms.InputTag('packedPFCandidates'), "Label of the input collection for candidatecandidatese used in b-tagging", cms.InputTag)
1577  self.addParameter(self._defaultParameters,'explicitJTA', False, "Use explicit jet-track association")
1578  self.addParameter(self._defaultParameters,'pvSource',cms.InputTag('offlineSlimmedPrimaryVertices'), "Label of the input collection for primary vertices used in b-tagging", cms.InputTag)
1579  self.addParameter(self._defaultParameters,'svSource',cms.InputTag('slimmedSecondaryVertices'), "Label of the input collection for IVF vertices used in b-tagging", cms.InputTag)
1580  self.addParameter(self._defaultParameters,'elSource',cms.InputTag('slimmedElectrons'), "Label of the input collection for electrons used in b-tagging", cms.InputTag)
1581  self.addParameter(self._defaultParameters,'muSource',cms.InputTag('slimmedMuons'), "Label of the input collection for muons used in b-tagging", cms.InputTag)
1582  self.addParameter(self._defaultParameters,'runIVF', False, "Re-run IVF secondary vertex reconstruction")
1583  self.addParameter(self._defaultParameters,'tightBTagNTkHits', False, "Enable legacy tight b-tag track selection")
1584  self.addParameter(self._defaultParameters,'loadStdRecoBTag', False, "Load the standard reconstruction b-tagging modules")
1585  self.addParameter(self._defaultParameters,'svClustering', False, "Secondary vertices ghost-associated to jets using jet clustering (mostly intended for subjets)")
1586  self.addParameter(self._defaultParameters,'fatJets', cms.InputTag(''), "Fat jet collection used for secondary vertex clustering", cms.InputTag)
1587  self.addParameter(self._defaultParameters,'groomedFatJets', cms.InputTag(''), "Groomed fat jet collection used for secondary vertex clustering", cms.InputTag)
1588  self.addParameter(self._defaultParameters,'algo', 'AK', "Jet algorithm of the input collection from which the new patJet collection should be created")
1589  self.addParameter(self._defaultParameters,'rParam', 0.4, "Jet size (distance parameter R used in jet clustering)")
1590  self.addParameter(self._defaultParameters,'sortByPt', True, "Set to False to not modify incoming jet order")
1591  self.addParameter(self._defaultParameters,'printWarning', True, "To be use as False in production to reduce log size")
1592  self.addParameter(self._defaultParameters,'jetCorrections',None, "Add all relevant information about jet energy corrections that you want to be added to your new patJet \
1593  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 \
1594  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 \
1595  new patJet collection. This should be given as a list of strings. Available values are L1Offset, L1FastJet, L1JPTOffset, L2Relative, L3Absolute, L5Falvour, L7Parton; the \
1596  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 \
1597  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 \
1598  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\' \
1599  and \'type-2\' are not case sensitive.", tuple, acceptNoneValue=True)
1600  self.addParameter(self._defaultParameters,'btagDiscriminators',['None'], "If you are interested in btagging, in most cases just the labels of the btag discriminators that \
1601  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. \
1602  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)
1603  self.addParameter(self._defaultParameters,'btagInfos',['None'], "The btagInfos objects contain all relevant information from which all discriminators of a certain \
1604  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 \
1605  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 \
1606  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 \
1607  will be added to your new patJet collection.", allowedValues=supportedBtagInfos,Type=list)
1608  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 \
1609  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 \
1610  to more than one output module.")
1611 
1612  self._parameters=copy.deepcopy(self._defaultParameters)
1613 
1614  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\
1615  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 \
1616  the descriptions of each parameter for more information."
1617 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

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,
  sortByPt = 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 1624 of file jetTools.py.

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(), ProcessAcceleratorCUDA.ProcessAcceleratorCUDA.apply(), ProcessAcceleratorROCm.ProcessAcceleratorROCm.apply(), gen::PhotosInterfaceBase.apply(), SurveyParameters.apply(), DummyOOTPileupCorrection.apply(), MatrixReader.MatrixReader.apply, gen::PhotosppInterface.apply(), FWPSetCellEditor.apply(), BeamSpotAlignmentParameters.apply(), RigidBodyAlignmentParameters.apply(), FWGUIEventFilter.apply(), DeviationsFromFileSensor2D.apply(), AlignmentParameters.apply(), ConfigToolBase.ConfigToolBase.apply(), BowedSurfaceAlignmentParameters.apply(), OOTPileupCorrData.apply(), ProcessAcceleratorAlpaka.ProcessAcceleratorAlpaka.apply(), AbsOOTPileupCorrection.apply(), TwoBowedSurfacesAlignmentParameters.apply(), reco::modules::TrackerTrackHitFilter::Rule.apply(), cmsswVersionTools.PickRelValInputFiles.apply(), models.RegExp.apply(), npstat::ArrayND< Numeric, StackLen, StackDim >.apply(), npstat::ArrayND< Numeric >.apply(), Config.ProcessModifier.apply(), Config.ProcessAccelerator.apply(), Config.ProcessAcceleratorTest.apply(), Config.ProcessAcceleratorTest2.apply(), HGCalCassette.setParameter(), PedeReader.setParameter(), QIE8Simulator.setParameter(), AbsElectronicODERHS.setParameter(), SiStripLorentzAngleCalibration.setParameter(), IntegratedCalibrationBase.setParameter(), SiPixelLorentzAngleCalibration.setParameter(), SiStripBackplaneCalibration.setParameter(), fit::RootMinuit< Function >.setParameter(), and ConfigToolBase.ConfigToolBase.setParameter().

1624  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,sortByPt=None,printWarning=None,jetCorrections=None,btagDiscriminators=None,btagInfos=None):
1625  """
1626  Function call wrapper. This will check the parameters and call the actual implementation that
1627  can be found in toolCode via the base class function apply.
1628  """
1629  if labelName is None:
1630  labelName=self._defaultParameters['labelName'].value
1631  self.setParameter('labelName', labelName)
1632  if postfix is None:
1633  postfix=self._defaultParameters['postfix'].value
1634  self.setParameter('postfix', postfix)
1635  if btagPrefix is None:
1636  btagPrefix=self._defaultParameters['btagPrefix'].value
1637  self.setParameter('btagPrefix', btagPrefix)
1638  if jetSource is None:
1639  jetSource=self._defaultParameters['jetSource'].value
1640  self.setParameter('jetSource', jetSource)
1641  if pfCandidates is None:
1642  pfCandidates=self._defaultParameters['pfCandidates'].value
1643  self.setParameter('pfCandidates', pfCandidates)
1644  if explicitJTA is None:
1645  explicitJTA=self._defaultParameters['explicitJTA'].value
1646  self.setParameter('explicitJTA', explicitJTA)
1647  if pvSource is None:
1648  pvSource=self._defaultParameters['pvSource'].value
1649  self.setParameter('pvSource', pvSource)
1650  if svSource is None:
1651  svSource=self._defaultParameters['svSource'].value
1652  self.setParameter('svSource', svSource)
1653  if elSource is None:
1654  elSource=self._defaultParameters['elSource'].value
1655  self.setParameter('elSource', elSource)
1656  if muSource is None:
1657  muSource=self._defaultParameters['muSource'].value
1658  self.setParameter('muSource', muSource)
1659  if runIVF is None:
1660  runIVF=self._defaultParameters['runIVF'].value
1661  self.setParameter('runIVF', runIVF)
1662  if tightBTagNTkHits is None:
1663  tightBTagNTkHits=self._defaultParameters['tightBTagNTkHits'].value
1664  self.setParameter('tightBTagNTkHits', tightBTagNTkHits)
1665  if loadStdRecoBTag is None:
1666  loadStdRecoBTag=self._defaultParameters['loadStdRecoBTag'].value
1667  self.setParameter('loadStdRecoBTag', loadStdRecoBTag)
1668  if svClustering is None:
1669  svClustering=self._defaultParameters['svClustering'].value
1670  self.setParameter('svClustering', svClustering)
1671  if fatJets is None:
1672  fatJets=self._defaultParameters['fatJets'].value
1673  self.setParameter('fatJets', fatJets)
1674  if groomedFatJets is None:
1675  groomedFatJets=self._defaultParameters['groomedFatJets'].value
1676  self.setParameter('groomedFatJets', groomedFatJets)
1677  if algo is None:
1678  algo=self._defaultParameters['algo'].value
1679  self.setParameter('algo', algo)
1680  if rParam is None:
1681  rParam=self._defaultParameters['rParam'].value
1682  self.setParameter('rParam', rParam)
1683  if sortByPt is None:
1684  sortByPt=self._defaultParameters['sortByPt'].value
1685  self.setParameter('sortByPt', sortByPt)
1686  if printWarning is None:
1687  printWarning=self._defaultParameters['printWarning'].value
1688  self.setParameter('printWarning', printWarning)
1689  if jetCorrections is None:
1690  jetCorrections=self._defaultParameters['jetCorrections'].value
1691  self.setParameter('jetCorrections', jetCorrections)
1692  if btagDiscriminators is None:
1693  btagDiscriminators=self._defaultParameters['btagDiscriminators'].value
1694  self.setParameter('btagDiscriminators', btagDiscriminators)
1695  if btagInfos is None:
1696  btagInfos=self._defaultParameters['btagInfos'].value
1697  self.setParameter('btagInfos', btagInfos)
1698  self.apply(process)
1699 

◆ getDefaultParameters()

def jetTools.UpdateJetCollection.getDefaultParameters (   self)

◆ toolCode()

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

Definition at line 1700 of file jetTools.py.

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(), jetTools.setupBTagging(), jetTools.setupJetCorrections(), submitPVValidationJobs.split(), mkLumiAveragedPlots.tuple, and jetTools.unsupportedJetAlgorithm().

1700  def toolCode(self, process):
1701  """
1702  Tool code implementation
1703  """
1704 
1705  labelName=self._parameters['labelName'].value
1706  postfix=self._parameters['postfix'].value
1707  btagPrefix=self._parameters['btagPrefix'].value
1708  jetSource=self._parameters['jetSource'].value
1709  pfCandidates=self._parameters['pfCandidates'].value
1710  explicitJTA=self._parameters['explicitJTA'].value
1711  pvSource=self._parameters['pvSource'].value
1712  svSource=self._parameters['svSource'].value
1713  elSource=self._parameters['elSource'].value
1714  muSource=self._parameters['muSource'].value
1715  runIVF=self._parameters['runIVF'].value
1716  tightBTagNTkHits=self._parameters['tightBTagNTkHits'].value
1717  loadStdRecoBTag=self._parameters['loadStdRecoBTag'].value
1718  svClustering=self._parameters['svClustering'].value
1719  fatJets=self._parameters['fatJets'].value
1720  groomedFatJets=self._parameters['groomedFatJets'].value
1721  algo=self._parameters['algo'].value
1722  rParam=self._parameters['rParam'].value
1723  sortByPt=self._parameters['sortByPt'].value
1724  printWarning=self._parameters['printWarning'].value
1725  jetCorrections=self._parameters['jetCorrections'].value
1726  btagDiscriminators=list(self._parameters['btagDiscriminators'].value)
1727  btagInfos=list(self._parameters['btagInfos'].value)
1728 
1729 
1730  knownModules = process.producerNames().split()
1731 
1732  if btagDiscriminators.count('None')>0:
1733  btagDiscriminators.remove('None')
1734  if btagInfos.count('None')>0:
1735  btagInfos.remove('None')
1736  bTagging=(len(btagDiscriminators)>0 or len(btagInfos)>0)
1737 
1738 
1741  _labelName=labelName[:1].upper()+labelName[1:]
1742 
1743 
1744  _algo=''
1745  for x in ["ak", "ca", "kt"]:
1746  if x in algo.lower():
1747  _algo=supportedJetAlgos[x]
1748  break
1749  if _algo=='':
1751 
1752  task = getPatAlgosToolsTask(process)
1753 
1754 
1755  from PhysicsTools.PatAlgos.producersLayer1.jetUpdater_cfi import updatedPatJets
1756  if not sortByPt: # default is True
1757  updatedPatJets.sort = cms.bool(False)
1758  if 'updatedPatJets'+_labelName+postfix in knownModules :
1759  _newPatJets=getattr(process, 'updatedPatJets'+_labelName+postfix)
1760  _newPatJets.jetSource=jetSource
1761  else :
1762  addToProcessAndTask('updatedPatJets'+_labelName+postfix,
1763  updatedPatJets.clone(jetSource=jetSource,
1764  printWarning=printWarning), process, task)
1765  _newPatJets=getattr(process, 'updatedPatJets'+_labelName+postfix)
1766  knownModules.append('updatedPatJets'+_labelName+postfix)
1767 
1768  from PhysicsTools.PatAlgos.selectionLayer1.jetSelector_cfi import selectedPatJets
1769  if 'selectedUpdatedPatJets'+_labelName+postfix in knownModules :
1770  _newSelectedPatJets=getattr(process, 'selectedUpdatedPatJets'+_labelName+postfix)
1771  _newSelectedPatJets.src='updatedPatJets'+_labelName+postfix
1772  else :
1773  addToProcessAndTask('selectedUpdatedPatJets'+_labelName+postfix,
1774  selectedPatJets.clone(src='updatedPatJets'+_labelName+postfix),
1775  process, task)
1776  knownModules.append('selectedUpdatedPatJets'+_labelName+postfix)
1777 
1778 
1779  if (bTagging):
1780  if printWarning:
1781  sys.stderr.write("**************************************************************\n")
1782  sys.stderr.write("b tagging needs to be run on uncorrected jets. Hence, the JECs\n")
1783  sys.stderr.write("will first be undone for 'updatedPatJets%s' and then applied to\n" % (_labelName+postfix) )
1784  sys.stderr.write("'updatedPatJetsTransientCorrected%s'.\n" % (_labelName+postfix) )
1785  sys.stderr.write("**************************************************************\n")
1786  _jetSource = cms.InputTag('updatedPatJets'+_labelName+postfix)
1787 
1788  self(
1789  process,
1790  labelName = ('TransientCorrected'+_labelName),
1791  jetSource = _jetSource,
1792  pfCandidates=pfCandidates,
1793  explicitJTA=explicitJTA,
1794  pvSource=pvSource,
1795  svSource=svSource,
1796  elSource=elSource,
1797  muSource=muSource,
1798  runIVF=runIVF,
1799  tightBTagNTkHits=tightBTagNTkHits,
1800  loadStdRecoBTag=loadStdRecoBTag,
1801  svClustering=svClustering,
1802  fatJets=fatJets,
1803  groomedFatJets=groomedFatJets,
1804  algo=algo,
1805  rParam=rParam,
1806  jetCorrections = jetCorrections,
1807  btagPrefix = btagPrefix,
1808  postfix = postfix
1809  )
1810 
1811  _patJets=getattr(process, 'updatedPatJetsTransientCorrected'+_labelName+postfix)
1812  setupBTagging(process, _jetSource, pfCandidates, explicitJTA, pvSource, svSource, elSource, muSource, runIVF, tightBTagNTkHits, loadStdRecoBTag, svClustering, fatJets, groomedFatJets,
1813  _algo, rParam, btagDiscriminators, btagInfos, _patJets, _labelName, btagPrefix, postfix)
1814 
1815  _newSelectedPatJets=getattr(process, 'selectedUpdatedPatJets'+_labelName+postfix)
1816  _newSelectedPatJets.src='updatedPatJetsTransientCorrected'+_labelName+postfix
1817 
1818  delattr(process, 'selectedUpdatedPatJetsTransientCorrected'+_labelName+postfix)
1819  else:
1820  _newPatJets.addBTagInfo = False
1821  _newPatJets.addTagInfos = False
1822 
1823 
1824  if (jetCorrections is not None or bTagging):
1825 
1826  if jetCorrections is None and bTagging:
1827  raise ValueError("Passing jetCorrections = None while running bTagging is likely not intended.")
1828  else:
1829  checkJetCorrectionsFormat(jetCorrections)
1830 
1831  if jetCorrections[2].lower() != 'none' and jetCorrections[2] != '':
1832  sys.stderr.write("-------------------------------------------------------------------\n")
1833  sys.stderr.write(" Warning: MET correction was set to " + jetCorrections[2] + " but\n")
1834  sys.stderr.write(" will be ignored. Please set it to \"None\" to avoid\n")
1835  sys.stderr.write(" getting this warning.\n")
1836  sys.stderr.write("-------------------------------------------------------------------\n")
1837  jetCorrectionsList = list(jetCorrections)
1838  jetCorrectionsList[2] = 'None'
1839  jetCorrections = tuple(jetCorrectionsList)
1840 
1841  if (bTagging):
1842  jetCorrections = ('AK4PFchs', cms.vstring([]), 'None')
1843 
1844  setupJetCorrections(process, knownModules, jetCorrections, jetSource, pvSource, _newPatJets, _labelName, postfix)
1845  else:
1846 
1847  _newPatJets.addJetCorrFactors=False
1848 
1849 updateJetCollection=UpdateJetCollection()
1850 
1851 
def addToProcessAndTask(label, module, process, task)
Definition: helpers.py:28
def setupJetCorrections(process, knownModules, jetCorrections, jetSource, pvSource, patJets, labelName, postfix)
Definition: jetTools.py:26
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:249
def checkJetCorrectionsFormat(jetCorrections)
Definition: jetTools.py:18
def getPatAlgosToolsTask(process)
Definition: helpers.py:13
def unsupportedJetAlgorithm(obj)
Definition: jetTools.py:1964

Member Data Documentation

◆ _comment

jetTools.UpdateJetCollection._comment
private

add comments

Definition at line 1614 of file jetTools.py.

◆ _defaultParameters

jetTools.UpdateJetCollection._defaultParameters
staticprivate

Definition at line 1563 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 1612 of file jetTools.py.

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