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 1894 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 1901 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().

1901  def __init__(self):
1902  """
1903  Initialize elements of the class. Note that the tool needs to be derived from ConfigToolBase to be usable in the configEditor.
1904  """
1905 
1906  ConfigToolBase.__init__(self)
1907 
1908  self.addParameter(self._defaultParameters,'labelName', '', "Label name of the new patJet collection.", str)
1909  self.addParameter(self._defaultParameters,'postfix','', "Postfix from usePF2PAT.", str)
1910  self.addParameter(self._defaultParameters,'btagPrefix','', "Prefix to be added to b-tag discriminator and TagInfo names", str)
1911  self.addParameter(self._defaultParameters,'jetSource','', "Label of the input collection from which the new patJet collection should be created", cms.InputTag)
1912  self.addParameter(self._defaultParameters,'pfCandidates',cms.InputTag('packedPFCandidates'), "Label of the input collection for candidatecandidatese used in b-tagging", cms.InputTag)
1913  self.addParameter(self._defaultParameters,'explicitJTA', False, "Use explicit jet-track association")
1914  self.addParameter(self._defaultParameters,'pvSource',cms.InputTag('offlineSlimmedPrimaryVertices'), "Label of the input collection for primary vertices used in b-tagging", cms.InputTag)
1915  self.addParameter(self._defaultParameters,'svSource',cms.InputTag('slimmedSecondaryVertices'), "Label of the input collection for IVF vertices used in b-tagging", cms.InputTag)
1916  self.addParameter(self._defaultParameters,'elSource',cms.InputTag('slimmedElectrons'), "Label of the input collection for electrons used in b-tagging", cms.InputTag)
1917  self.addParameter(self._defaultParameters,'muSource',cms.InputTag('slimmedMuons'), "Label of the input collection for muons used in b-tagging", cms.InputTag)
1918  self.addParameter(self._defaultParameters,'runIVF', False, "Re-run IVF secondary vertex reconstruction")
1919  self.addParameter(self._defaultParameters,'tightBTagNTkHits', False, "Enable legacy tight b-tag track selection")
1920  self.addParameter(self._defaultParameters,'loadStdRecoBTag', False, "Load the standard reconstruction b-tagging modules")
1921  self.addParameter(self._defaultParameters,'svClustering', False, "Secondary vertices ghost-associated to jets using jet clustering (mostly intended for subjets)")
1922  self.addParameter(self._defaultParameters,'fatJets', cms.InputTag(''), "Fat jet collection used for secondary vertex clustering", cms.InputTag)
1923  self.addParameter(self._defaultParameters,'groomedFatJets', cms.InputTag(''), "Groomed fat jet collection used for secondary vertex clustering", cms.InputTag)
1924  self.addParameter(self._defaultParameters,'algo', 'AK', "Jet algorithm of the input collection from which the new patJet collection should be created")
1925  self.addParameter(self._defaultParameters,'rParam', 0.4, "Jet size (distance parameter R used in jet clustering)")
1926  self.addParameter(self._defaultParameters,'sortByPt', True, "Set to False to not modify incoming jet order")
1927  self.addParameter(self._defaultParameters,'printWarning', True, "To be use as False in production to reduce log size")
1928  self.addParameter(self._defaultParameters,'jetCorrections',None, "Add all relevant information about jet energy corrections that you want to be added to your new patJet \
1929  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 \
1930  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 \
1931  new patJet collection. This should be given as a list of strings. Available values are L1Offset, L1FastJet, L1JPTOffset, L2Relative, L3Absolute, L5Falvour, L7Parton; the \
1932  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 \
1933  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 \
1934  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\' \
1935  and \'type-2\' are not case sensitive.", tuple, acceptNoneValue=True)
1936  self.addParameter(self._defaultParameters,'btagDiscriminators',['None'], "If you are interested in btagging, in most cases just the labels of the btag discriminators that \
1937  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. \
1938  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)
1939  self.addParameter(self._defaultParameters,'btagInfos',['None'], "The btagInfos objects contain all relevant information from which all discriminators of a certain \
1940  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 \
1941  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 \
1942  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 \
1943  will be added to your new patJet collection.", allowedValues=supportedBtagInfos,Type=list)
1944  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 \
1945  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 \
1946  to more than one output module.")
1947 
1948  self._parameters=copy.deepcopy(self._defaultParameters)
1949 
1950  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\
1951  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 \
1952  the descriptions of each parameter for more information."
1953 
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 1960 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, SlidingPeakFinder.apply(), 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(), SiPixelLorentzAngleCalibration.setParameter(), IntegratedCalibrationBase.setParameter(), SiStripBackplaneCalibration.setParameter(), fit::RootMinuit< Function >.setParameter(), and ConfigToolBase.ConfigToolBase.setParameter().

1960  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):
1961  """
1962  Function call wrapper. This will check the parameters and call the actual implementation that
1963  can be found in toolCode via the base class function apply.
1964  """
1965  if labelName is None:
1966  labelName=self._defaultParameters['labelName'].value
1967  self.setParameter('labelName', labelName)
1968  if postfix is None:
1969  postfix=self._defaultParameters['postfix'].value
1970  self.setParameter('postfix', postfix)
1971  if btagPrefix is None:
1972  btagPrefix=self._defaultParameters['btagPrefix'].value
1973  self.setParameter('btagPrefix', btagPrefix)
1974  if jetSource is None:
1975  jetSource=self._defaultParameters['jetSource'].value
1976  self.setParameter('jetSource', jetSource)
1977  if pfCandidates is None:
1978  pfCandidates=self._defaultParameters['pfCandidates'].value
1979  self.setParameter('pfCandidates', pfCandidates)
1980  if explicitJTA is None:
1981  explicitJTA=self._defaultParameters['explicitJTA'].value
1982  self.setParameter('explicitJTA', explicitJTA)
1983  if pvSource is None:
1984  pvSource=self._defaultParameters['pvSource'].value
1985  self.setParameter('pvSource', pvSource)
1986  if svSource is None:
1987  svSource=self._defaultParameters['svSource'].value
1988  self.setParameter('svSource', svSource)
1989  if elSource is None:
1990  elSource=self._defaultParameters['elSource'].value
1991  self.setParameter('elSource', elSource)
1992  if muSource is None:
1993  muSource=self._defaultParameters['muSource'].value
1994  self.setParameter('muSource', muSource)
1995  if runIVF is None:
1996  runIVF=self._defaultParameters['runIVF'].value
1997  self.setParameter('runIVF', runIVF)
1998  if tightBTagNTkHits is None:
1999  tightBTagNTkHits=self._defaultParameters['tightBTagNTkHits'].value
2000  self.setParameter('tightBTagNTkHits', tightBTagNTkHits)
2001  if loadStdRecoBTag is None:
2002  loadStdRecoBTag=self._defaultParameters['loadStdRecoBTag'].value
2003  self.setParameter('loadStdRecoBTag', loadStdRecoBTag)
2004  if svClustering is None:
2005  svClustering=self._defaultParameters['svClustering'].value
2006  self.setParameter('svClustering', svClustering)
2007  if fatJets is None:
2008  fatJets=self._defaultParameters['fatJets'].value
2009  self.setParameter('fatJets', fatJets)
2010  if groomedFatJets is None:
2011  groomedFatJets=self._defaultParameters['groomedFatJets'].value
2012  self.setParameter('groomedFatJets', groomedFatJets)
2013  if algo is None:
2014  algo=self._defaultParameters['algo'].value
2015  self.setParameter('algo', algo)
2016  if rParam is None:
2017  rParam=self._defaultParameters['rParam'].value
2018  self.setParameter('rParam', rParam)
2019  if sortByPt is None:
2020  sortByPt=self._defaultParameters['sortByPt'].value
2021  self.setParameter('sortByPt', sortByPt)
2022  if printWarning is None:
2023  printWarning=self._defaultParameters['printWarning'].value
2024  self.setParameter('printWarning', printWarning)
2025  if jetCorrections is None:
2026  jetCorrections=self._defaultParameters['jetCorrections'].value
2027  self.setParameter('jetCorrections', jetCorrections)
2028  if btagDiscriminators is None:
2029  btagDiscriminators=self._defaultParameters['btagDiscriminators'].value
2030  self.setParameter('btagDiscriminators', btagDiscriminators)
2031  if btagInfos is None:
2032  btagInfos=self._defaultParameters['btagInfos'].value
2033  self.setParameter('btagInfos', btagInfos)
2034  self.apply(process)
2035 

