CMS 3D CMS Logo

PFRecoTauChargedHadronBuilderPlugins_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 '''
4 
5 Configuration for ChargedHadron producer plugins.
6 
7 Author: Christian Veelken, LLR
8 
9 
10 '''
11 
12 from RecoTauTag.RecoTau.PFRecoTauQualityCuts_cfi import PFTauQualityCuts
13 
14 # Produce a ChargedHadron candidate for each charged PFCandidate
15 chargedPFCandidates = cms.PSet(
16  name = cms.string("chargedPFCandidates"),
17  plugin = cms.string("PFRecoTauChargedHadronFromPFCandidatePlugin"),
18  # process PFChargedHadrons and PFElectrons
19  # (numbering scheme defined in DataFormats/ParticleFlowCandidate/interface/PFCandidate.h)
20  chargedHadronCandidatesParticleIds = cms.vint32(1, 2, 3), # PFCandidate types = h, e, mu
21  qualityCuts = PFTauQualityCuts,
22  dRmergeNeutralHadronWrtChargedHadron = cms.double(0.005),
23  dRmergeNeutralHadronWrtNeutralHadron = cms.double(0.010),
24  dRmergeNeutralHadronWrtElectron = cms.double(0.05),
25  dRmergeNeutralHadronWrtOther = cms.double(0.005),
26  minBlockElementMatchesNeutralHadron = cms.int32(2),
27  maxUnmatchedBlockElementsNeutralHadron = cms.int32(1),
28  dRmergePhotonWrtChargedHadron = cms.double(0.005),
29  dRmergePhotonWrtNeutralHadron = cms.double(0.010),
30  dRmergePhotonWrtElectron = cms.double(0.005),
31  dRmergePhotonWrtOther = cms.double(0.005),
32  minBlockElementMatchesPhoton = cms.int32(2),
33  maxUnmatchedBlockElementsPhoton = cms.int32(1),
34  minMergeNeutralHadronEt = cms.double(0.),
35  minMergeGammaEt = cms.double(0.),
36  minMergeChargedHadronPt = cms.double(100.)
37 )
38 
39 # Produce a ChargedHadron candidate for each reco::Track
40 # (overlap with charged PFCandidate is removed by PFRecoTauChargedHadronProducer module)
41 tracks = cms.PSet(
42  name = cms.string("tracks"),
43  plugin = cms.string("PFRecoTauChargedHadronFromTrackPlugin"),
44  srcTracks = cms.InputTag('generalTracks'),
45  dRcone = cms.double(0.5),
46  dRconeLimitedToJetArea = cms.bool(False),
47  qualityCuts = PFTauQualityCuts,
48  dRmergeNeutralHadron = cms.double(0.10),
49  dRmergePhoton = cms.double(0.05),
50  minMergeNeutralHadronEt = cms.double(0.),
51  minMergeGammaEt = cms.double(0.),
52  minMergeChargedHadronPt = cms.double(100.)
53 )
54 
55 # Produce a ChargedHadron candidate for high Pt PFNeutralHadrons
56 PFNeutralHadrons = chargedPFCandidates.clone(
57  name = cms.string("PFNeutralHadrons"),
58  plugin = cms.string("PFRecoTauChargedHadronFromPFCandidatePlugin"),
59  # process PFNeutralHadrons
60  # (numbering scheme defined in DataFormats/ParticleFlowCandidate/interface/PFCandidate.h)
61  chargedHadronCandidatesParticleIds = cms.vint32(5),
62  minMergeChargedHadronPt = cms.double(0.)
63 )