CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PFEmbeddingSource_cff.py
Go to the documentation of this file.
1 # -*- coding: utf-8 -*-
2 import FWCore.ParameterSet.Config as cms
3 import os
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 
20 
21 
22 #source = cms.Source("EmptySource")
23 
24 source = cms.Source("PoolSource",
25  skipEvents = cms.untracked.uint32(0),
26  fileNames = cms.untracked.vstring('file:/tmp/fruboes/Zmumu/patLayer1_fromAOD_PF2PAT_full.root')
27 )
28 
29 
30 if os.path.exists("/storage/6/zeise/temp/goldenZmumuEvents_RAW_RECO_9_1_EzB.root"):
31  source.fileNames=cms.untracked.vstring("file:/storage/6/zeise/temp/goldenZmumuEvents_RAW_RECO_9_1_EzB.root")
32 if os.path.exists("/scratch/scratch0/tfruboes/2011.04.Embedding/CMSSW_4_1_4/DATA/goldenZmumu500.root"):
33  source.fileNames=cms.untracked.vstring("file:/scratch/scratch0/tfruboes/2011.04.Embedding/CMSSW_4_1_4/DATA/goldenZmumu500.root")
34 
35 filterEmptyEv = cms.EDFilter("EmptyEventsFilter",
36  target = cms.untracked.int32(1),
37  src = cms.untracked.InputTag("generator","","HLT2")
38 )
39 
40 #adaptedMuonsFromDiTauCands = cms.EDProducer("CompositePtrCandidateT1T2MEtAdapter",
41 # diTau = cms.untracked.InputTag("zMuMuCandsMuEta"),
42 # pfCands = cms.untracked.InputTag("particleFlow","")
43 #)
44 
45 #inputColl = cms.InputTag("adaptedMuonsFromDiTauCands","zMusExtracted")
46 inputColl = cms.InputTag("goldenZmumuCandidatesGe2IsoMuons")
47 
48 # Removes input muons from tracks and PF candidate collections
49 removedInputMuons = cms.EDProducer('ZmumuPFEmbedder',
50  tracks = cms.InputTag("generalTracks"),
51  selectedMuons = inputColl,
52  keepMuonTrack = cms.bool(False),
53  useCombinedCandidate = cms.untracked.bool(True),
54 )
55 
56 generator = newSource.clone()
57 generator.src = inputColl
58 
59 #ProductionFilterSequence = cms.Sequence(adaptedMuonsFromDiTauCands*removedInputMuons*generator*filterEmptyEv)
60 ProductionFilterSequence = cms.Sequence(removedInputMuons*generator*filterEmptyEv)
61 #ProductionFilterSequence = cms.Sequence(generator)