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 759 of file jetTools.py.

761  print "-------------------------------------------------------"
762  print " Error: the option 'outputModule' is not supported"
763  print " anymore by:"
764  print " ", obj._label
765  print " please use 'outputModules' now and specify the"
766  print " names of all needed OutModules in there"
767  print " (default: ['out'])"
768  print "-------------------------------------------------------"
769  raise KeyError, "Unsupported option 'outputModule' used in '"+obj._label+"'"
def deprecatedOptionOutputModule
Definition: jetTools.py:759
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.undefinedLabelName (   obj)

Definition at line 770 of file jetTools.py.

Referenced by jetTools.AddJetCollection.toolCode().

771 def undefinedLabelName(obj):
772  print "-------------------------------------------------------"
773  print " Error: the jet 'labelName' is not defined."
774  print " All added jets must have 'labelName' defined."
775  print "-------------------------------------------------------"
776  raise KeyError, "Undefined jet 'labelName' used in '"+obj._label+"'"
def undefinedLabelName
Definition: jetTools.py:770
def jetTools.unsupportedJetAlgorithm (   obj)

Definition at line 777 of file jetTools.py.

Referenced by jetTools.AddJetCollection.toolCode().

778 def unsupportedJetAlgorithm(obj):
779  print "-------------------------------------------------------"
780  print " Error: Unsupported jet algorithm detected."
781  print " The supported algorithms are:"
782  for key in supportedJetAlgos.keys():
783  print " " + key.upper() + ", " + key.lower() + ": " + supportedJetAlgos[key]
784  print "-------------------------------------------------------"
785  raise KeyError, "Unsupported jet algorithm used in '"+obj._label+"'"
def unsupportedJetAlgorithm
Definition: jetTools.py:777

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.