CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
mvaPFMET_leptons_cff.py
Go to the documentation of this file.
1 
2 import FWCore.ParameterSet.Config as cms
3 
4 #from RecoMET.METProducers.PFMET_cfi import pfMet
9 
10 calibratedAK4PFJetsForPFMEtMVA = cms.EDProducer('PFJetCorrectionProducer',
11  src = cms.InputTag('ak4PFJets'),
12  correctors = cms.vstring("ak4PFL1FastL2L3") # NOTE: use "ak4PFL1FastL2L3" for MC / "ak4PFL1FastL2L3Residual" for Data
13 )
14 
15 pfMEtMVA = cms.EDProducer("PFMETProducerMVA",
16  srcCorrJets = cms.InputTag('calibratedAK4PFJetsForPFMEtMVA'),
17  srcUncorrJets = cms.InputTag('ak4PFJets'),
18  srcPFCandidates = cms.InputTag('particleFlow'),
19  srcVertices = cms.InputTag('offlinePrimaryVertices'),
20  srcLeptons = cms.VInputTag(),#"isomuons","isoelectrons","isotaus") # NOTE: you need to set this to collections of electrons, muons and tau-jets
21  # passing the lepton reconstruction & identification criteria applied in your analysis
22  minNumLeptons = cms.int32(0),
23  srcRho = cms.InputTag('kt6PFJets','rho'),
24  globalThreshold = cms.double(-1.),#pfMet.globalThreshold,
25  minCorrJetPt = cms.double(-1.),
26  inputFileNames = cms.PSet(
27  U = cms.FileInPath('RecoMET/METPUSubtraction/data/gbrmet_53_June2013_type1.root'),
28  DPhi = cms.FileInPath('RecoMET/METPUSubtraction/data/gbrmetphi_53_June2013_type1.root'),
29  CovU1 = cms.FileInPath('RecoMET/METPUSubtraction/data/gbru1cov_53_Dec2012.root'),
30  CovU2 = cms.FileInPath('RecoMET/METPUSubtraction/data/gbru2cov_53_Dec2012.root')
31  ),
32  loadMVAfromDB = cms.bool(False),
33  is42 = cms.bool(False), # CV: set this flag to true if you are running mvaPFMET in CMSSW_4_2_x
34  corrector = cms.string("ak4PFL1Fastjet"),
35  useType1 = cms.bool(True),
36  useOld42 = cms.bool(False),
37  dZcut = cms.double(0.1),
38  impactParTkThreshold = cms.double(0.),
39  tmvaWeights = cms.string("RecoJets/JetProducers/data/TMVAClassificationCategory_JetID_MET_53X_Dec2012.weights.xml"),
40  tmvaMethod = cms.string("JetID"),
41  version = cms.int32(-1),
42  cutBased = cms.bool(False),
43  tmvaVariables = cms.vstring(
44  "nvtx",
45  "jetPt",
46  "jetEta",
47  "jetPhi",
48  "dZ",
49  "beta",
50  "betaStar",
51  "nCharged",
52  "nNeutrals",
53  "dR2Mean",
54  "ptD",
55  "frac01",
56  "frac02",
57  "frac03",
58  "frac04",
59  "frac05",
60  ),
61  tmvaSpectators = cms.vstring(),
62  JetIdParams = JetIdParams,
63  verbosity = cms.int32(0)
64 )
65 
66 pfMEtMVAsequence = cms.Sequence(
67  (isomuonseq+isotauseq+isoelectronseq)*
68  calibratedAK4PFJetsForPFMEtMVA*
69  pfMEtMVA
70  )
71