CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions | Variables
jetTools Namespace Reference

Classes

class  AddJetCollection
 
class  AddJetID
 
class  SetTagInfos
 
class  SwitchJetCollection
 

Functions

def deprecatedOptionOutputModule
 
def jetAlgo
 
def rerunningIVF
 
def setupSVClustering
 
def undefinedLabelName
 
def unsupportedJetAlgorithm
 

Variables

dictionary supportedJetAlgos
 dictionary with supported jet clustering algorithms More...
 

Function Documentation

def jetTools.deprecatedOptionOutputModule (   obj)

Definition at line 972 of file jetTools.py.

974  print "-------------------------------------------------------"
975  print " Error: the option 'outputModule' is not supported"
976  print " anymore by:"
977  print " ", obj._label
978  print " please use 'outputModules' now and specify the"
979  print " names of all needed OutModules in there"
980  print " (default: ['out'])"
981  print "-------------------------------------------------------"
982  raise KeyError, "Unsupported option 'outputModule' used in '"+obj._label+"'"
def deprecatedOptionOutputModule
Definition: jetTools.py:972
def jetTools.jetAlgo (   algo)

Definition at line 3 of file jetTools.py.

Referenced by pfTools.switchToPFJets().

3 
4 def jetAlgo( algo ):
5 
6  # print 'PF2PAT: selecting jet algorithm ', algo
7 
8  if algo == 'IC5':
9  import RecoJets.JetProducers.ic5PFJets_cfi as jetConfig
10  jetAlgo = jetConfig.iterativeCone5PFJets.clone()
11  elif algo == 'AK4':
12  import RecoJets.JetProducers.ak4PFJets_cfi as jetConfig
13  jetAlgo = jetConfig.ak4PFJets.clone()
14  elif algo == 'AK7':
15  import RecoJets.JetProducers.ak4PFJets_cfi as jetConfig
16  jetAlgo = jetConfig.ak4PFJets.clone()
17  jetAlgo.rParam = cms.double(0.7)
18  jetAlgo.doAreaFastjet = cms.bool(False)
19 
20  jetAlgo.src = 'pfNoElectronJME'
21  jetAlgo.doPVCorrection = True
22  jetAlgo.srcPVs = cms.InputTag("goodOfflinePrimaryVertices")
23  return jetAlgo
def jetAlgo
Definition: jetTools.py:3
def jetTools.rerunningIVF ( )

Definition at line 999 of file jetTools.py.

1000 def rerunningIVF():
1001  print "-------------------------------------------------------------------"
1002  print " Warning: You are attempting to remake the IVF secondary vertices"
1003  print " already produced by the standard reconstruction. If that"
1004  print " was your intention, note that they should be remade only"
1005  print " from RECO and AOD, i.e., MiniAOD should not be used."
1006  print "-------------------------------------------------------------------"
def rerunningIVF
Definition: jetTools.py:999
def jetTools.setupSVClustering (   btagInfo,
  algo,
  rParam,
  fatJets = cms.InputTag(''),
  groomedFatJets = cms.InputTag('') 
)

Definition at line 17 of file jetTools.py.

17 
18 def setupSVClustering(btagInfo, algo, rParam, fatJets=cms.InputTag(''), groomedFatJets=cms.InputTag('')):
19  btagInfo.useSVClustering = cms.bool(True)
20  btagInfo.jetAlgorithm = cms.string(algo)
21  btagInfo.rParam = cms.double(rParam)
22  ## if the jets is actually a subjet
23  if fatJets != cms.InputTag('') and groomedFatJets != cms.InputTag(''):
24  btagInfo.fatJets = fatJets
25  btagInfo.groomedFatJets = groomedFatJets
26 
def setupSVClustering
Definition: jetTools.py:17
def jetTools.undefinedLabelName (   obj)

Definition at line 983 of file jetTools.py.

Referenced by jetTools.AddJetCollection.toolCode().

984 def undefinedLabelName(obj):
985  print "-------------------------------------------------------"
986  print " Error: the jet 'labelName' is not defined."
987  print " All added jets must have 'labelName' defined."
988  print "-------------------------------------------------------"
989  raise KeyError, "Undefined jet 'labelName' used in '"+obj._label+"'"
def undefinedLabelName
Definition: jetTools.py:983
def jetTools.unsupportedJetAlgorithm (   obj)

Definition at line 990 of file jetTools.py.

Referenced by jetTools.AddJetCollection.toolCode().

991 def unsupportedJetAlgorithm(obj):
992  print "-------------------------------------------------------"
993  print " Error: Unsupported jet algorithm detected."
994  print " The supported algorithms are:"
995  for key in supportedJetAlgos.keys():
996  print " " + key.upper() + ", " + key.lower() + ": " + supportedJetAlgos[key]
997  print "-------------------------------------------------------"
998  raise KeyError, "Unsupported jet algorithm used in '"+obj._label+"'"
def unsupportedJetAlgorithm
Definition: jetTools.py:990

Variable Documentation

dictionary jetTools.supportedJetAlgos
Initial value:
1 = {
2  'ak' : 'AntiKt'
3  , 'ca' : 'CambridgeAachen'
4  , 'kt' : 'Kt'
5 }

dictionary with supported jet clustering algorithms

Definition at line 10 of file jetTools.py.