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.
1 import FWCore.ParameterSet.Config as cms
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_74x = cms.VPSet(full_74x_chs,cutbased)
11 _chsalgos_76x = cms.VPSet(full_76x_chs,cutbased)
12 _chsalgos_80x = cms.VPSet(full_80x_chs,cutbased)
13 
14 _stdalgos = _chsalgos_80x
15 
16 # Calculate+store variables and run MVAs
17 pileupJetId = cms.EDProducer('PileupJetIdProducer',
18  produceJetIds = cms.bool(True),
19  jetids = cms.InputTag(""),
20  runMvas = cms.bool(True),
21  jets = cms.InputTag("ak4PFJetsCHS"),
22  vertexes = cms.InputTag("offlinePrimaryVertices"),
23  algos = cms.VPSet(_stdalgos),
24  rho = cms.InputTag("fixedGridRhoFastjetAll"),
25  jec = cms.string("AK4PFchs"),
26  applyJec = cms.bool(True),
27  inputIsCorrected = cms.bool(False),
28  residualsFromTxt = cms.bool(False),
29 # residualsTxt = cms.FileInPath("RecoJets/JetProducers/data/download.url") # must be an existing file
30 )
31 
32 # Calculate variables, but don't run MVAs
33 pileupJetIdCalculator = pileupJetId.clone(
34  runMvas = cms.bool(False),
35  algos = cms.VPSet(cutbased),
36 )
37 
38 # Run MVAs on precalculated variables
39 pileupJetIdEvaluator = pileupJetId.clone(
40  produceJetIds = cms.bool(False),
41  jetids = cms.InputTag("pileupJetIdCalculator"),
42 )