CMS 3D CMS Logo

TTbar_Validation_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
4 TTbarAnalyzeSpinCorr = DQMEDAnalyzer('TTbarSpinCorrHepMCAnalyzer',
5  genEventInfoProductTag = cms.InputTag("generator"),
6  genParticlesTag = cms.InputTag("genParticles")
7  )
8 
10 lheCOMWeightProducer.NewECMS = cms.double(8000)
11 
12 
13 
14 analyzeTopKinematics = DQMEDAnalyzer('TTbar_Kinematics',
15  SaveTree = cms.untracked.bool(False),
16  hepmcCollection = cms.InputTag("generatorSmeared"),
17  genEventInfoProductTag = cms.InputTag("generator")
18  )
19 
20 
21 analyzeGenJets = DQMEDAnalyzer('TTbar_GenJetAnalyzer',
22  jets = cms.InputTag('ak4GenJets' ),
23  genEventInfoProductTag = cms.InputTag("generator")
24  )
25 
26 # --- Create list of interesting genParticles ---
28 
29 # --- ShortList is to prevent running multiple times over full particle list ---
30 #see https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideGenParticlePruner
31 
32 genParticlesShortList = cms.EDProducer("GenParticlePruner",
33  src = cms.InputTag("genParticles",""),
34  select = cms.vstring("drop * ",
35  "keep pdgId = {mu+} & status = 1",
36  "keep pdgId = {mu-} & status = 1",
37  "keep pdgId = {e+} & status = 1",
38  "keep pdgId = {e-} & status = 1",
39  "keep pdgId = {nu_e} & status = 1",
40  "keep pdgId = {nu_ebar} & status = 1",
41  "keep pdgId = {nu_mu} & status = 1",
42  "keep pdgId = {nu_mubar} & status = 1"
43  )
44  )
45 
46 #see https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideGenParticlePruner
47 genParticlesMuons = cms.EDProducer("GenParticlePruner",
48  src = cms.InputTag("genParticlesShortList"),
49  select = cms.vstring("drop * ",
50  "keep pdgId = {mu+} & status = 1 & pt > 30 & abs(eta) < 2.5",
51  "keep pdgId = {mu-} & status = 1 & pt > 30 & abs(eta) < 2.5"
52  )
53  )
54 
55 #see https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideGenParticlePruner
56 genParticlesElectrons = cms.EDProducer("GenParticlePruner",
57  src = cms.InputTag("genParticlesShortList"),
58  select = cms.vstring("drop * ",
59  "keep pdgId = {e+} & status = 1 & pt > 30 & abs(eta) < 2.5",
60  "keep pdgId = {e-} & status = 1 & pt > 30 & abs(eta) < 2.5"
61  )
62  )
63 
64 #see https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideGenParticlePruner
65 genParticlesNeutrinos = cms.EDProducer("GenParticlePruner",
66  src = cms.InputTag("genParticlesShortList"),
67  select = cms.vstring("drop * ",
68  "keep pdgId = {nu_e} & status = 1",
69  "keep pdgId = {nu_ebar} & status = 1",
70  "keep pdgId = {nu_mu} & status = 1",
71  "keep pdgId = {nu_mubar} & status = 1"
72  )
73  )
74 
75 
76 analyzeGenMuons = DQMEDAnalyzer('TTbar_GenLepAnalyzer', leptons = cms.InputTag('genParticlesMuons' ))
77 analyzeGenElecs = DQMEDAnalyzer('TTbar_GenLepAnalyzer', leptons = cms.InputTag('genParticlesElectrons' ))
78 analyzeGenNtrns = DQMEDAnalyzer('TTbar_GenLepAnalyzer', leptons = cms.InputTag('genParticlesNeutrinos' ))
79 
80 
81