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