◆ getDefaultParameters()

def jetTools.UpdateJetCollection.getDefaultParameters (   self)

◆ toolCode()

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

Definition at line 2036 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().

2036  def toolCode(self, process):
2037  """
2038  Tool code implementation
2039  """
2040 
2041  labelName=self._parameters['labelName'].value
2042  postfix=self._parameters['postfix'].value
2043  btagPrefix=self._parameters['btagPrefix'].value
2044  jetSource=self._parameters['jetSource'].value
2045  pfCandidates=self._parameters['pfCandidates'].value
2046  explicitJTA=self._parameters['explicitJTA'].value
2047  pvSource=self._parameters['pvSource'].value
2048  svSource=self._parameters['svSource'].value
2049  elSource=self._parameters['elSource'].value
2050  muSource=self._parameters['muSource'].value
2051  runIVF=self._parameters['runIVF'].value
2052  tightBTagNTkHits=self._parameters['tightBTagNTkHits'].value
2053  loadStdRecoBTag=self._parameters['loadStdRecoBTag'].value
2054  svClustering=self._parameters['svClustering'].value
2055  fatJets=self._parameters['fatJets'].value
2056  groomedFatJets=self._parameters['groomedFatJets'].value
2057  algo=self._parameters['algo'].value
2058  rParam=self._parameters['rParam'].value
2059  sortByPt=self._parameters['sortByPt'].value
2060  printWarning=self._parameters['printWarning'].value
2061  jetCorrections=self._parameters['jetCorrections'].value
2062  btagDiscriminators=list(self._parameters['btagDiscriminators'].value)
2063  btagInfos=list(self._parameters['btagInfos'].value)
2064 
2065 
2066  knownModules = process.producerNames().split()
2067 
2068  if btagDiscriminators.count('None')>0:
2069  btagDiscriminators.remove('None')
2070  if btagInfos.count('None')>0:
2071  btagInfos.remove('None')
2072  bTagging=(len(btagDiscriminators)>0 or len(btagInfos)>0)
2073 
2074 
2077  _labelName=labelName[:1].upper()+labelName[1:]
2078 
2079 
2080  _algo=''
2081  for x in ["ak", "ca", "kt"]:
2082  if x in algo.lower():
2083  _algo=supportedJetAlgos[x]
2084  break
2085  if _algo=='':
2087 
2088  task = getPatAlgosToolsTask(process)
2089 
2090 
2091  from PhysicsTools.PatAlgos.producersLayer1.jetUpdater_cfi import updatedPatJets
2092  if not sortByPt: # default is True
2093  updatedPatJets.sort = cms.bool(False)
2094  if 'updatedPatJets'+_labelName+postfix in knownModules :
2095  _newPatJets=getattr(process, 'updatedPatJets'+_labelName+postfix)
2096  _newPatJets.jetSource=jetSource
2097  else :
2098  addToProcessAndTask('updatedPatJets'+_labelName+postfix,
2099  updatedPatJets.clone(jetSource=jetSource,
2100  printWarning=printWarning), process, task)
2101  _newPatJets=getattr(process, 'updatedPatJets'+_labelName+postfix)
2102  knownModules.append('updatedPatJets'+_labelName+postfix)
2103 
2104  from PhysicsTools.PatAlgos.selectionLayer1.jetSelector_cfi import selectedPatJets
2105  if 'selectedUpdatedPatJets'+_labelName+postfix in knownModules :
2106  _newSelectedPatJets=getattr(process, 'selectedUpdatedPatJets'+_labelName+postfix)
2107  _newSelectedPatJets.src='updatedPatJets'+_labelName+postfix
2108  else :
2109  addToProcessAndTask('selectedUpdatedPatJets'+_labelName+postfix,
2110  selectedPatJets.clone(src='updatedPatJets'+_labelName+postfix),
2111  process, task)
2112  knownModules.append('selectedUpdatedPatJets'+_labelName+postfix)
2113 
2114 
2115  if (bTagging):
2116  if printWarning:
2117  sys.stderr.write("**************************************************************\n")
2118  sys.stderr.write("b tagging needs to be run on uncorrected jets. Hence, the JECs\n")
2119  sys.stderr.write("will first be undone for 'updatedPatJets%s' and then applied to\n" % (_labelName+postfix) )
2120  sys.stderr.write("'updatedPatJetsTransientCorrected%s'.\n" % (_labelName+postfix) )
2121  sys.stderr.write("**************************************************************\n")
2122  _jetSource = cms.InputTag('updatedPatJets'+_labelName+postfix)
2123 
2124  self(
2125  process,
2126  labelName = ('TransientCorrected'+_labelName),
2127  jetSource = _jetSource,
2128  pfCandidates=pfCandidates,
2129  explicitJTA=explicitJTA,
2130  pvSource=pvSource,
2131  svSource=svSource,
2132  elSource=elSource,
2133  muSource=muSource,
2134  runIVF=runIVF,
2135  tightBTagNTkHits=tightBTagNTkHits,
2136  loadStdRecoBTag=loadStdRecoBTag,
2137  svClustering=svClustering,
2138  fatJets=fatJets,
2139  groomedFatJets=groomedFatJets,
2140  algo=algo,
2141  rParam=rParam,
2142  jetCorrections = jetCorrections,
2143  btagPrefix = btagPrefix,
2144  postfix = postfix
2145  )
2146 
2147  _patJets=getattr(process, 'updatedPatJetsTransientCorrected'+_labelName+postfix)
2148  setupBTagging(process, _jetSource, pfCandidates, explicitJTA, pvSource, svSource, elSource, muSource, runIVF, tightBTagNTkHits, loadStdRecoBTag, svClustering, fatJets, groomedFatJets,
2149  _algo, rParam, btagDiscriminators, btagInfos, _patJets, _labelName, btagPrefix, postfix)
2150 
2151  _newSelectedPatJets=getattr(process, 'selectedUpdatedPatJets'+_labelName+postfix)
2152  _newSelectedPatJets.src='updatedPatJetsTransientCorrected'+_labelName+postfix
2153 
2154  delattr(process, 'selectedUpdatedPatJetsTransientCorrected'+_labelName+postfix)
2155  else:
2156  _newPatJets.addBTagInfo = False
2157  _newPatJets.addTagInfos = False
2158 
2159 
2160  if (jetCorrections is not None or bTagging):
2161 
2162  if jetCorrections is None and bTagging:
2163  raise ValueError("Passing jetCorrections = None while running bTagging is likely not intended.")
2164  else:
2165  checkJetCorrectionsFormat(jetCorrections)
2166 
2167  if jetCorrections[2].lower() != 'none' and jetCorrections[2] != '':
2168  sys.stderr.write("-------------------------------------------------------------------\n")
2169  sys.stderr.write(" Warning: MET correction was set to " + jetCorrections[2] + " but\n")
2170  sys.stderr.write(" will be ignored. Please set it to \"None\" to avoid\n")
2171  sys.stderr.write(" getting this warning.\n")
2172  sys.stderr.write("-------------------------------------------------------------------\n")
2173  jetCorrectionsList = list(jetCorrections)
2174  jetCorrectionsList[2] = 'None'
2175  jetCorrections = tuple(jetCorrectionsList)
2176 
2177  if (bTagging):
2178  jetCorrections = ('AK4PFchs', cms.vstring([]), 'None')
2179 
2180  setupJetCorrections(process, knownModules, jetCorrections, jetSource, pvSource, _newPatJets, _labelName, postfix)
2181  else:
2182 
2183  _newPatJets.addJetCorrFactors=False
2184 
2185 updateJetCollection=UpdateJetCollection()
2186 
2187 
def addToProcessAndTask(label, module, process, task)
Definition: helpers.py:28
def setupJetCorrections(process, knownModules, jetCorrections, jetSource, pvSource, patJets, labelName, postfix)
Definition: jetTools.py:31
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:271
def checkJetCorrectionsFormat(jetCorrections)
Definition: jetTools.py:23
def getPatAlgosToolsTask(process)
Definition: helpers.py:13
def unsupportedJetAlgorithm(obj)
Definition: jetTools.py:2300

Member Data Documentation

◆ _comment

jetTools.UpdateJetCollection._comment
private

add comments

Definition at line 1950 of file jetTools.py.

◆ _defaultParameters

jetTools.UpdateJetCollection._defaultParameters
staticprivate

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

Referenced by runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.ak4JetReclustering(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.createShiftedModules(), 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.produceMET(), 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().