CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PFEmbeddingSource_Wemb_cff.py
Go to the documentation of this file.
1 # -*- coding: utf-8 -*-
2 import FWCore.ParameterSet.Config as cms
3 
4 
6 
7 TauolaNoPolar = cms.PSet(
8  UseTauolaPolarization = cms.bool(False)
9 )
10 TauolaPolar = cms.PSet(
11  UseTauolaPolarization = cms.bool(True)
12 )
13 
14 
16 newSource.algorithm = "ZTauTau"
17 newSource.ZTauTau.TauolaOptions.InputCards.mdtau = cms.int32(0)
18 newSource.ZTauTau.minVisibleTransverseMomentum = cms.untracked.double(0)
19 newSource.ZTauTau.transformationMode = cms.untracked.int32(3)
20 
21 source = cms.Source("PoolSource",
22  skipEvents = cms.untracked.uint32(0),
23  fileNames = cms.untracked.vstring('file:patTuple_PF2PAT.root')
24 )
25 
26 filterEmptyEv = cms.EDFilter("EmptyEventsFilter",
27  minEvents = cms.untracked.int32(1),
28  target = cms.untracked.int32(1)
29 )
30 
31 adaptedMuonsFromWmunu = cms.EDProducer("PATMuonMETAdapter",
32  patMuCands = cms.untracked.InputTag("patMuonsPFlow"),
33  patMet = cms.untracked.InputTag("patMETsPFlow")
34 )
35 
36 # Removes input muon from tracks and PF candidate collections
37 removedInputMuons = cms.EDProducer('ZmumuPFEmbedder',
38  tracks = cms.InputTag("generalTracks"),
39  selectedMuons = cms.InputTag("adaptedMuonsFromWmunu","zMusExtracted"),
40  keepMuonTrack = cms.bool(False)
41 )
42 
43 generator = newSource.clone()
44 generator.src = cms.InputTag("adaptedMuonsFromWmunu","zMusExtracted")
45 
46 ProductionFilterSequence = cms.Sequence(adaptedMuonsFromWmunu*removedInputMuons*generator*filterEmptyEv)