CMS 3D CMS Logo

TauTruthProduction_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from PhysicsTools.JetMCAlgos.TauGenJets_cfi import tauGenJets
5 from RecoJets.JetProducers.ak4GenJets_cfi import ak4GenJets
6 from RecoJets.Configuration.GenJetParticles_cff import genParticlesForJets
7 
8 trueHadronicTaus = cms.EDFilter(
9  "TauGenJetDecayModeSelector",
10  src = cms.InputTag("tauGenJets"),
11  select = cms.vstring(
12  'oneProng0Pi0', 'oneProng1Pi0', 'oneProng2Pi0', 'oneProngOther',
13  'threeProng0Pi0', 'threeProng1Pi0', 'threeProngOther', 'rare'),
14  filter = cms.bool(False)
15 )
16 
17 trueCommonHadronicTaus = trueHadronicTaus.clone(
18  src = cms.InputTag("tauGenJets"),
19  select = cms.vstring(
20  'oneProng0Pi0', 'oneProng1Pi0', 'oneProng2Pi0',
21  'threeProng0Pi0', 'threeProng1Pi0'),
22  filter = cms.bool(False)
23 )
24 
25 trueMuonicTaus = trueHadronicTaus.clone(
26  src = cms.InputTag("tauGenJets"),
27  select = cms.vstring('muon'),
28  filter = cms.bool(False)
29 )
30 
31 trueElecronicTaus = trueHadronicTaus.clone(
32  src = cms.InputTag("tauGenJets"),
33  select = cms.vstring('electron'),
34  filter = cms.bool(False)
35 )
36 
37 tauTruthSequence = cms.Sequence(
38  genParticles *
39  genParticlesForJets *
40  ak4GenJets *
41  tauGenJets *
42  trueHadronicTaus *
43  trueMuonicTaus *
44  trueElecronicTaus)