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(1.0),
35  minMergeGammaEt = cms.double(1.0),
36  minMergeChargedHadronPt = cms.double(100.),
37  verbosity = cms.int32(0)
38 )
39 
40 # Produce a ChargedHadron candidate for each reco::Track
41 # (overlap with charged PFCandidate is removed by PFRecoTauChargedHadronProducer module)
42 tracks = cms.PSet(
43  name = cms.string("tracks"),
44  plugin = cms.string("PFRecoTauChargedHadronFromTrackPlugin"),
45  srcTracks = cms.InputTag('generalTracks'),
46  dRcone = cms.double(0.5),
47  dRconeLimitedToJetArea = cms.bool(False),
48  qualityCuts = PFTauQualityCuts,
49  dRmergeNeutralHadron = cms.double(0.10),
50  dRmergePhoton = cms.double(0.05),
51  minMergeNeutralHadronEt = cms.double(1.0),
52  minMergeGammaEt = cms.double(1.0),
53  minMergeChargedHadronPt = cms.double(100.),
54  verbosity = cms.int32(0)
55 )
56 
57 # Produce a ChargedHadron candidate for high Pt PFNeutralHadrons
58 PFNeutralHadrons = chargedPFCandidates.clone(
59  name = cms.string("PFNeutralHadrons"),
60  plugin = cms.string("PFRecoTauChargedHadronFromPFCandidatePlugin"),
61  # process PFNeutralHadrons
62  # (numbering scheme defined in DataFormats/ParticleFlowCandidate/interface/PFCandidate.h)
63  chargedHadronCandidatesParticleIds = cms.vint32(5),
64  minMergeChargedHadronPt = cms.double(0.),
65  verbosity = cms.int32(0)
66 )
PFRecoTauQualityCuts_cfi