CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
tauProducer_cfi.py
Go to the documentation of this file.
2 
3 patTaus = cms.EDProducer("PATTauProducer",
4  # input
5  tauSource = cms.InputTag("hpsPFTauProducer"),
6  tauTransverseImpactParameterSource = cms.InputTag("hpsPFTauTransverseImpactParameters"),
7 
8  # add user data
9  userData = cms.PSet(
10  # add custom classes here
11  userClasses = cms.PSet(
12  src = cms.VInputTag('')
13  ),
14  # add doubles here
15  userFloats = cms.PSet(
16  src = cms.VInputTag('')
17  ),
18  # add ints here
19  userInts = cms.PSet(
20  src = cms.VInputTag('')
21  ),
22  # add candidate ptrs here
23  userCands = cms.PSet(
24  src = cms.VInputTag('')
25  ),
26  # add "inline" functions here
27  userFunctions = cms.vstring(),
28  userFunctionLabels = cms.vstring()
29  ),
30 
31  # jet energy corrections
32  addTauJetCorrFactors = cms.bool(False),
33  tauJetCorrFactorsSource = cms.VInputTag(cms.InputTag("patTauJetCorrFactors")),
34 
35  # embedding objects (for Calo- and PFTaus)
36  embedLeadTrack = cms.bool(False), ## embed in AOD externally stored leading track
37  embedSignalTracks = cms.bool(False), ## embed in AOD externally stored signal tracks
38  embedIsolationTracks = cms.bool(False), ## embed in AOD externally stored isolation tracks
39  # embedding objects (for PFTaus only)
40  embedLeadPFCand = cms.bool(False), ## embed in AOD externally stored leading PFCandidate
41  embedLeadPFChargedHadrCand = cms.bool(False), ## embed in AOD externally stored leading PFChargedHadron candidate
42  embedLeadPFNeutralCand = cms.bool(False), ## embed in AOD externally stored leading PFNeutral Candidate
43  embedSignalPFCands = cms.bool(False), ## embed in AOD externally stored signal PFCandidates
44  embedSignalPFChargedHadrCands = cms.bool(False), ## embed in AOD externally stored signal PFChargedHadronCandidates
45  embedSignalPFNeutralHadrCands = cms.bool(False), ## embed in AOD externally stored signal PFNeutralHadronCandidates
46  embedSignalPFGammaCands = cms.bool(False), ## embed in AOD externally stored signal PFGammaCandidates
47  embedIsolationPFCands = cms.bool(False), ## embed in AOD externally stored isolation PFCandidates
48  embedIsolationPFChargedHadrCands = cms.bool(False), ## embed in AOD externally stored isolation PFChargedHadronCandidates
49  embedIsolationPFNeutralHadrCands = cms.bool(False), ## embed in AOD externally stored isolation PFNeutralHadronCandidates
50  embedIsolationPFGammaCands = cms.bool(False), ## embed in AOD externally stored isolation PFGammaCandidates
51 
52  # embed IsoDeposits
53  isoDeposits = cms.PSet(
54  pfAllParticles = cms.InputTag("tauIsoDepositPFCandidates"),
55  pfChargedHadron = cms.InputTag("tauIsoDepositPFChargedHadrons"),
56  pfNeutralHadron = cms.InputTag("tauIsoDepositPFNeutralHadrons"),
57  pfGamma = cms.InputTag("tauIsoDepositPFGammas")
58  ),
59 
60  # user defined isolation variables the variables defined here will be accessible
61  # via pat::Tau::userIsolation(IsolationKeys key) with the key as defined in
62  # DataFormats/PatCandidates/interface/Isolation.h
63  #
64  # (set Pt thresholds for PFChargedHadrons (PFGammas) to 1.0 (1.5) GeV,
65  # matching the thresholds used when computing the tau iso. discriminators
66  # in RecoTauTag/RecoTau/python/PFRecoTauDiscriminationByIsolation_cfi.py)
67  userIsolation = cms.PSet(
68  pfAllParticles = cms.PSet(
69  src = cms.InputTag("tauIsoDepositPFCandidates"),
70  deltaR = cms.double(0.5),
71  threshold = cms.double(0.)
72  ),
73  pfChargedHadron = cms.PSet(
74  src = cms.InputTag("tauIsoDepositPFChargedHadrons"),
75  deltaR = cms.double(0.5),
76  threshold = cms.double(0.)
77  ),
78  pfNeutralHadron = cms.PSet(
79  src = cms.InputTag("tauIsoDepositPFNeutralHadrons"),
80  deltaR = cms.double(0.5),
81  threshold = cms.double(0.)
82  ),
83  pfGamma = cms.PSet(
84  src = cms.InputTag("tauIsoDepositPFGammas"),
85  deltaR = cms.double(0.5),
86  threshold = cms.double(0.)
87  )
88  ),
89 
90  # tau ID (for efficiency studies)
91  addTauID = cms.bool(True),
92  tauIDSources = cms.PSet(
93  # configure many IDs as InputTag <someName> = <someTag>
94  # you can comment out those you don't want to save some
95  # disk space
96  decayModeFinding = cms.InputTag("hpsPFTauDiscriminationByDecayModeFinding"),
97  decayModeFindingNewDMs =cms.InputTag("hpsPFTauDiscriminationByDecayModeFindingNewDMs"),
98 # decayModeFindingOldDMs = cms.InputTag("hpsPFTauDiscriminationByDecayModeFindingOldDMs"),
99  # byCombinedIsolationDeltaBetaCorrRaw = cms.InputTag("hpsPFTauDiscriminationByRawCombinedIsolationDBSumPtCorr"),
100  # byVLooseCombinedIsolationDeltaBetaCorr = cms.InputTag("hpsPFTauDiscriminationByVLooseCombinedIsolationDBSumPtCorr"),
101  # byLooseCombinedIsolationDeltaBetaCorr = cms.InputTag("hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr"),
102  # byMediumCombinedIsolationDeltaBetaCorr = cms.InputTag("hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr"),
103  # byTightCombinedIsolationDeltaBetaCorr = cms.InputTag("hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr"),
104  chargedIsoPtSum = cms.InputTag("hpsPFTauMVA3IsolationChargedIsoPtSum"),
105  neutralIsoPtSum = cms.InputTag("hpsPFTauMVA3IsolationNeutralIsoPtSum"),
106  puCorrPtSum = cms.InputTag("hpsPFTauMVA3IsolationPUcorrPtSum"),
107  byIsolationMVA3oldDMwoLTraw = cms.InputTag('hpsPFTauDiscriminationByIsolationMVA3oldDMwoLTraw'),
108  byVLooseIsolationMVA3oldDMwoLT = cms.InputTag('hpsPFTauDiscriminationByVLooseIsolationMVA3oldDMwoLT'),
109  byLooseIsolationMVA3oldDMwoLT = cms.InputTag('hpsPFTauDiscriminationByLooseIsolationMVA3oldDMwoLT'),
110  byMediumIsolationMVA3oldDMwoLT = cms.InputTag('hpsPFTauDiscriminationByMediumIsolationMVA3oldDMwoLT'),
111  byTightIsolationMVA3oldDMwoLT = cms.InputTag('hpsPFTauDiscriminationByTightIsolationMVA3oldDMwoLT'),
112  byVTightIsolationMVA3oldDMwoLT = cms.InputTag('hpsPFTauDiscriminationByVTightIsolationMVA3oldDMwoLT'),
113  byVVTightIsolationMVA3oldDMwoLT = cms.InputTag('hpsPFTauDiscriminationByVVTightIsolationMVA3oldDMwoLT'),
114  byIsolationMVA3oldDMwLTraw = cms.InputTag('hpsPFTauDiscriminationByIsolationMVA3oldDMwLTraw'),
115  byVLooseIsolationMVA3oldDMwLT = cms.InputTag('hpsPFTauDiscriminationByVLooseIsolationMVA3oldDMwLT'),
116  byLooseIsolationMVA3oldDMwLT = cms.InputTag('hpsPFTauDiscriminationByLooseIsolationMVA3oldDMwLT'),
117  byMediumIsolationMVA3oldDMwLT = cms.InputTag('hpsPFTauDiscriminationByMediumIsolationMVA3oldDMwLT'),
118  byTightIsolationMVA3oldDMwLT = cms.InputTag('hpsPFTauDiscriminationByTightIsolationMVA3oldDMwLT'),
119  byVTightIsolationMVA3oldDMwLT = cms.InputTag('hpsPFTauDiscriminationByVTightIsolationMVA3oldDMwLT'),
120  byVVTightIsolationMVA3oldDMwLT = cms.InputTag('hpsPFTauDiscriminationByVVTightIsolationMVA3oldDMwLT'),
121  byIsolationMVA3newDMwoLTraw = cms.InputTag('hpsPFTauDiscriminationByIsolationMVA3newDMwoLTraw'),
122  byVLooseIsolationMVA3newDMwoLT = cms.InputTag('hpsPFTauDiscriminationByVLooseIsolationMVA3newDMwoLT'),
123  byLooseIsolationMVA3newDMwoLT = cms.InputTag('hpsPFTauDiscriminationByLooseIsolationMVA3newDMwoLT'),
124  byMediumIsolationMVA3newDMwoLT = cms.InputTag('hpsPFTauDiscriminationByMediumIsolationMVA3newDMwoLT'),
125  byTightIsolationMVA3newDMwoLT = cms.InputTag('hpsPFTauDiscriminationByTightIsolationMVA3newDMwoLT'),
126  byVTightIsolationMVA3newDMwoLT = cms.InputTag('hpsPFTauDiscriminationByVTightIsolationMVA3newDMwoLT'),
127  byVVTightIsolationMVA3newDMwoLT = cms.InputTag('hpsPFTauDiscriminationByVVTightIsolationMVA3newDMwoLT'),
128  byIsolationMVA3newDMwLTraw = cms.InputTag('hpsPFTauDiscriminationByIsolationMVA3newDMwLTraw'),
129  byVLooseIsolationMVA3newDMwLT = cms.InputTag('hpsPFTauDiscriminationByVLooseIsolationMVA3newDMwLT'),
130  byLooseIsolationMVA3newDMwLT = cms.InputTag('hpsPFTauDiscriminationByLooseIsolationMVA3newDMwLT'),
131  byMediumIsolationMVA3newDMwLT = cms.InputTag('hpsPFTauDiscriminationByMediumIsolationMVA3newDMwLT'),
132  byTightIsolationMVA3newDMwLT = cms.InputTag('hpsPFTauDiscriminationByTightIsolationMVA3newDMwLT'),
133  byVTightIsolationMVA3newDMwLT = cms.InputTag('hpsPFTauDiscriminationByVTightIsolationMVA3newDMwLT'),
134  byVVTightIsolationMVA3newDMwLT = cms.InputTag('hpsPFTauDiscriminationByVVTightIsolationMVA3newDMwLT'),
135  againstElectronLoose = cms.InputTag("hpsPFTauDiscriminationByLooseElectronRejection"),
136  againstElectronMedium = cms.InputTag("hpsPFTauDiscriminationByMediumElectronRejection"),
137  againstElectronTight = cms.InputTag("hpsPFTauDiscriminationByTightElectronRejection"),
138  againstMuonLoose = cms.InputTag("hpsPFTauDiscriminationByLooseMuonRejection"),
139  againstMuonMedium = cms.InputTag("hpsPFTauDiscriminationByMediumMuonRejection"),
140  againstMuonTight = cms.InputTag("hpsPFTauDiscriminationByTightMuonRejection"),
141  againstMuonLoose2 = cms.InputTag("hpsPFTauDiscriminationByLooseMuonRejection2"),
142  againstMuonMedium2 = cms.InputTag("hpsPFTauDiscriminationByMediumMuonRejection2"),
143  againstMuonTight2 = cms.InputTag("hpsPFTauDiscriminationByTightMuonRejection2"),
144  againstMuonLoose3 = cms.InputTag("hpsPFTauDiscriminationByLooseMuonRejection3"),
145  againstMuonTight3 = cms.InputTag("hpsPFTauDiscriminationByTightMuonRejection3"),
146  againstMuonMVAraw = cms.InputTag('hpsPFTauDiscriminationByMVArawMuonRejection'),
147  againstMuonLooseMVA = cms.InputTag('hpsPFTauDiscriminationByMVALooseMuonRejection'),
148  againstMuonMediumMVA = cms.InputTag('hpsPFTauDiscriminationByMVAMediumMuonRejection'),
149  againstMuonTightMVA = cms.InputTag('hpsPFTauDiscriminationByMVATightMuonRejection'),
150  byCombinedIsolationDeltaBetaCorrRaw3Hits = cms.InputTag("hpsPFTauDiscriminationByRawCombinedIsolationDBSumPtCorr3Hits"),
151  byLooseCombinedIsolationDeltaBetaCorr3Hits = cms.InputTag("hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits"),
152  byMediumCombinedIsolationDeltaBetaCorr3Hits = cms.InputTag("hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits"),
153  byTightCombinedIsolationDeltaBetaCorr3Hits = cms.InputTag("hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3Hits"),
154  againstElectronMVA5raw = cms.InputTag("hpsPFTauDiscriminationByMVA5rawElectronRejection"),
155  againstElectronMVA5category = cms.InputTag("hpsPFTauDiscriminationByMVA5rawElectronRejection:category"),
156  againstElectronVLooseMVA5 = cms.InputTag("hpsPFTauDiscriminationByMVA5VLooseElectronRejection"),
157  againstElectronLooseMVA5 = cms.InputTag("hpsPFTauDiscriminationByMVA5LooseElectronRejection"),
158  againstElectronMediumMVA5 = cms.InputTag("hpsPFTauDiscriminationByMVA5MediumElectronRejection"),
159  againstElectronTightMVA5 = cms.InputTag("hpsPFTauDiscriminationByMVA5TightElectronRejection"),
160  againstElectronVTightMVA5 = cms.InputTag("hpsPFTauDiscriminationByMVA5VTightElectronRejection"),
161 # againstElectronDeadECAL = cms.InputTag("hpsPFTauDiscriminationByDeadECALElectronRejection"),
162  ),
163 
164  # mc matching configurables
165  addGenMatch = cms.bool(True),
166  embedGenMatch = cms.bool(True),
167  genParticleMatch = cms.InputTag("tauMatch"),
168  addGenJetMatch = cms.bool(True),
169  embedGenJetMatch = cms.bool(True),
170  genJetMatch = cms.InputTag("tauGenJetMatch"),
171 
172  # efficiencies
173  addEfficiencies = cms.bool(False),
174  efficiencies = cms.PSet(),
175 
176  # resolution
177  addResolutions = cms.bool(False),
178  resolutions = cms.PSet()
179 )
180