CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TruthTauDecayModeProducer_cfi.py
Go to the documentation of this file.
2 
4 
5 """
6 Build PFTauDecayModes containing Monte Carlo objects
7 They either contain the visible decay products of taus selected by
8 the 'mcDecayedTaus' package or all of the consituents of a QCD GenJet
9 """
10 
11 mcDecayedTaus = cms.EDFilter("PdgIdAndStatusCandViewSelector",
12  status = cms.vint32(2),
13  src = cms.InputTag("genParticles"),
14  pdgId = cms.vint32(15, -15)
15 )
16 
17 makeMCTauDecayModes = cms.EDProducer("TruthTauDecayModeProducer",
18  totalEtaCut = cms.double(2.5),
19  inputTag = cms.InputTag("mcDecayedTaus"),
20  leadTrackEtaCut = cms.double(2.5),
21  leadTrackPtCut = cms.double(-1.0),
22  totalPtCut = cms.double(5.0),
23  iAmSignal = cms.bool(True)
24 )
25 
26 makeMCQCDTauDecayModes = makeMCTauDecayModes.clone(
27  totalEtaCut = cms.double(2.5),
28  inputTag = cms.InputTag("ak4GenJets"),
29  leadTrackEtaCut = cms.double(2.5),
30  leadTrackPtCut = cms.double(-1.0),
31  totalPtCut = cms.double(5.0),
32  iAmSignal = cms.bool(False)
33 )
34 
35 makeMC = cms.Sequence(mcDecayedTaus*makeMCTauDecayModes)
36 
37 makeMCQCD = cms.Sequence(makeMCQCDTauDecayModes)
38