CMS 3D CMS Logo

zMuMu_MCTruth_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 
6 goodMuonMCMatch.src = 'userDataMuons'
7 
9 goodTrackMCMatch.src = 'userDataTracks'
10 
12 #dimuonsMCMatch.src=cms.InputTag("userDataDimuons")
13 
15 #dimuonsOneTrackMCMatch.src=cms.InputTag("userDataDimuonsOneTrack")
16 
17 #allDimuonsMCMatch = cms.EDFilter("GenParticleMatchMerger",
18 # src = cms.VInputTag(cms.InputTag("goodMuonMCMatch"), cms.InputTag("goodTrackMCMatch"), cms.InputTag("dimuonsMCMatch")),
19 # filter = cms.bool(False)
20 #)
21 
22 allDimuonsMCMatch = cms.EDFilter("GenParticleMatchMerger",
23  src = cms.VInputTag(cms.InputTag("goodMuonMCMatch"), cms.InputTag("dimuonsMCMatch")),
24  filter = cms.bool(False)
25 )
26 
27 allDimuonsOneTrackMCMatch = cms.EDFilter("GenParticleMatchMerger",
28  src = cms.VInputTag(cms.InputTag("goodMuonMCMatch"), cms.InputTag("goodTrackMCMatch"), cms.InputTag("dimuonsOneTrackMCMatch")),
29  filter = cms.bool(False)
30 )
31 
32 # Different MCtruth sequences for different ZMuMu paths
33 mcTruthForDimuons = cms.Sequence(goodMuonMCMatch+dimuonsMCMatch+allDimuonsMCMatch)
34 mcTruthForDimuonsOneTrack = cms.Sequence(goodMuonMCMatch+goodTrackMCMatch+dimuonsOneTrackMCMatch+allDimuonsOneTrackMCMatch)
35 
36 #mcTruthForDimuons = cms.Sequence(goodMuonMCMatch+goodTrackMCMatch+dimuonsMCMatch+allDimuonsMCMatch)
37 
38 #mcTruthForDimuonsOneTrack = cms.Sequence(goodMuonMCMatch+goodTrackMCMatch+dimuonsOneTrackMCMatch)
39 
40 
41 #dimuonsMCTruth = cms.Path(dimuonsHLTFilter+
42 # mcTruthForDimuons
43 #)
44 
45 mcEventContent = cms.PSet(
46  outputCommands = cms.untracked.vstring(
47 
48  'keep *_genParticles_*_*',
49  'keep *_allDimuonsMCMatch_*_*',
50  'keep *_allDimuonsOneTrackMCMatch_*_*'
51  )
52 )
dimuonsMCMatch_cfi
dimuonsHLTFilter_cfi
goodTrackMCMatch_cfi
goodMuonMCMatch_cfi
dimuonsOneTrackMCMatch_cfi