CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/TauAnalysis/MCEmbeddingTools/python/PFEmbeddingSource_cff.py

Go to the documentation of this file.
00001 # -*- coding: utf-8 -*-
00002 import FWCore.ParameterSet.Config as cms
00003 import os
00004   
00005 from Configuration.generator.PythiaUESettings_cfi import *
00006 
00007 TauolaNoPolar = cms.PSet(
00008     UseTauolaPolarization = cms.bool(False)
00009 )
00010 TauolaPolar = cms.PSet(
00011    UseTauolaPolarization = cms.bool(True)
00012 )
00013 
00014 
00015 from TauAnalysis.MCEmbeddingTools.MCParticleReplacer_cfi import *
00016 newSource.algorithm = "ZTauTau"
00017 newSource.ZTauTau.TauolaOptions.InputCards.mdtau = cms.int32(0)
00018 newSource.ZTauTau.minVisibleTransverseMomentum = cms.untracked.double(0)
00019 
00020 
00021 
00022 #source = cms.Source("EmptySource")
00023 
00024 source = cms.Source("PoolSource",
00025         skipEvents = cms.untracked.uint32(0),
00026         fileNames = cms.untracked.vstring('file:/tmp/fruboes/Zmumu/patLayer1_fromAOD_PF2PAT_full.root')
00027 )
00028 
00029 
00030 if os.path.exists("/storage/6/zeise/temp/goldenZmumuEvents_RAW_RECO_9_1_EzB.root"):
00031         source.fileNames=cms.untracked.vstring("file:/storage/6/zeise/temp/goldenZmumuEvents_RAW_RECO_9_1_EzB.root")
00032 if os.path.exists("/scratch/scratch0/tfruboes/2011.04.Embedding/CMSSW_4_1_4/DATA/goldenZmumu500.root"):
00033         source.fileNames=cms.untracked.vstring("file:/scratch/scratch0/tfruboes/2011.04.Embedding/CMSSW_4_1_4/DATA/goldenZmumu500.root")
00034 
00035 filterEmptyEv = cms.EDFilter("EmptyEventsFilter",
00036     target = cms.untracked.int32(1),
00037     src = cms.untracked.InputTag("generator","","HLT2")
00038 )
00039 
00040 #adaptedMuonsFromDiTauCands = cms.EDProducer("CompositePtrCandidateT1T2MEtAdapter",
00041 #    diTau  = cms.untracked.InputTag("zMuMuCandsMuEta"),
00042 #    pfCands = cms.untracked.InputTag("particleFlow","")
00043 #)
00044 
00045 #inputColl = cms.InputTag("adaptedMuonsFromDiTauCands","zMusExtracted")
00046 inputColl = cms.InputTag("goldenZmumuCandidatesGe2IsoMuons")
00047 
00048 # Removes input muons from tracks and PF candidate collections
00049 removedInputMuons = cms.EDProducer('ZmumuPFEmbedder',
00050     tracks = cms.InputTag("generalTracks"),
00051     selectedMuons = inputColl,
00052     keepMuonTrack = cms.bool(False),
00053     useCombinedCandidate = cms.untracked.bool(True),
00054 )
00055 
00056 generator = newSource.clone()
00057 generator.src = inputColl
00058 
00059 #ProductionFilterSequence = cms.Sequence(adaptedMuonsFromDiTauCands*removedInputMuons*generator*filterEmptyEv)
00060 ProductionFilterSequence = cms.Sequence(removedInputMuons*generator*filterEmptyEv)
00061 #ProductionFilterSequence = cms.Sequence(generator)