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 1533 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 1540 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().

1540  def __init__(self):
1541  """
1542  Initialize elements of the class. Note that the tool needs to be derived from ConfigToolBase to be usable in the configEditor.
1543  """
1544 
1545  ConfigToolBase.__init__(self)
1546 
1547  self.addParameter(self._defaultParameters,'labelName', '', "Label name of the new patJet collection.", str)
1548  self.addParameter(self._defaultParameters,'postfix','', "Postfix from usePF2PAT.", str)
1549  self.addParameter(self._defaultParameters,'btagPrefix','', "Prefix to be added to b-tag discriminator and TagInfo names", str)
1550  self.addParameter(self._defaultParameters,'jetSource','', "Label of the input collection from which the new patJet collection should be created", cms.InputTag)
1551  self.addParameter(self._defaultParameters,'pfCandidates',cms.InputTag('packedPFCandidates'), "Label of the input collection for candidatecandidatese used in b-tagging", cms.InputTag)
1552  self.addParameter(self._defaultParameters,'explicitJTA', False, "Use explicit jet-track association")
1553  self.addParameter(self._defaultParameters,'pvSource',cms.InputTag('offlineSlimmedPrimaryVertices'), "Label of the input collection for primary vertices used in b-tagging", cms.InputTag)
1554  self.addParameter(self._defaultParameters,'svSource',cms.InputTag('slimmedSecondaryVertices'), "Label of the input collection for IVF vertices used in b-tagging", cms.InputTag)
1555  self.addParameter(self._defaultParameters,'elSource',cms.InputTag('slimmedElectrons'), "Label of the input collection for electrons used in b-tagging", cms.InputTag)
1556  self.addParameter(self._defaultParameters,'muSource',cms.InputTag('slimmedMuons'), "Label of the input collection for muons used in b-tagging", cms.InputTag)
1557  self.addParameter(self._defaultParameters,'runIVF', False, "Re-run IVF secondary vertex reconstruction")
1558  self.addParameter(self._defaultParameters,'tightBTagNTkHits', False, "Enable legacy tight b-tag track selection")
1559  self.addParameter(self._defaultParameters,'loadStdRecoBTag', False, "Load the standard reconstruction b-tagging modules")
1560  self.addParameter(self._defaultParameters,'svClustering', False, "Secondary vertices ghost-associated to jets using jet clustering (mostly intended for subjets)")
1561  self.addParameter(self._defaultParameters,'fatJets', cms.InputTag(''), "Fat jet collection used for secondary vertex clustering", cms.InputTag)
1562  self.addParameter(self._defaultParameters,'groomedFatJets', cms.InputTag(''), "Groomed fat jet collection used for secondary vertex clustering", cms.InputTag)
1563  self.addParameter(self._defaultParameters,'algo', 'AK', "Jet algorithm of the input collection from which the new patJet collection should be created")
1564  self.addParameter(self._defaultParameters,'rParam', 0.4, "Jet size (distance parameter R used in jet clustering)")
1565  self.addParameter(self._defaultParameters,'sortByPt', True, "Set to False to not modify incoming jet order")
1566  self.addParameter(self._defaultParameters,'printWarning', True, "To be use as False in production to reduce log size")
1567  self.addParameter(self._defaultParameters,'jetCorrections',None, "Add all relevant information about jet energy corrections that you want to be added to your new patJet \
1568  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 \
1569  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 \
1570  new patJet collection. This should be given as a list of strings. Available values are L1Offset, L1FastJet, L1JPTOffset, L2Relative, L3Absolute, L5Falvour, L7Parton; the \
1571  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 \
1572  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 \
1573  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\' \
1574  and \'type-2\' are not case sensitive.", tuple, acceptNoneValue=True)
1575  self.addParameter(self._defaultParameters,'btagDiscriminators',['None'], "If you are interested in btagging, in most cases just the labels of the btag discriminators that \
1576  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. \
1577  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)
1578  self.addParameter(self._defaultParameters,'btagInfos',['None'], "The btagInfos objects contain all relevant information from which all discriminators of a certain \
1579  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 \
1580  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 \
1581  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 \
1582  will be added to your new patJet collection.", allowedValues=supportedBtagInfos,Type=list)
1583  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 \
1584  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 \
1585  to more than one output module.")
1586 
1587  self._parameters=copy.deepcopy(self._defaultParameters)
1588 
1589  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\
1590  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 \
1591  the descriptions of each parameter for more information."
1592 
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 1599 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, ProcessAcceleratorCUDA.ProcessAcceleratorCUDA.apply(), SignedImpactParameter3D.apply(), SignedTransverseImpactParameter.apply(), SignedDecayLength3D.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(), 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().

1599  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):
1600  """
1601  Function call wrapper. This will check the parameters and call the actual implementation that
1602  can be found in toolCode via the base class function apply.
1603  """
1604  if labelName is None:
1605  labelName=self._defaultParameters['labelName'].value
1606  self.setParameter('labelName', labelName)
1607  if postfix is None:
1608  postfix=self._defaultParameters['postfix'].value
1609  self.setParameter('postfix', postfix)
1610  if btagPrefix is None:
1611  btagPrefix=self._defaultParameters['btagPrefix'].value
1612  self.setParameter('btagPrefix', btagPrefix)
1613  if jetSource is None:
1614  jetSource=self._defaultParameters['jetSource'].value
1615  self.setParameter('jetSource', jetSource)
1616  if pfCandidates is None:
1617  pfCandidates=self._defaultParameters['pfCandidates'].value
1618  self.setParameter('pfCandidates', pfCandidates)
1619  if explicitJTA is None:
1620  explicitJTA=self._defaultParameters['explicitJTA'].value
1621  self.setParameter('explicitJTA', explicitJTA)
1622  if pvSource is None:
1623  pvSource=self._defaultParameters['pvSource'].value
1624  self.setParameter('pvSource', pvSource)
1625  if svSource is None:
1626  svSource=self._defaultParameters['svSource'].value
1627  self.setParameter('svSource', svSource)
1628  if elSource is None:
1629  elSource=self._defaultParameters['elSource'].value
1630  self.setParameter('elSource', elSource)
1631  if muSource is None:
1632  muSource=self._defaultParameters['muSource'].value
1633  self.setParameter('muSource', muSource)
1634  if runIVF is None:
1635  runIVF=self._defaultParameters['runIVF'].value
1636  self.setParameter('runIVF', runIVF)
1637  if tightBTagNTkHits is None:
1638  tightBTagNTkHits=self._defaultParameters['tightBTagNTkHits'].value
1639  self.setParameter('tightBTagNTkHits', tightBTagNTkHits)
1640  if loadStdRecoBTag is None:
1641  loadStdRecoBTag=self._defaultParameters['loadStdRecoBTag'].value
1642  self.setParameter('loadStdRecoBTag', loadStdRecoBTag)
1643  if svClustering is None:
1644  svClustering=self._defaultParameters['svClustering'].value
1645  self.setParameter('svClustering', svClustering)
1646  if fatJets is None:
1647  fatJets=self._defaultParameters['fatJets'].value
1648  self.setParameter('fatJets', fatJets)
1649  if groomedFatJets is None:
1650  groomedFatJets=self._defaultParameters['groomedFatJets'].value
1651  self.setParameter('groomedFatJets', groomedFatJets)
1652  if algo is None:
1653  algo=self._defaultParameters['algo'].value
1654  self.setParameter('algo', algo)
1655  if rParam is None:
1656  rParam=self._defaultParameters['rParam'].value
1657  self.setParameter('rParam', rParam)
1658  if sortByPt is None:
1659  sortByPt=self._defaultParameters['sortByPt'].value
1660  self.setParameter('sortByPt', sortByPt)
1661  if printWarning is None:
1662  printWarning=self._defaultParameters['printWarning'].value
1663  self.setParameter('printWarning', printWarning)
1664  if jetCorrections is None:
1665  jetCorrections=self._defaultParameters['jetCorrections'].value
1666  self.setParameter('jetCorrections', jetCorrections)
1667  if btagDiscriminators is None:
1668  btagDiscriminators=self._defaultParameters['btagDiscriminators'].value
1669  self.setParameter('btagDiscriminators', btagDiscriminators)
1670  if btagInfos is None:
1671  btagInfos=self._defaultParameters['btagInfos'].value
1672  self.setParameter('btagInfos', btagInfos)
1673  self.apply(process)
1674 

◆ getDefaultParameters()

def jetTools.UpdateJetCollection.getDefaultParameters (   self)

◆ toolCode()

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

Definition at line 1675 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(), and jetTools.unsupportedJetAlgorithm().

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

Member Data Documentation

◆ _comment

jetTools.UpdateJetCollection._comment
private

add comments

Definition at line 1589 of file jetTools.py.

◆ _defaultParameters

jetTools.UpdateJetCollection._defaultParameters
staticprivate

Definition at line 1538 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 1587 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(), 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().