ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/HbbAnalysis/python/tcMetConfig_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    
11     from UserCode.HbbAnalysis.metConfig_cff import *
12    
13    
14     ######################################################################################
15     #### PAT layer 0
16     ######################################################################################
17    
18     allLayer0tcMETsForTauAnalyses = cms.EDFilter("PATBaseMETCleaner",
19     ## Input MET from AOD
20     metSource = cms.InputTag('tcMet'), ## met corrected for jets and for muons
21     markItems = cms.bool(True), ## write the status flags in the output items
22     bitsToIgnore = cms.vstring(), ## You can specify some bit names, e.g. "Overflow/User1", "Core/Duplicate", "Isolation/All".
23     saveRejected = cms.string(''), ## set this to a non empty label to save the list of items which fail
24     saveAll = cms.string(''), ## set this to a non empty label to save a list of all items both passing and failing
25     )
26    
27    
28     ######################################################################################
29     #### PAT layer 1
30     ######################################################################################
31    
32     from PhysicsTools.PatAlgos.producersLayer1.metProducer_cff import *
33    
34     allLayer1tcMETsForTauAnalyses = copy.deepcopy(allLayer1METsForTauAnalyses)
35     allLayer1tcMETsForTauAnalyses.metSource = cms.InputTag("allLayer0tcMETsForTauAnalyses")
36    
37     allLayer1tcMETsForTauAnalyses.addMuonCorrections = cms.bool(False)
38     #allLayer1tcMETsForTauAnalyses.muonSource = cms.InputTag("muons") ## muon input source for corrections
39    
40     allLayer1tcMETsForTauAnalyses.addTrigMatch = cms.bool(False)
41     #allLayer1tcMETsForTauAnalyses.trigPrimMatch = cms.VInputTag(cms.InputTag("metTrigMatchHLT1MET65"))
42    
43     allLayer1tcMETsForTauAnalyses.addGenMET = cms.bool(True)
44     allLayer1tcMETsForTauAnalyses.genMETSource = cms.InputTag("genMet") ## GenMET source to be used for the matching
45    
46    
47     ######################################################################################
48     #### Final PAT sequences
49     ######################################################################################
50    
51     pattcMetForTauAnalyses = cms.Sequence( #patAODJetMETCorrectionsForTauAnalyses
52     allLayer0tcMETsForTauAnalyses
53     *allLayer1tcMETsForTauAnalyses
54     )