ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/HbbAnalysis/python/pfMetConfig_cff.py
Revision: 1.1
Committed: Wed Apr 15 12:03:00 2009 UTC (16 years ago) by amagnan
Content type: text/x-python
Branch: MAIN
CVS Tags: v00-03-00, v00-02-01, v00-02-00, v00-01-00
Log Message:
add python configuration files

File Contents

# User Rev Content
1 amagnan 1.1 ########################################
2     #### Created 08-Apr-09
3     #### by A.-M. Magnan
4     #### a.magnan@imperial.ac.uk
5     ########################################
6    
7     import FWCore.ParameterSet.Config as cms
8     import copy
9    
10     from UserCode.HbbAnalysis.metConfig_cff import *
11    
12     ######################################################################################
13     #### PAT layer 0
14     ######################################################################################
15    
16     allLayer0pfMETsForTauAnalyses = cms.EDFilter("PATBaseMETCleaner",
17     ## Input MET from AOD
18     metSource = cms.InputTag('pfMet'), ## met corrected for jets and for muons
19     markItems = cms.bool(True), ## write the status flags in the output items
20     bitsToIgnore = cms.vstring(), ## You can specify some bit names, e.g. "Overflow/User1", "Core/Duplicate", "Isolation/All".
21     saveRejected = cms.string(''), ## set this to a non empty label to save the list of items which fail
22     saveAll = cms.string(''), ## set this to a non empty label to save a list of all items both passing and failing
23     )
24    
25    
26     ######################################################################################
27     #### PAT layer 1
28     ######################################################################################
29    
30     from PhysicsTools.PatAlgos.producersLayer1.metProducer_cff import *
31    
32     allLayer1pfMETsForTauAnalyses = copy.deepcopy(allLayer1METsForTauAnalyses)
33     allLayer1pfMETsForTauAnalyses.metSource = cms.InputTag("allLayer0pfMETsForTauAnalyses")
34    
35     allLayer1pfMETsForTauAnalyses.addMuonCorrections = cms.bool(False)
36     #allLayer1pfMETsForTauAnalyses.muonSource = cms.InputTag("muons") ## muon input source for corrections
37    
38     allLayer1pfMETsForTauAnalyses.addTrigMatch = cms.bool(False)
39     #allLayer1pfMETsForTauAnalyses.trigPrimMatch = cms.VInputTag(cms.InputTag("metTrigMatchHLT1MET65"))
40    
41     allLayer1pfMETsForTauAnalyses.addGenMET = cms.bool(True)
42     allLayer1pfMETsForTauAnalyses.genMETSource = cms.InputTag("genMet") ## GenMET source to be used for the matching
43    
44     ######################################################################################
45     #### Final PAT sequences
46     ######################################################################################
47    
48     patpfMetForTauAnalyses = cms.Sequence( #patAODJetMETCorrectionsForTauAnalyses
49     allLayer0pfMETsForTauAnalyses
50     *allLayer1pfMETsForTauAnalyses
51     )