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

Variables

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

Function Documentation

def jetTools.deprecatedOptionOutputModule (   obj)

Definition at line 753 of file jetTools.py.

755  print "-------------------------------------------------------"
756  print " Error: the option 'outputModule' is not supported"
757  print " anymore by:"
758  print " ", obj._label
759  print " please use 'outputModules' now and specify the"
760  print " names of all needed OutModules in there"
761  print " (default: ['out'])"
762  print "-------------------------------------------------------"
763  raise KeyError, "Unsupported option 'outputModule' used in '"+obj._label+"'"
def deprecatedOptionOutputModule
Definition: jetTools.py:753
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 == 'AK5':
15  jetAlgo = RecoJets.JetProducers.ak5PFJets_cfi.ak5PFJets.clone()
16  elif algo == 'AK7':
17  jetAlgo = RecoJets.JetProducers.ak5PFJets_cfi.ak5PFJets.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.undefinedLabelName (   obj)

Definition at line 764 of file jetTools.py.

Referenced by jetTools.AddJetCollection.toolCode().

765 def undefinedLabelName(obj):
766  print "-------------------------------------------------------"
767  print " Error: the jet 'labelName' is not defined."
768  print " All added jets must have 'labelName' defined."
769  print "-------------------------------------------------------"
770  raise KeyError, "Undefined jet 'labelName' used in '"+obj._label+"'"
def undefinedLabelName
Definition: jetTools.py:764
def jetTools.unsupportedJetAlgorithm (   obj)

Definition at line 771 of file jetTools.py.

Referenced by jetTools.AddJetCollection.toolCode().

772 def unsupportedJetAlgorithm(obj):
773  print "-------------------------------------------------------"
774  print " Error: Unsupported jet algorithm detected."
775  print " The supported algorithms are:"
776  for key in supportedJetAlgos.keys():
777  print " " + key.upper() + ", " + key.lower() + ": " + supportedJetAlgos[key]
778  print "-------------------------------------------------------"
779  raise KeyError, "Unsupported jet algorithm used in '"+obj._label+"'"
def unsupportedJetAlgorithm
Definition: jetTools.py:771

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.