CMS 3D CMS Logo

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 _chsalgos_81x = cms.VPSet(full_81x_chs,cutbased)
14 
15 _stdalgos = _chsalgos_81x
16 
17 # Calculate+store variables and run MVAs
18 pileupJetId = cms.EDProducer('PileupJetIdProducer',
19  produceJetIds = cms.bool(True),
20  jetids = cms.InputTag(""),
21  runMvas = cms.bool(True),
22  jets = cms.InputTag("ak4PFJetsCHS"),
23  vertexes = cms.InputTag("offlinePrimaryVertices"),
24  algos = cms.VPSet(_stdalgos),
25  rho = cms.InputTag("fixedGridRhoFastjetAll"),
26  jec = cms.string("AK4PFchs"),
27  applyJec = cms.bool(True),
28  inputIsCorrected = cms.bool(False),
29  residualsFromTxt = cms.bool(False),
30  usePuppi = cms.bool(False),
31 # residualsTxt = cms.FileInPath("RecoJets/JetProducers/data/download.url") # must be an existing file
32 )
33 
34 # Calculate variables, but don't run MVAs
35 pileupJetIdCalculator = pileupJetId.clone(
36  runMvas = cms.bool(False),
37  algos = cms.VPSet(cutbased),
38 )
39 
40 # Run MVAs on precalculated variables
41 pileupJetIdEvaluator = pileupJetId.clone(
42  produceJetIds = cms.bool(False),
43  jetids = cms.InputTag("pileupJetIdCalculator"),
44 )
45 
46 pileUpJetIDTask = cms.Task(pileupJetId,
47  pileupJetIdCalculator,
48  pileupJetIdEvaluator
49 )