CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PileupJetID_cfi.py
Go to the documentation of this file.
2 
4 
5 _stdalgos_4x = cms.VPSet(full, cutbased,PhilV1)
6 _stdalgos_5x = cms.VPSet(full_5x,cutbased,PhilV1)
7 
8 _chsalgos_4x = cms.VPSet(full, cutbased)
9 _chsalgos_5x = cms.VPSet(full_5x_chs,cutbased)
10 _chsalgos = _chsalgos_5x
11 
12 import os
13 try:
14  cmssw_version = os.environ["CMSSW_VERSION"].replace("CMSSW_","")
15 except:
16  cmssw_version = "5_X"
17 
18 if cmssw_version.startswith("4"):
19  _stdalgos = _stdalgos_4x
20  _chsalgos = _chsalgos_4x
21 else:
22  _stdalgos = _stdalgos_5x
23  _chsalgos = _chsalgos_5x
24 
25 pileupJetIdProducer = cms.EDProducer('PileupJetIdProducer',
26  produceJetIds = cms.bool(True),
27  jetids = cms.InputTag(""),
28  runMvas = cms.bool(True),
29  jets = cms.InputTag("selectedPatJetsPFlow"),
30  vertexes = cms.InputTag("offlinePrimaryVertices"),
31  algos = cms.VPSet(_stdalgos),
32 
33  rho = cms.InputTag("kt6PFJets","rho"),
34  jec = cms.string("AK5PF"),
35  applyJec = cms.bool(False),
36  inputIsCorrected = cms.bool(True),
37  residualsFromTxt = cms.bool(False),
38  residualsTxt = cms.FileInPath("RecoJets/JetProducers/data/dummy.txt"),
39 )
40 
41 pileupJetIdProducerChs = cms.EDProducer('PileupJetIdProducer',
42  produceJetIds = cms.bool(True),
43  jetids = cms.InputTag(""),
44  runMvas = cms.bool(True),
45  jets = cms.InputTag("selectedPatJetsPFlow"),
46  vertexes = cms.InputTag("offlinePrimaryVertices"),
47  algos = cms.VPSet(_chsalgos),
48 
49  rho = cms.InputTag("kt6PFJets","rho"),
50  jec = cms.string("AK5PFchs"),
51  applyJec = cms.bool(False),
52  inputIsCorrected = cms.bool(True),
53  residualsFromTxt = cms.bool(False),
54  residualsTxt = cms.FileInPath("RecoJets/JetProducers/data/dummy.txt"),
55 
56 )
57 
def replace
Definition: linker.py:10