CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/Validation/EventGenerator/python/TTbar_Validation_cfi.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 TTbarAnalyzeSpinCorr = cms.EDAnalyzer("TTbarSpinCorrHepMCAnalyzer",
00004                                       genEventInfoProductTag = cms.InputTag("generator"),
00005                                       genParticlesTag = cms.InputTag("genParticles")
00006                                       )
00007 
00008 from GeneratorInterface.LHEInterface.lheCOMWeightProducer import *
00009 lheCOMWeightProducer.NewECMS = cms.double(8000)
00010 
00011 ## produce TtGenEvt
00012 from TopQuarkAnalysis.TopEventProducers.sequences.ttGenEvent_cff import *
00013 decaySubset.fillMode = "kME"
00014 decaySubset.addRadiation = False
00015 
00016 ## get lorentzvectors
00017 analyzeTopKinematics = cms.EDAnalyzer('TTbar_Kinematics',
00018                                       SaveTree = cms.untracked.bool(False),
00019                                       genEventInfoProductTag = cms.InputTag("generator")
00020                                       )
00021 
00022 ## analyze genjets
00023 analyzeGenJets = cms.EDAnalyzer("TTbar_GenJetAnalyzer",
00024                                 jets = cms.InputTag('ak5GenJets' ),
00025                                 genEventInfoProductTag = cms.InputTag("generator")
00026                                 )
00027 
00028 # --- Create list of interesting genParticles ---
00029 from SimGeneral.HepPDTESSource.pythiapdt_cfi import *
00030 
00031 # --- ShortList is to prevent running multiple times over full particle list ---
00032 #see https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideGenParticlePruner
00033 
00034 genParticlesShortList = cms.EDProducer("GenParticlePruner",
00035                                        src = cms.InputTag("genParticles",""),
00036                                        select = cms.vstring("drop  *  ",
00037                                                             "keep pdgId = {mu+}      & status = 1",
00038                                                             "keep pdgId = {mu-}      & status = 1",
00039                                                             "keep pdgId = {e+}       & status = 1",
00040                                                             "keep pdgId = {e-}       & status = 1",
00041                                                             "keep pdgId = {nu_e}     & status = 1",
00042                                                             "keep pdgId = {nu_ebar}  & status = 1",
00043                                                             "keep pdgId = {nu_mu}    & status = 1",
00044                                                             "keep pdgId = {nu_mubar} & status = 1"
00045                                                             )
00046                                        )
00047 
00048 #see https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideGenParticlePruner
00049 genParticlesMuons     = cms.EDProducer("GenParticlePruner",
00050                                        src = cms.InputTag("genParticlesShortList"),
00051                                        select = cms.vstring("drop  *  ",
00052                                                             "keep pdgId = {mu+} & status = 1 & pt > 30 & abs(eta) < 2.5",
00053                                                             "keep pdgId = {mu-} & status = 1 & pt > 30 & abs(eta) < 2.5"
00054                                                             )
00055                                        )
00056 
00057 #see https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideGenParticlePruner
00058 genParticlesElectrons = cms.EDProducer("GenParticlePruner",
00059                                        src = cms.InputTag("genParticlesShortList"),
00060                                        select = cms.vstring("drop  *  ",
00061                                                             "keep pdgId = {e+} & status = 1 & pt > 30 & abs(eta) < 2.5",
00062                                                             "keep pdgId = {e-} & status = 1 & pt > 30 & abs(eta) < 2.5"
00063                                                             )
00064                                        )
00065 
00066 #see https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideGenParticlePruner
00067 genParticlesNeutrinos = cms.EDProducer("GenParticlePruner",
00068                                        src = cms.InputTag("genParticlesShortList"),
00069                                        select = cms.vstring("drop  *  ",
00070                                                             "keep pdgId = {nu_e}     & status = 1",
00071                                                             "keep pdgId = {nu_ebar}  & status = 1",
00072                                                             "keep pdgId = {nu_mu}    & status = 1",
00073                                                             "keep pdgId = {nu_mubar} & status = 1"
00074                                                             )
00075                                        )
00076 
00077 ## analyze gen leptons
00078 analyzeGenMuons = cms.EDAnalyzer("TTbar_GenLepAnalyzer", leptons = cms.InputTag('genParticlesMuons' ))
00079 analyzeGenElecs = cms.EDAnalyzer("TTbar_GenLepAnalyzer", leptons = cms.InputTag('genParticlesElectrons' ))
00080 analyzeGenNtrns = cms.EDAnalyzer("TTbar_GenLepAnalyzer", leptons = cms.InputTag('genParticlesNeutrinos' ))
00081 
00082 
00083