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 setupSVClustering
 
def undefinedLabelName
 
def unsupportedJetAlgorithm
 

Variables

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

Function Documentation

def jetTools.deprecatedOptionOutputModule (   obj)

Definition at line 872 of file jetTools.py.

874  print "-------------------------------------------------------"
875  print " Error: the option 'outputModule' is not supported"
876  print " anymore by:"
877  print " ", obj._label
878  print " please use 'outputModules' now and specify the"
879  print " names of all needed OutModules in there"
880  print " (default: ['out'])"
881  print "-------------------------------------------------------"
882  raise KeyError, "Unsupported option 'outputModule' used in '"+obj._label+"'"
def deprecatedOptionOutputModule
Definition: jetTools.py:872
def jetTools.jetAlgo (   algo)

Definition at line 6 of file jetTools.py.

6 
7 def jetAlgo( algo ):
8 
9  # print 'PF2PAT: selecting jet algorithm ', algo
10 
11  if algo == 'IC5':
12 #allPfJets = RecoJets.JetProducers.ic5PFJets_cfi.iterativeCone5PFJets.clone()
13  jetAlgo = RecoJets.JetProducers.ic5PFJets_cfi.iterativeCone5PFJets.clone()
14  elif algo == 'AK4':
15  jetAlgo = RecoJets.JetProducers.ak4PFJets_cfi.ak4PFJets.clone()
16  elif algo == 'AK7':
17  jetAlgo = RecoJets.JetProducers.ak4PFJets_cfi.ak4PFJets.clone()
18  jetAlgo.rParam = cms.double(0.7)
19  jetAlgo.doAreaFastjet = cms.bool(False)
20 
21  jetAlgo.src = 'pfNoElectronJME'
22  jetAlgo.doPVCorrection = True
23  jetAlgo.srcPVs = cms.InputTag("goodOfflinePrimaryVertices")
24  return jetAlgo
def jetAlgo
Definition: jetTools.py:6
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 883 of file jetTools.py.

Referenced by jetTools.AddJetCollection.toolCode().

884 def undefinedLabelName(obj):
885  print "-------------------------------------------------------"
886  print " Error: the jet 'labelName' is not defined."
887  print " All added jets must have 'labelName' defined."
888  print "-------------------------------------------------------"
889  raise KeyError, "Undefined jet 'labelName' used in '"+obj._label+"'"
def undefinedLabelName
Definition: jetTools.py:883
def jetTools.unsupportedJetAlgorithm (   obj)

Definition at line 890 of file jetTools.py.

Referenced by jetTools.AddJetCollection.toolCode().

891 def unsupportedJetAlgorithm(obj):
892  print "-------------------------------------------------------"
893  print " Error: Unsupported jet algorithm detected."
894  print " The supported algorithms are:"
895  for key in supportedJetAlgos.keys():
896  print " " + key.upper() + ", " + key.lower() + ": " + supportedJetAlgos[key]
897  print "-------------------------------------------------------"
898  raise KeyError, "Unsupported jet algorithm used in '"+obj._label+"'"
def unsupportedJetAlgorithm
Definition: jetTools.py:890

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.