CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
mvaPFMET_Data_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 calibratedAK5PFJetsForPFMEtMVA = cms.EDProducer('PFJetCorrectionProducer',
11  src = cms.InputTag('ak5PFJets'),
12  correctors = cms.vstring("ak5PFL1FastL2L3Residual") # NOTE: use "ak5PFL1FastL2L3" for MC / "ak5PFL1FastL2L3Residual" for Data
13 )
14 
15 pfMEtMVA = cms.EDProducer("PFMETProducerMVA",
16  srcCorrJets = cms.InputTag('calibratedAK5PFJetsForPFMEtMVA'),
17  srcUncorrJets = cms.InputTag('ak5PFJets'),
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  srcRho = cms.InputTag('kt6PFJets','rho'),
23  globalThreshold = cms.double(-1.),#pfMet.globalThreshold,
24  minCorrJetPt = cms.double(-1.),
25  inputFileNames = cms.PSet(
26  U = cms.FileInPath('RecoMET/METPUSubtraction/data/gbrmet_53_Dec2012.root'),
27  DPhi = cms.FileInPath('RecoMET/METPUSubtraction/data/gbrmetphi_53_Dec2012.root'),
28  CovU1 = cms.FileInPath('RecoMET/METPUSubtraction/data/gbru1cov_53_Dec2012.root'),
29  CovU2 = cms.FileInPath('RecoMET/METPUSubtraction/data/gbru2cov_53_Dec2012.root')
30  ),
31  corrector = cms.string("ak5PFL1Fastjet"),
32  useType1 = cms.bool(True),
33  useOld42 = cms.bool(False),
34  dZcut = cms.double(0.1),
35  impactParTkThreshold = cms.double(0.),
36  tmvaWeights = cms.string("RecoJets/JetProducers/data/TMVAClassificationCategory_JetID_MET_53X_Dec2012.weights.xml.gz"),
37  tmvaMethod = cms.string("JetID"),
38  version = cms.int32(-1),
39  cutBased = cms.bool(False),
40  tmvaVariables = cms.vstring(
41  "nvtx",
42  "jetPt",
43  "jetEta",
44  "jetPhi",
45  "dZ",
46  "beta",
47  "betaStar",
48  "nCharged",
49  "nNeutrals",
50  "dR2Mean",
51  "ptD",
52  "frac01",
53  "frac02",
54  "frac03",
55  "frac04",
56  "frac05",
57  ),
58  tmvaSpectators = cms.vstring(),
59  JetIdParams = JetIdParams,
60  label = cms.string("53XMet"),
61  verbosity = cms.int32(0)
62 )
63 
64 pfMEtMVATask = cms.Task(
65  #isomuonTask, isotauTask, isoelectronTask,
66  calibratedAK4PFJetsForPFMEtMVA,
67  pfMEtMVA
68 )
69 pfMEtMVAsequence = cms.Sequence(pfMEtMVATask)