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.
1 import FWCore.ParameterSet.Config as cms
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 
55  # user defined isolation variables the variables defined here will be accessible
56  # via pat::Tau::userIsolation(IsolationKeys key) with the key as defined in
57  # DataFormats/PatCandidates/interface/Isolation.h
58  userIsolation = cms.PSet(),
59 
60  # tau ID (for efficiency studies)
61  addTauID = cms.bool(True),
62  tauIDSources = cms.PSet(
63  # configure many IDs as InputTag <someName> = <someTag>
64  # you can comment out those you don't want to save some
65  # disk space
66  decayModeFinding = cms.InputTag("hpsPFTauDiscriminationByDecayModeFinding"),
67  decayModeFindingNewDMs =cms.InputTag("hpsPFTauDiscriminationByDecayModeFindingNewDMs"),
68  chargedIsoPtSum = cms.InputTag("hpsPFTauChargedIsoPtSum"),
69  neutralIsoPtSum = cms.InputTag("hpsPFTauNeutralIsoPtSum"),
70  puCorrPtSum = cms.InputTag("hpsPFTauPUcorrPtSum"),
71  neutralIsoPtSumWeight = cms.InputTag("hpsPFTauNeutralIsoPtSumWeight"),
72  footprintCorrection = cms.InputTag("hpsPFTauFootprintCorrection"),
73  photonPtSumOutsideSignalCone = cms.InputTag("hpsPFTauPhotonPtSumOutsideSignalCone"),
74  byIsolationMVA3oldDMwLTraw = cms.InputTag('hpsPFTauDiscriminationByIsolationMVA3oldDMwLTraw'),
75  byVLooseIsolationMVA3oldDMwLT = cms.InputTag('hpsPFTauDiscriminationByVLooseIsolationMVA3oldDMwLT'),
76  byLooseIsolationMVA3oldDMwLT = cms.InputTag('hpsPFTauDiscriminationByLooseIsolationMVA3oldDMwLT'),
77  byMediumIsolationMVA3oldDMwLT = cms.InputTag('hpsPFTauDiscriminationByMediumIsolationMVA3oldDMwLT'),
78  byTightIsolationMVA3oldDMwLT = cms.InputTag('hpsPFTauDiscriminationByTightIsolationMVA3oldDMwLT'),
79  byVTightIsolationMVA3oldDMwLT = cms.InputTag('hpsPFTauDiscriminationByVTightIsolationMVA3oldDMwLT'),
80  byVVTightIsolationMVA3oldDMwLT = cms.InputTag('hpsPFTauDiscriminationByVVTightIsolationMVA3oldDMwLT'),
81  byIsolationMVA3newDMwLTraw = cms.InputTag('hpsPFTauDiscriminationByIsolationMVA3newDMwLTraw'),
82  byVLooseIsolationMVA3newDMwLT = cms.InputTag('hpsPFTauDiscriminationByVLooseIsolationMVA3newDMwLT'),
83  byLooseIsolationMVA3newDMwLT = cms.InputTag('hpsPFTauDiscriminationByLooseIsolationMVA3newDMwLT'),
84  byMediumIsolationMVA3newDMwLT = cms.InputTag('hpsPFTauDiscriminationByMediumIsolationMVA3newDMwLT'),
85  byTightIsolationMVA3newDMwLT = cms.InputTag('hpsPFTauDiscriminationByTightIsolationMVA3newDMwLT'),
86  byVTightIsolationMVA3newDMwLT = cms.InputTag('hpsPFTauDiscriminationByVTightIsolationMVA3newDMwLT'),
87  byVVTightIsolationMVA3newDMwLT = cms.InputTag('hpsPFTauDiscriminationByVVTightIsolationMVA3newDMwLT'),
88  againstMuonLoose3 = cms.InputTag("hpsPFTauDiscriminationByLooseMuonRejection3"),
89  againstMuonTight3 = cms.InputTag("hpsPFTauDiscriminationByTightMuonRejection3"),
90  byLooseCombinedIsolationDeltaBetaCorr3Hits = cms.InputTag("hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits"),
91  byMediumCombinedIsolationDeltaBetaCorr3Hits = cms.InputTag("hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits"),
92  byTightCombinedIsolationDeltaBetaCorr3Hits = cms.InputTag("hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3Hits"),
93  byCombinedIsolationDeltaBetaCorrRaw3Hits = cms.InputTag("hpsPFTauDiscriminationByRawCombinedIsolationDBSumPtCorr3Hits"),
94  byLoosePileupWeightedIsolation3Hits = cms.InputTag("hpsPFTauDiscriminationByLoosePileupWeightedIsolation3Hits"),
95  byMediumPileupWeightedIsolation3Hits = cms.InputTag("hpsPFTauDiscriminationByMediumPileupWeightedIsolation3Hits"),
96  byTightPileupWeightedIsolation3Hits = cms.InputTag("hpsPFTauDiscriminationByTightPileupWeightedIsolation3Hits"),
97  byPhotonPtSumOutsideSignalCone = cms.InputTag("hpsPFTauDiscriminationByPhotonPtSumOutsideSignalCone"),
98  byPileupWeightedIsolationRaw3Hits = cms.InputTag("hpsPFTauDiscriminationByRawPileupWeightedIsolation3Hits"),
99  againstElectronMVA5raw = cms.InputTag("hpsPFTauDiscriminationByMVA5rawElectronRejection"),
100  againstElectronMVA5category = cms.InputTag("hpsPFTauDiscriminationByMVA5rawElectronRejection:category"),
101  againstElectronVLooseMVA5 = cms.InputTag("hpsPFTauDiscriminationByMVA5VLooseElectronRejection"),
102  againstElectronLooseMVA5 = cms.InputTag("hpsPFTauDiscriminationByMVA5LooseElectronRejection"),
103  againstElectronMediumMVA5 = cms.InputTag("hpsPFTauDiscriminationByMVA5MediumElectronRejection"),
104  againstElectronTightMVA5 = cms.InputTag("hpsPFTauDiscriminationByMVA5TightElectronRejection"),
105  againstElectronVTightMVA5 = cms.InputTag("hpsPFTauDiscriminationByMVA5VTightElectronRejection"),
106  ),
107 
108  # mc matching configurables
109  addGenMatch = cms.bool(True),
110  embedGenMatch = cms.bool(True),
111  genParticleMatch = cms.InputTag("tauMatch"),
112  addGenJetMatch = cms.bool(True),
113  embedGenJetMatch = cms.bool(True),
114  genJetMatch = cms.InputTag("tauGenJetMatch"),
115 
116  # efficiencies
117  addEfficiencies = cms.bool(False),
118  efficiencies = cms.PSet(),
119 
120  # resolution
121  addResolutions = cms.bool(False),
122  resolutions = cms.PSet()
123 )
124