test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
embeddingKineReweight_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 genTausFromZsForEmbeddingKineReweight = cms.EDProducer("GenParticlesFromZsSelectorForMCEmbedding",
4  src = cms.InputTag("genParticles"),
5  pdgIdsMothers = cms.vint32(23, 22),
6  pdgIdsDaughters = cms.vint32(15),
7  maxDaughters = cms.int32(2),
8  minDaughters = cms.int32(2),
9  before_or_afterFSR = cms.string("afterFSR")
10 )
11 genZdecayToTausForEmbeddingKineReweight = cms.EDProducer("CandViewShallowCloneCombiner",
12  checkCharge = cms.bool(True),
13  cut = cms.string('charge = 0'),
14  decay = cms.string("genTausFromZsForEmbeddingKineReweight@+ genTausFromZsForEmbeddingKineReweight@-")
15 )
16 
17 embeddingKineReweightGENembedding = cms.EDProducer("EmbeddingKineReweightProducer",
18  inputFileName = cms.FileInPath("TauAnalysis/MCEmbeddingTools/data/embeddingKineReweight_genEmbedding_mutau.root"),
19  lutNames = cms.PSet(
20  genTau2PtVsGenTau1Pt = cms.string('embeddingKineReweight_muon2Pt_vs_muon1Pt'),
21  genTau2EtaVsGenTau1Eta = cms.string('embeddingKineReweight_muon2Eta_vs_muon1Eta'),
22  genDiTauMassVsGenDiTauPt = cms.string('embeddingKineReweight_diMuonMass_vs_diMuonPt')
23  ),
24  srcGenDiTaus = cms.InputTag('genZdecayToTausForEmbeddingKineReweight'),
25  minWeight = cms.double(0.),
26  maxWeight = cms.double(1.e+1),
27  verbosity = cms.int32(0)
28 )
29 
30 embeddingKineReweightRECembedding = embeddingKineReweightGENembedding.clone(
31  inputFileName = cms.FileInPath("TauAnalysis/MCEmbeddingTools/data/embeddingKineReweight_recEmbedding_mutau.root"),
32  lutNames = cms.PSet(
33  genTau2PtVsGenTau1Pt = cms.string('embeddingKineReweight_muon2Pt_vs_muon1Pt'),
34  genTau2EtaVsGenTau1Eta = cms.string('embeddingKineReweight_muon2Eta_vs_muon1Eta'),
35  genDiTauMassVsGenDiTauPt = cms.string('embeddingKineReweight_diMuonMass_vs_diMuonPt')
36  ),
37  verbosity = cms.int32(0)
38 )
39 
40 #--------------------------------------------------------------------------------
41 # uncomment the following lines if producing kinematic reweight factors for the H -> tautau analysis
42 
43 # for "standard" e+tau channel
44 #embeddingKineReweightRECembedding.inputFileName = cms.FileInPath("TauAnalysis/MCEmbeddingTools/data/embeddingKineReweight_ePtGt20tauPtGt18_recEmbedded.root")
45 
46 # for e+tau channel of "soft lepton" analysis
47 #embeddingKineReweightRECembedding.inputFileName = cms.FileInPath("TauAnalysis/MCEmbeddingTools/data/embeddingKineReweight_ePt9to30tauPtGt18_recEmbedded.root")
48 
49 # for "standard" mu+tau channel
50 #embeddingKineReweightRECembedding.inputFileName = cms.FileInPath("TauAnalysis/MCEmbeddingTools/data/embeddingKineReweight_muPtGt16tauPtGt18_recEmbedded.root")
51 
52 # for mu+tau channel of "soft lepton" analysis
53 #embeddingKineReweightRECembedding.inputFileName = cms.FileInPath("TauAnalysis/MCEmbeddingTools/data/embeddingKineReweight_muPt7to25tauPtGt18_recEmbedded.root")
54 
55 # for tautau channel
56 #embeddingKineReweightRECembedding.inputFileName = cms.FileInPath("TauAnalysis/MCEmbeddingTools/data/embeddingKineReweight_tautau_recEmbedded.root")
57 
58 # for emu, mumu and ee channels
59 #embeddingKineReweightRECembedding.inputFileName = cms.FileInPath("TauAnalysis/MCEmbeddingTools/data/embeddingKineReweight_recEmbedding_emu.root")
60 #--------------------------------------------------------------------------------
61 
62 embeddingKineReweightSequenceGENembedding = cms.Sequence(
63  genTausFromZsForEmbeddingKineReweight
64  + genZdecayToTausForEmbeddingKineReweight
65  + embeddingKineReweightGENembedding
66 )
67 
68 embeddingKineReweightSequenceRECembedding = cms.Sequence(
69  genTausFromZsForEmbeddingKineReweight
70  + genZdecayToTausForEmbeddingKineReweight
71  + embeddingKineReweightRECembedding
72 )
73 
74 embeddingKineReweightSequence = cms.Sequence(
75  embeddingKineReweightSequenceGENembedding
76  + embeddingKineReweightSequenceRECembedding
77 )
78 
79 
80