CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PFRecoTauDiscriminationByHPSSelection_cfi.py
Go to the documentation of this file.
2 
3 from RecoTauTag.RecoTau.TauDiscriminatorTools import noPrediscriminants
4 
5 decayMode_1Prong0Pi0 = cms.PSet(
6  nCharged = cms.uint32(1),
7  nPiZeros = cms.uint32(0),
8  nTracksMin = cms.uint32(1),
9  nChargedPFCandsMin = cms.uint32(1),
10  # Always passes
11  # If an PF electron is selected as the lead track, the tau can have
12  # negative mass. FIXME - investigate this
13  minMass = cms.double(-1.e3),
14  maxMass = cms.string("1.")
15 )
16 decayMode_1Prong1Pi0 = cms.PSet(
17  nCharged = cms.uint32(1),
18  nPiZeros = cms.uint32(1),
19  nTracksMin = cms.uint32(1),
20  nChargedPFCandsMin = cms.uint32(1),
21  minMass = cms.double(0.3),
22  maxMass = cms.string("max(1.3, min(1.3*sqrt(pt/100.), 4.2))"),
23  assumeStripMass = cms.double(0.1349)
24 )
25 decayMode_1Prong2Pi0 = cms.PSet(
26  nCharged = cms.uint32(1),
27  nPiZeros = cms.uint32(2),
28  nTracksMin = cms.uint32(1),
29  nChargedPFCandsMin = cms.uint32(1),
30  minMass = cms.double(0.4),
31  maxMass = cms.string("max(1.2, min(1.2*sqrt(pt/100.), 4.0))"),
32  minPi0Mass = cms.double(0.05),
33  maxPi0Mass = cms.double(0.2),
34  # Here the strips are assumed to correspond to photons
35  assumeStripMass = cms.double(0.0)
36 )
37 decayMode_2Prong0Pi0 = cms.PSet(
38  nCharged = cms.uint32(2),
39  nPiZeros = cms.uint32(0),
40  nTracksMin = cms.uint32(2),
41  nChargedPFCandsMin = cms.uint32(1),
42  minMass = cms.double(0.),
43  maxMass = cms.string("1.2")
44 )
45 decayMode_2Prong1Pi0 = cms.PSet(
46  nCharged = cms.uint32(2),
47  nPiZeros = cms.uint32(1),
48  nTracksMin = cms.uint32(2),
49  nChargedPFCandsMin = cms.uint32(1),
50  minMass = cms.double(0.),
51  maxMass = cms.string("max(1.2, min(1.2*sqrt(pt/100.), 4.0))")
52 )
53 decayMode_3Prong0Pi0 = cms.PSet(
54  nCharged = cms.uint32(3),
55  nPiZeros = cms.uint32(0),
56  nTracksMin = cms.uint32(2),
57  nChargedPFCandsMin = cms.uint32(1),
58  minMass = cms.double(0.8),
59  maxMass = cms.string("1.5")
60 )
61 
62 hpsSelectionDiscriminator = cms.EDProducer(
63  "PFRecoTauDiscriminationByHPSSelection",
64  PFTauProducer = cms.InputTag('combinatoricRecoTaus'),
65  Prediscriminants = noPrediscriminants,
66  matchingCone = cms.double(0.5),
67  minTauPt = cms.double(0.0),
68  coneSizeFormula = cms.string("max(min(0.1, 3.0/pt()), 0.05)"),
69  decayModes = cms.VPSet(
70  decayMode_1Prong0Pi0,
71  decayMode_1Prong1Pi0,
72  decayMode_1Prong2Pi0,
73  decayMode_2Prong0Pi0,
74  decayMode_2Prong1Pi0,
75  decayMode_3Prong0Pi0
76  ),
77  requireTauChargedHadronsToBeChargedPFCands = cms.bool(False)
78 )
79 
80 
81